[Haskell-cafe] Re: (Chaos) [An interesting toy]

Malte Milatz malte at gmx-topmail.de
Mon May 7 11:29:33 EDT 2007


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




More information about the Haskell-Cafe mailing list