[GHC] #14833: QuantifiedConstraints: GHC can't deduce (() :: Constraint)?
GHC
ghc-devs at haskell.org
Sun Feb 25 22:33:10 UTC 2018
#14833: QuantifiedConstraints: GHC can't deduce (() :: Constraint)?
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.5
Resolution: | Keywords:
| QuantifiedConstraints wipT2893
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: #14835 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Iceland_jack):
Same as?
{{{#!hs
{-# Language QuantifiedConstraints, GADTs, FlexibleInstances,
MultiParamTypeClasses, ConstraintKinds, UndecidableInstances #-}
import Data.Kind
import Data.Proxy
import Unsafe.Coerce
data Dict c where
Dict :: c => Dict c
class (a => b) => Entails a b
instance (a => b) => Entails a b
wit :: Dict a -> Dict b -> Dict (Entails (a, b) xx) -> Dict xx
wit Dict Dict Dict = Dict
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14833#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list