blob: 78d7e43931e1745461ccfafe7f7bd9cb02839286 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
module TH_abstractFamily where
import Language.Haskell.TH
-- Empty closed type families are okay...
ds1 :: Q [Dec]
ds1 = [d| type family F a where |]
-- ...but abstract ones should result in a type error
ds2 :: Q [Dec]
ds2 = [d| type family G a where .. |]
|