diff options
Diffstat (limited to 'testsuite/tests/gadt/gadt8.hs')
-rw-r--r-- | testsuite/tests/gadt/gadt8.hs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/gadt/gadt8.hs b/testsuite/tests/gadt/gadt8.hs new file mode 100644 index 0000000000..1cad8f65cc --- /dev/null +++ b/testsuite/tests/gadt/gadt8.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE GADTs, KindSignatures #-} + +-- Test a couple of trivial things: +-- explicit layout +-- trailing semicolons +-- kind signatures +module ShouldCompile where + +data Expr :: * -> * where { + EInt :: Int -> Expr Int ; + EBool :: Bool -> Expr Bool ; + EIf :: (Expr Bool) -> (Expr a) -> (Expr a) -> Expr a ; + -- Note trailing semicolon, should be ok + } + |