
17 Dec
2005
17 Dec
'05
8:56 a.m.
Scherrer, Chad writes:
When I'm using ghci, I have lots of modules that I sometimes want to load "as Main", and sometimes I only want them loaded as a dependency from another module. Currently, I have to go into each file to change the "module Foo where" line to do this.
Maybe the "-main-is" option can help to make your live easier? You'll find more information here: http://haskell.org/ghc/docs/latest/html/users_guide/flag-reference.html#id31... Peter