
#9755: Monomorphism related Ix/Vector error when code is loaded by GHCi/cabal repl -------------------------------------+------------------------------------- Reporter: bitemyapp | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.3 Resolution: | Keywords: Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by rwbarton): This code relies on the monomorphism restriction since if `bounds` is generalized, there is nothing determining its type at its use in the subexpression `(Ix.rangeSize bounds)`. What might be confusing is that `:set -XFoo` affects the language extensions used when ''loading'' files in ghci. You probably want to use `:seti` in your `.ghci` file, which affects the language extensions used when evaluating expressions interactively. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9755#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler