[Haskell] -compiler-options vs {#-LANGUAGE Flags-#}

Lennart Kolmodin kolmodin at dtek.chalmers.se
Sat Mar 24 08:18:30 EDT 2007


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

S. Alexander Jacobson wrote:
> I think the LANGUAGE pragma is better than the OPTIONS_GHC pragma but I
> am relatively indifferent on that issue. My only point is that module
> authors should put this information in the module source rather than in
> the build system.

I think the LANGUAGE pragma is much better than OPTIONS_GHC, for several
reasons.

* It's compiler independent.
* It's clear that you're only adding extensions, not any random compiler
flag.
* It plays nicely with Ian's proposal on
http://article.gmane.org/gmane.comp.lang.haskell.cabal.devel/464

Alexander, I've added LANGUAGE pragmas to binary, let me know how it
works out for you.

Cheers,
  Lennart Kolmodin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGBRcW4txYG4KUCuERAq2qAJ9Cd//bRv53Q+pr3Sab5r7JE4CSIgCgnAzG
FgLR4dBZkCTmecN8R9IrpYI=
=iqeA
-----END PGP SIGNATURE-----


More information about the Haskell mailing list