
#15617: Unboxed tuples/sum error message on `a = show 5` in expression evaluation and interactive modes -------------------------------------+------------------------------------- Reporter: ChaiTRex | Owner: | JulianLeviston Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.6.1-beta1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Poor/confusing | Unknown/Multiple error message | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by JulianLeviston): Oh that's much clearer, thank you. I'll have to dig in more to find out about the split of compilation of loaded modules versus expressions (at GHCi prompt and/or given to `-e` flag) to think about how to separate those two types of code. As far as I can see so far in my explorations, `HscInterpreted` (ie the target) is the marker used to determine whether to compile to bytecode or not. Loading with `-e` or `--interpreted` sets this, and Setting `-fbytecode` sets it, too, and conversely, setting `-fobjectcode` sets it to the standard compile target for the platform (which is near `HscInterpreted`. Thanks for being so helpful and patient. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15617#comment:15 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler