summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/TH_spliceInst.hs
blob: fd0918ce78cdcba119fe18f82cc87d208d419f37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{-# LANGUAGE TemplateHaskell #-}

-- Tickles a GHC 6.4 buglet

module ShouldCompile where

class Foo a where
    foo :: a -> a
    foo = id

-- Splice an instance decl that uses the default method
$( [d| instance Foo () where |] )