Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data Dict (c :: Constraint) where
- Dict :: c => Dict c
- class Foo (e :: Type) (r :: [Type])
- instance Foo e (e ': r)
- type family R :: [Type]
- type family F (a :: [Type]) :: [Type]
- compiles :: (R ~ Int ': F R, r ~ R)
- => Dict (Foo Int R)
- compiles = Dict
- errors :: (R ~ Int ': F R)
- => Dict (Foo Int R)
- errors = Dict
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement