I was unhappy with the use of `error` in my first solution, so I wrote a
second solution that's more robust. It also demonstrates monadic style.
The new solution is at the bottom.
Dean
On Thu, 23 Jan 2003, Dean Herington wrote:
On Sun, 19 Jan 2003, Nick Name wrote:
I got another
On Sun, 19 Jan 2003, Nick Name wrote:
I got another trouble: I need to build a record type like
Package { name :: String, version :: Int , mantainer :: String ... other
fields ... }
from a list of string of the form
[Package: ... , Mantainer: ... , Version: ... , ... ]
where the
On Sun, 19 Jan 2003 08:51:31 -0800
Mark P Jones [EMAIL PROTECTED] wrote:
linesFromFile = fmap lines . readFile
Nice :) BTW, is readFile implemented with some strict evaluation
construct ?
I got another trouble: I need to build a record type like
Package { name :: String, version :: Int