blob: b0a33a8213b7041ae3812c31206eeb2358f12c46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{-# LANGUAGE RebindableSyntax, PolyKinds, ExplicitForAll #-}
module T12973 where
import qualified Prelude as P
import GHC.Exts
class Num (a :: TYPE r) where
(+) :: a -> a -> a
fromInteger :: P.Integer -> a
foo :: forall (a :: TYPE r). Num a => a
foo = 3 + 4
|