Skip to content

GHCi parser doesn't properly handle -fobject-code

My complete Haskell source:

module Foo where

f x = x

Shell:

    $ ghci Foo.hs -fobject-code
    GHCi, version 7.8.2: http://www.haskell.org/ghc/  :? for help
    Loading package ghc-prim ... linking ... done.
    Loading package integer-gmp ... linking ... done.
    Loading package base ... linking ... done.
    target ‘-fobject-code’ is not a module name or a source file
    Ok, modules loaded: Linker.
    Prelude Linker>

Despite the wanring/error, GHCi *does* generate the object code. This error also prints when I *load* the compiled Foo object file.

Edited by Ben Gamari
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information