On Feb 24, 2010, at 20:51 , Ivan Miljenovic wrote:
On 25 February 2010 11:24, Don Stewart <d...@galois.com> wrote:
Seriously?? Doesn't that break the module system?

Maybe I misunderstood it; all I know is that Curt Sampson says he uses
this kind of stuff for testing purposes by not having to export
functions.

See the -fwarn-unused-binds section at
http://www.haskell.org/ghc/docs/latest/html/users_guide/options-sanity.html

As I read that, the leading underscore doesn't export anything; it just suppresses any "unused" warning for the symbol (which is consistent with the other uses of leading underscore in warnings; it's also consistent with binding to _ to throw a result away).

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allb...@kf8nh.com
system administrator [openafs,heimdal,too many hats] allb...@ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH


Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to