beginner question

2009-10-14 Thread Luca Ciciriello
Just a Haskell beginner question. If I load in GHCi the code below all works fine, I load a file and its content is shown on screen. But if I use the second version of my load_by_key (the commented one) no error is reported loading and executing this code, but nothing is shown on screen.

Re: beginner question

2009-10-14 Thread Philip K.F.
Dear Luca, The problem in your alternative code is that hGetContents lazily reads the contents of the handle it is passed. You've run into a cognitive bootstrap problem; the documentation for System.IO [1] does explain it, but I can see that you need to understand it to be able to read it ;)

Re: beginner question

2009-10-14 Thread Daniel Fischer
Am Mittwoch 14 Oktober 2009 08:26:10 schrieb Luca Ciciriello: Just a Haskell beginner question. This sort of generic question has a higher probability of receiving a quick answer on haskell-c...@haskell.org or beginn...@haskell.org, where more people are reading. If I load in GHCi the code

RE: beginner question

2009-10-14 Thread Luca Ciciriello
Thanks Philip and Daniel for your help. Your explanation is clear. Thanks also for direct me on the right news letters :-) Luca. _ Chat to your friends for free on selected mobiles

Re: ANNOUNCE: GHC 6.12.1 Release Candidate 1

2009-10-14 Thread Simon Marlow
On 14/10/2009 04:43, Antoine Latter wrote: On Sun, Oct 11, 2009 at 3:41 PM, Ian Lynaghig...@earth.li wrote: Hi all, We are pleased to (finally!) announce the first release candidate for GHC 6.12.1: http://darcs.haskell.org/~ghc/dist/6.12.1rc1/ As well as the source tarball:

Re: ANNOUNCE: GHC 6.12.1 Release Candidate 1

2009-10-14 Thread Antoine Latter
On Wed, Oct 14, 2009 at 4:34 AM, Simon Marlow marlo...@gmail.com wrote: template-haskell is a one of the packages that we call wired-in, because GHC needs to generate references to some of the things that it defines.  To make GHC independent of the version of the template-haskell package, we