[GHC] #16248: ImplicitParams does not imply FlexibleContexts or FlexibleInstances

GHC ghc-devs at haskell.org
Mon Jan 28 09:22:31 UTC 2019


#16248: ImplicitParams does not imply FlexibleContexts or FlexibleInstances
-------------------------------------+-------------------------------------
        Reporter:  NeilMitchell      |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Documentation     |              Version:  8.6.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by AntC):

 `instance Foo XI ...` in the first case needs `TypeSynonymInstances`. That
 expands `XI` to `X Int`, then needs `FlexibleInstances`.

 `FlexibleInstances` is supposed to imply `TypeSynonymInstances`. I wonder
 if `ImplicitParams` switches on `FlexibleInstances` OK, but fails to also
 switch on `TypeSynonymInstances`?

 IOW try the code with `ImplicitParams` and `TypeSynonymInstances`, but not
 `FlexibleInstances`.

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


More information about the ghc-tickets mailing list