I suppose that does work :). Thanks!
Are there any examples out there for reading in Core files using the ghc
package? I can't really find anything that's up to date...
-h
Max Bolingbroke wrote:
The flag -fext-core is a red herring. GHC assumes any module with no
"module" declaration is a
On 04/13/10 12:48, Max Bolingbroke wrote:
The flag -fext-core is a red herring. GHC assumes any module with no
"module" declaration is actually called Main and hence insists on a
main declaration.
...or to be precise, it means
module Main (main) where {...}
...and this is what the Haskell 98 st
The flag -fext-core is a red herring. GHC assumes any module with no
"module" declaration is actually called Main and hence insists on a
main declaration.
mbolingbr...@perihelion ~/tmp
$ ghc -c Hal.hs
Hal.hs:1:0: The function `main' is not defined in module `Main'
"""
Compile this instead:
If I have a file 'Foo.hs' that contains one line 'addOne x = x + 1', I
want to run something like:
ghc -c -fext-core Foo.hs
to get the core version of this file.
Unfortunately, when I do that, it complains that Main doesn't have a
function main. And it doesn't produce the .hcr file.
I tr