Wanted: warning option for usages of unary minus

Isaac Dupree isaacdupree at charter.net
Thu May 17 13:36:49 EDT 2007


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

I wrote:
>> negative :: Num a => Integer -> a
>> negative a = fromInteger (negate a)

Oops, I forgot Rational literals, they make things a little more
complicated :(

Isaac

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

iD8DBQFGTJKxHgcxvIWYTTURAtGMAJ9oetioh1rfTF1o+bqCWqWxG/LSiwCgghq9
pOBHdfUp625ll1lpTbW0X+w=
=X0oP
-----END PGP SIGNATURE-----


More information about the Glasgow-haskell-users mailing list