Modify a couple of error messages slightly
[ghc.git] / testsuite / tests / gadt / T7205.hs
1 {-# LANGUAGE GADTs, MultiParamTypeClasses, FlexibleInstances, FlexibleContexts #-}
2 module T7205 where
3
4 data Abs env g v where
5 Abs :: g (a, env) h v -> Abs env (g (a, env) h v) (a -> v)
6
7 class Eval g env h v where
8 eval :: env -> g env h v -> v
9
10 evalAbs :: Eval g2 (a2, env) h2 v2
11 => env
12 -> Abs env (g2 (a2, env) h2 v2) (a2->v2)
13 -> (a2->v2)
14 evalAbs env (Abs e) x
15 = eval (x, env) e -- e :: g (a,env) h v