summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/TH_bracket3.hs
blob: c746d61cd306a4f51576652b3f49b71ec0baa29c (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE MultiParamTypeClasses #-}

module TH_bracket3 where

d_class = [d| class Classy a b where
                 f :: a -> b

              instance Classy Int Bool where
                 f x = if x == 0 then True else False
           |]