Ketil Malde <[EMAIL PROTECTED]> writes:
>> wc :: !(Int,Int,Int) -> Char -> (Int, Int, Int)
> I'm not sure if that was your question
Sorry about that, brain malfunction, bangs are for data declarations,
I'll get that cup of coffee now.
I guess what you really want to do, is to put some `seq`s in there.
Something like:
wc (cs,ws,ls) ... = cs `seq` ws `seq` ls `seq` ...the def. of wc...
which evaluates the Ints before doing anything else. Or use (!$)
(like function application ($), but strict).
-kzm
--
If I haven't seen further, it is by standing in the footprints of giants
_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe