Haddock, .lhs, and GHC

Johannes Waldmann waldmann at imn.htwk-leipzig.de
Mon Jun 16 01:38:09 EDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> Does this mean that literate source files should be discouraged?  They
> seem to be fairly common, especially in conjunction with Cabal (i.e.,
> Setup.lhs). 

I think the reason for having Setup.lhs instead of Setup.hs
is that you can put #!/usr/local/bin/runhaskell
in their first line. Then  chmod +x Setup.lhs
and you can do   ./Setup.lhs configure   etc.
So, this has nothing to do with literate programming.

Best regards, J.W.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIVfxBDqiTJ5Q4dm8RAtZkAJ4r0qWQiUmQvsPhJMAFiccMvmJTQgCcCSH9
Y3Wph09j9/j2yJ2bsYYMXfQ=
=NIax
-----END PGP SIGNATURE-----


More information about the Glasgow-haskell-users mailing list