I've finally gotten around to fixing this properly. Done!
Simon
| -----Original Message-----
| From: Sven Panne [mailto:Sven.Panne@xxxxxxxxxxxxxxxxxxxxxxxxxx]
| Sent: 27 December 2002 10:57
| To: cvs-ghc@xxxxxxxxxxx
| Subject: Bogus 'Defined but not used' warning
|
| Currently GHC issues a bogus warning for code like this
| (a stripped-down version of GLUT.Graphics.UI.GLUT.State):
|
| -------------------- Foo.hs --------------------
| module Foo ( bar ) where
|
| bar :: Int -> Int
| bar 0 = 0
| bar n = baz n
|
| baz :: Int -> Int
| baz n = bar (n - 1)
| ------------------------------------------------
| panne@jeanluc:~> ghc -Wall -c Foo.hs
|
| Foo.hs:8: Warning: Defined but not used: baz
| ------------------------------------------------
|
| Nothing serious, but could this be fixed somehow?
|
| Cheers,
| S.
|
| _______________________________________________
| Cvs-ghc mailing list
| Cvs-ghc@xxxxxxxxxxx
| http://www.haskell.org/mailman/listinfo/cvs-ghc
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|