Fix #11287.
[ghc.git] / testsuite / tests / th / TH_spliceInst.hs
1 {-# LANGUAGE TemplateHaskell #-}
2
3 -- Tickles a GHC 6.4 buglet
4
5 module ShouldCompile where
6
7 class Foo a where
8 foo :: a -> a
9 foo = id
10
11 -- Splice an instance decl that uses the default method
12 $( [d| instance Foo () where |] )
13
14
15