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

GHC ghc-devs at haskell.org
Wed Jun 27 16:33:47 UTC 2018


#9383: GHCi parser doesn't properly handle -fobject-code
-------------------------------------+-------------------------------------
        Reporter:  crockeea          |                Owner:  (none)
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:
       Component:  GHCi              |              Version:  7.8.2
      Resolution:  invalid           |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Other             |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Description changed by bgamari:

Old description:

> 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.

New description:

 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#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list