[Haskell-cafe] Converting String

Keith Wansbrough Keith.Wansbrough at cl.cam.ac.uk
Mon Jan 26 09:55:04 EST 2004


Derek Elkins writes:

> On Mon, 26 Jan 2004 18:05:16 +1030
> Alex Gontcharov <alexg005 at hotmail.com> wrote:
> 
> > I'm fairly new to Haskell, I'd like to know how to convert
> > a list of Strings of type IO [String] to Int.
> > I used map read p, where p is a list of IO Strings ["1", "2"]
> 
> http://www.haskell.org/tutorial/
> http://www.haskell.org/tutorial/io.html
> http://www.haskell.org/learning.html

Also

http://www.haskell.org/hawiki/ThatAnnoyingIoType
http://www.haskell.org/hawiki/UsingIo
http://www.haskell.org/hawiki/UsingMonads

--KW 8-)
-- 
Keith Wansbrough <kw217 at cl.cam.ac.uk>
http://www.cl.cam.ac.uk/users/kw217/
University of Cambridge Computer Laboratory.



More information about the Haskell-Cafe mailing list