summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/TH_dataD1.hs
blob: 9d0c95b1a90e0fc3e10d269423e9237b4e8f68ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12

module TH_dataD1 where

import Language.Haskell.TH

ds :: Q [Dec]
ds = [d|
          $(do { d <- dataD (cxt []) (mkName "D") [] Nothing
                             [normalC (mkName "K") []] []
               ; return [d]})
       |]