A quine in Haskell

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.

Comments 1

  1. tranto wrote:

    This one involves less dark magic:

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

    Posted 22 Mar 2010 at 11:50 pm

Post a Comment

Your email is never published nor shared. Required fields are marked *