A quine in Haskell

code 1 May 2008 | 1 Comment

Prompted by A Scala Quine, here’s a nice one in Haskell that I haven’t seen anywhere else…

main = (putStr . ap (++) show) "main = (putStr . ap (++) show) "

Edit: I have found it somewhere else Here, to be exact.

Tagged in , , ,

One Response on “A quine in Haskell”

  1. tranto says:

    This one involves less dark magic:

    main = putStrLn (s ++ show s) where s = “main = putStrLn (s ++ show s) where s = “

Leave a Reply