[GHC] #8883: FlexibleContexts checking should happen also on inferred signature

GHC ghc-devs at haskell.org
Mon Apr 14 12:56:29 UTC 2014


#8883: FlexibleContexts checking should happen also on inferred signature
-------------------------------------+------------------------------------
        Reporter:  Blaisorblade      |            Owner:  jstolarek
            Type:  bug               |           Status:  new
        Priority:  normal            |        Milestone:
       Component:  Compiler          |          Version:  7.6.3
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------

Comment (by simonpj):

 I suppose that `tcPolyInfer` could check the returned `theta`, and ensure
 that it satisfies the rules for inflexible contexts, unless
 `FlexibleContexts` is enabled?

 Simon

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


More information about the ghc-tickets mailing list