1 2 3 4 5 6 7
{-# LANGUAGE TemplateHaskell #-} module T7241 where import Language.Haskell.TH $(newName "Foo" >>= \o -> return [DataD [] o [] Nothing [RecC o []] []])