On 13-05-03 10:35 AM, Niklas Hambüchen wrote:
runhaskell -fno-warn-unused-matches Myfile.hs
[no output whatsoever but exit code 127]
runhaskell -fasdf Myfile.hs
[no output whatsoever but exit code 127]
$ runghc --help
Usage: runghc [runghc flags] [GHC flags] module [program args]
The runghc flags are
-f /path/to/ghc Tell runghc where GHC is
--help Print this usage information
--version Print version number
# how to say end of runghc flags and start of GHC flags?
# it seems undocumented. bad bad bad.
# oh wait, it is documented, read GHC user's guide chapter 3
# actually, read the whole thing
# the GHC user's guide is on your hard disk
$ cat g.hs
main = putStrLn "hello" where v=True
$ runghc -- -fwarn-unused-binds g.hs
g.hs:1:31: Warning: Defined but not used: `v'
hello
# \∩/
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe