
7 May
2007
7 May
'07
11:29 a.m.
Sorry, my mail client fooled me, too, so here it is again: Andrew Coppin:
What I'm trying to say is, I would have expected, say,
resultant :: [Vector2] -> Vector2 resultant = sum
to run faster than
resultant = sum
In the latter case, we have resultant :: (Num n) => [n] -> n.
The latter is only true if compiled with -fno-monomorphism-restriction. Am I right? (Sorry if this is a dumb question, I'm still trying to get my head around the Haskell type system.) Malte