blob: 5a5f45adb7d8fcd86faa70caedf876d47f99522e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
module T7532a where
import Language.Haskell.TH
class C a where
data D a
bang :: DecsQ
bang = return [
InstanceD [] (AppT (ConT ''C) (ConT ''Int)) [
DataInstD [] ''D [ConT ''Int] [
NormalC (mkName "T") []] []]]
|