[GHC] #9383: GHCi parser doesn't properly handle -fobject-code

GHC ghc-devs at haskell.org
Wed Jul 30 14:26:25 UTC 2014


#9383: GHCi parser doesn't properly handle -fobject-code
-------------------------------------+-------------------------------------
       Reporter:  crockeea           |                   Owner:
           Type:  bug                |                  Status:  new
       Priority:  normal             |               Milestone:
      Component:  GHCi               |                 Version:  7.8.2
       Keywords:                     |        Operating System:
   Architecture:  Unknown/Multiple   |  Unknown/Multiple
     Difficulty:  Unknown            |         Type of failure:  Other
     Blocked By:                     |               Test Case:
Related Tickets:                     |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------
 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.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9383>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list