diff options
Diffstat (limited to 'testsuite/tests/unlifted-datatypes/should_fail/UnlDataNullaryPoly.hs')
-rw-r--r-- | testsuite/tests/unlifted-datatypes/should_fail/UnlDataNullaryPoly.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/unlifted-datatypes/should_fail/UnlDataNullaryPoly.hs b/testsuite/tests/unlifted-datatypes/should_fail/UnlDataNullaryPoly.hs new file mode 100644 index 0000000000..1b59bdf24f --- /dev/null +++ b/testsuite/tests/unlifted-datatypes/should_fail/UnlDataNullaryPoly.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE UnliftedDatatypes #-} +{-# LANGUAGE PolyKinds #-} + +module UnlDataNullaryPoly where + +import GHC.Exts +import GHC.Types + +type T :: TYPE (BoxedRep l) +data T = MkT -- Not OK, we get (MkT :: forall l. T @l :: TYPE (BoxedRep l)) which is ill-kinded. |