[Haskell-cafe] New to Haskell - Question about hugsIORun from old Prelude

Rahul Naik rinaik at hotmail.com
Mon Dec 11 17:19:29 EST 2006


Hello,

I am trying to rewrite some older (2001) haskell :

myReadFile :: String -> String
myReadFile f = case hugsIORun (readFile f) of
	         Right s -> s
		 Left _ -> ""

Can someone provide me with a up to date version of the above
bit of code without using code from the old Prelude?

Thanks,

R

_________________________________________________________________
Visit MSN Holiday Challenge for your chance to win up to $50,000 in Holiday 
cash from MSN today!  
http://www.msnholidaychallenge.com/index.aspx?ocid=tagline&locale=en-us



More information about the Haskell-Cafe mailing list