diff options
Diffstat (limited to 'testsuite/tests/typecheck/testeq1/TypeCast.hs')
-rw-r--r-- | testsuite/tests/typecheck/testeq1/TypeCast.hs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/testeq1/TypeCast.hs b/testsuite/tests/typecheck/testeq1/TypeCast.hs new file mode 100644 index 0000000000..96a4d66e57 --- /dev/null +++ b/testsuite/tests/typecheck/testeq1/TypeCast.hs @@ -0,0 +1,16 @@ + +{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, UndecidableInstances #-} + +-- +-- Test case adopted from the HList library +-- http://www.cwi.nl/~ralf/HList/ +-- + +module TypeCast where + +import FakePrelude + +-- +-- We are ready to reveal the definition of type cast. +-- +instance TypeCast x x where typeCast = id |