summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T22819.hs
blob: bd5385abad5764afdc891593ccb7cece8ce5d33a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeData #-}
module T22818 where

import Language.Haskell.TH
import System.IO

type data T = MkT

$(pure [])

$(do i <- reify ''T
     runIO $ do
       hPutStrLn stderr $ pprint i
       hFlush stderr
     pure [])