Commit 15353f89 authored by Simon Peyton Jones's avatar Simon Peyton Jones
Browse files

Add test for Trac #4492

parent 5bbc839e
{-# LANGUAGE TypeFamilies, RankNTypes #-}
module T4492 where
type family F a b
type instance F (Maybe a) b = b -> F a b
class C a where
go :: (forall a. Maybe a -> b -> a) -> a -> F a b
instance C a => C (Maybe a) where
go f a b = go f (f a b)
......@@ -156,3 +156,5 @@ test('T4178', normal, compile, [''])
test('T3023', normal, compile, [''])
test('T4358', normal, compile, [''])
test('T4356', normal, compile, [''])
test('T4484', normal, compile, [''])
test('T4492', normal, compile, [''])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment