[Haskell] [Haskell - I/O] Problem with 'readFile'
Bulat Ziganshin
bulat.ziganshin at gmail.com
Sun Aug 27 06:59:18 EDT 2006
Hello L.,
Sunday, August 27, 2006, 12:43:24 PM, you wrote:
>> > length s `seq` writeFile f ("hello"++s)
> length mates_str `seq` return ()
it's the same. i recommend you to use:
return $! tail mates_str
$! defined as
f$!x = x `seq` f x
'tail' should be slightly faster than 'len'
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell
mailing list