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


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to