[Haskell-cafe] Testing and module export lists
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Fri Feb 26 12:44:31 EST 2010
On Feb 24, 2010, at 20:51 , Ivan Miljenovic wrote:
> On 25 February 2010 11:24, Don Stewart <dons at 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] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20100226/1274cc6a/PGP.bin
More information about the Haskell-Cafe
mailing list