summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T5665a.hs
blob: b34131e9746c8f14dbefc120a6087767bf71a3e0 (plain)
1
2
3
4
5
6
7
module T5665a where

import Language.Haskell.TH

doSomeTH s tp = return [NewtypeD [] n [] Nothing
                        (NormalC n [(NotStrict, ConT tp)]) []]
   where n = mkName s