blob: d66547bad7b06a0957b0e7699a33c9d396cca8c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{-# LANGUAGE TemplateHaskell, GADTs, ExplicitForAll, KindSignatures #-}
module T10828a where
import Language.Haskell.TH
import System.IO
-- attempting to place a kind signature on a H98 data type
$( return
[ DataD [] (mkName "T")
[ PlainTV (mkName "a") () ]
(Just StarT)
[ NormalC (mkName "MkT")
[ ( Bang NoSourceUnpackedness NoSourceStrictness
, VarT (mkName "a")
)
, ( Bang NoSourceUnpackedness NoSourceStrictness
, VarT (mkName "a")
)
]
]
[] ])
|