#7539: Hard ghc api crash when calling runStmt on code which has not been compiled ---------------------------------+------------------------------------------ Reporter: edsko | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.1 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------
Comment(by simonmar): I wouldn't be surprised if the GHC API assumes `LinkInMemory` when using interactive evaluation (`runStmt` and friends). So the easy workaround is "don't do that", and we should add a test and an error message somewhere. I don't think `NoLink` or `LinkBinary` make much sense here anyway - or do you have a use case in mind? -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7539#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs