summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T4135.hs
blob: 03ff2fe1f9ec242cd9781d5aea3d5e12acd9574b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{-# LANGUAGE TypeFamilies,TemplateHaskell #-}
module Bug where

import Language.Haskell.TH
import System.IO

class C a where
    type T a

$(do { ds <- [d|  
           	 instance C (Maybe a) where
           	    type T (Maybe a) = Char
             |]
     ; runIO $ do { putStrLn (pprint ds); hFlush stdout }
     ; return ds })