blob: ebd8b04c49640c0d07ba3dcc03a9a268b13e3b9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}
|