[GHC] #9299: GHCi type inference error

GHC ghc-devs at haskell.org
Mon Jul 14 08:05:43 UTC 2014


#9299: GHCi type inference error
-------------------------------------+------------------------------------
        Reporter:  erikd             |            Owner:
            Type:  bug               |           Status:  new
        Priority:  normal            |        Milestone:
       Component:  GHCi              |          Version:  7.6.3
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  Other             |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------

Comment (by darchon):

 Do you have a `$HOME/.ghci` config file with `:set
 -XNoMonomorphismRestriction`? The reason I'm asking is because I'm only
 getting the reported error if run ghc/runghc/ghci
 with`-XNoMonomorphismRestriction`.

 Note that before 7.8.1, the monomorphism restriction was turned _on_ by
 default for all invocations of ghc. Starting from 7.8.1 however, the
 monomorphism restriction is turned _off_ by default in ghci, but left on
 in the other invocations.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9299#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list