Commit c99f3054 authored by Simon Peyton Jones's avatar Simon Peyton Jones

Test Trac #7205

parent 2bf8943d
{-# LANGUAGE GADTs, MultiParamTypeClasses, FlexibleInstances, FlexibleContexts #-}
module T7205 where
data Abs env g v where
Abs :: g (a, env) h v -> Abs env (g (a, env) h v) (a -> v)
class Eval g env h v where
eval :: env -> g env h v -> v
evalAbs :: Eval g2 (a2, env) h2 v2
=> env
-> Abs env (g2 (a2, env) h2 v2) (a2->v2)
-> (a2->v2)
evalAbs env (Abs e) x
= eval (x, env) e -- e :: g (a,env) h v
......@@ -112,4 +112,5 @@ test('T5424',
multimod_compile,
['T5424', '-v0 -O0'])
test('FloatEq', normal, compile, [''])
\ No newline at end of file
test('FloatEq', normal, compile, [''])
test('T7205', normal, compile, [''])
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment