Commit d154b7be authored by Simon Peyton Jones's avatar Simon Peyton Jones
Browse files

Test Trac #8651

parent 21b32453
{-# LANGUAGE RankNTypes, FlexibleContexts, TypeFamilies #-}
module T8651 where
import Data.Monoid
type family Id a
type instance Id a = a
--type instance Id [a] = [Id a]
foo :: (Monoid (Id String) => r) -> r
foo x = x
bar = foo "Hello"
......@@ -238,3 +238,4 @@ test('ClosedFam1', extra_clean(['ClosedFam1.o-boot', 'ClosedFam1.hi-boot']),
multimod_compile, ['ClosedFam1', '-v0'])
test('ClosedFam2', extra_clean(['ClosedFam2.o-boot', 'ClosedFam2.hi-boot']),
multimod_compile, ['ClosedFam2', '-v0'])
test('T8651', 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