aboutsummaryrefslogtreecommitdiff
path: root/html-test/src/Bug85.hs
blob: 9c5b768b162f7b14dcde1f8b72904c2464283338 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{-# LANGUAGE GADTs, KindSignatures #-}
{-# OPTIONS_HADDOCK use-unicode #-}
module Bug85 where

-- explicitly stated non-trivial kind
data Foo :: (* -> *) -> * -> * where
  Bar :: f x -> Foo f (f x)

-- Just kind * but explicitly written
data Baz :: * where
  Baz' :: Baz

-- No kind signature written down at all
data Qux where
  Quux :: Qux