Newsgroups: fa.haskell
From: Jonathan Cast <jonathancc...@fastmail.fm>
Date: Sun, 17 Feb 2008 02:48:56 UTC
Local: Sat, Feb 16 2008 9:48 pm
Subject: Re: [Haskell-cafe] Doubting Haskell
On 16 Feb 2008, at 5:04 PM, Donn Cave wrote:
> On Feb 16, 2008, at 3:46 PM, Philippa Cowderoy wrote: >> On Sat, 16 Feb 2008, Alan Carter wrote: >>> I'm a Haskell newbie, and this post began as a scream for help. >> Extremely understandable - to be blunt, I don't really feel that > Ironically, the simple task of reading a file is more work than I > But in Haskell, you cannot read a file line by line without writing an end up binding the moral equivalent of tryJust (\ exc -> case exc of somewhere at top level and then calling that where it's needed. > For the author of the original post ... can't make out what you Also, you might need to know that bracket nests in various ways: > actually > found and tried, so you should know about "catch" in the Prelude, the > basic exception handler. bracket openFile hClose $ bracket readLine cleanUpLine $ proceed There's also finally, for when the first argument to bracket is jcc _______________________________________________ You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||