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

-- Crashed GHC 6.12

module T4165 where

import Language.Haskell.TH
class Numeric a where
    fromIntegerNum :: a
    fromIntegerNum = undefined

ast :: Q [Dec]
ast = [d|
    instance Numeric Int
    |]