[GHC] #10053: problem in ghci calling main after loading compiled code
GHC
ghc-devs at haskell.org
Sat Jan 31 18:18:18 UTC 2015
#10053: problem in ghci calling main after loading compiled code
-------------------------------------+-------------------------------------
Reporter: George | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 7.10.1-rc2
Resolution: | Keywords:
Operating System: MacOS X | Architecture: x86_64
Type of failure: Incorrect result | (amd64)
at runtime | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Description changed by George:
Old description:
> ghci
> GHCi, version 7.10.0.20150123: http://www.haskell.org/ghc/ :? for help
> Prelude> :load rsa
> Ok, modules loaded: Main.
> Prelude Main> :show modules
> Main ( rsa.hs, rsa.o )
> Prelude Main> main
> Too late for parseStaticFlags: call it before runGhc or runGhcT
> *** Exception: ExitFailure 1
> Prelude Main>
>
> note, there is no failure if I load interpreted code
New description:
ghci
GHCi, version 7.10.0.20150123: http://www.haskell.org/ghc/ :? for help
Prelude> :load rsa
Ok, modules loaded: Main.
Prelude Main> :show modules
Main ( rsa.hs, rsa.o )
Prelude Main> main
Too late for parseStaticFlags: call it before runGhc or runGhcT
Exception: ExitFailure 1
Prelude Main>
note, there is no failure if I load interpreted code
--
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10053#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list