
2 Aug
2010
2 Aug
'10
5:18 p.m.
Brandon,
h :: (x ~ y, Eval (y -> Int)) => (x -> Int) -> (y -> Int) -> Int
But actually if you push the constraint inward, into the type so to say, you actually get quite close to Janis' and David's solution.
Sorry, I was thinking out loud there. I meant the Eval constraint, not the equality constraint. But, right now, I guess my comment only makes sense to me, so let's pretend I kept quiet. ;-) Cheers, S.