Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://www.haskell.org/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-requ...@haskell.org
You can reach the person managing the list at beginners-ow...@haskell.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. Re: Couple of problems with leksah (Peter Hall) 2. Laziness and XML parsing (Sean Hess) 3. Re: Laziness and XML parsing (Felipe Almeida Lessa) 4. multi-haskell management (Rustom Mody) 5. Re: multi-haskell management (yi huang) ---------------------------------------------------------------------- Message: 1 Date: Tue, 8 Nov 2011 01:47:29 +0000 From: Peter Hall <peter.h...@memorphic.com> Subject: Re: [Haskell-beginners] Couple of problems with leksah To: Daniel Fischer <daniel.is.fisc...@googlemail.com> Cc: beginners@haskell.org Message-ID: <CAA6hAk5Y=Dg1pPGW9nrwMYP-q412mqLK-GX8VSOCxZHw=xg...@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Thanks. That got me a bit further, but there are a lot more errors now! cabal: Error: some packages failed to install: binary-shared-0.8.1 failed during the building phase. The exception was: ExitFailure 1 cairo-0.12.1 failed during the configure step. The exception was: ExitFailure 1 gio-0.12.1 depends on glib-0.12.1 which failed to install. glib-0.12.1 failed during the configure step. The exception was: ExitFailure 1 gtk-0.12.1 depends on glib-0.12.1 which failed to install. gtksourceview2-0.12.3 depends on glib-0.12.1 which failed to install. haddock-2.9.3 failed during the building phase. The exception was: ExitFailure 1 hslogger-1.1.5 failed during the building phase. The exception was: ExitFailure 1 ige-mac-integration-0.1.0.1 depends on glib-0.12.1 which failed to install. leksah-0.10.0.4 depends on hslogger-1.1.5 which failed to install. leksah-server-0.10.0.4 depends on hslogger-1.1.5 which failed to install. ltk-0.10.0.4 depends on haddock-2.9.3 which failed to install. pango-0.12.1 depends on glib-0.12.1 which failed to install. Peter On Tue, Nov 8, 2011 at 1:18 AM, Daniel Fischer <daniel.is.fisc...@googlemail.com> wrote: > On Tuesday 08 November 2011, 01:59:47, Peter Hall wrote: >> I didn't get any response on the Leksah forum, so I hope it's ok to ask >> here. > > Sure. Anything Haskell-related is okay to ask here. > >> >> First problem, I keep seeing this in the error log: >> > Setup: You need to re-run the 'configure' command. The version of >> > Cabal being used has changed (was Cabal-1.10.2.0, now >> > Cabal-1.10.1.0). Additionally the compiler is different (was >> > ghc-6.12, now ghc-7.0) which is probably the cause of the problem. >> >> When I run configure, it just prints: >> > Resolving dependencies... >> > Configuring pokercalc-0.0.1... >> >> But it doesn't fix anything. > > Sorry, no idea for that one. > >> >> The other problem is when I try to update cabal: >> > cabal install leksah >> >> Resolving dependencies... >> cabal: cannot configure haddock-2.9.4. It requires ghc >=7.2 && <7.4 >> There is no available version of ghc that satisfies >=7.2 && <7.4 > > haddock-2.9.4 is exclusively for ghc-7.2, with ghc-7.0, you need > haddock-2.9.2, try > > $ cabal install leksah --constraint="haddock < 2.9.4" > >> >> I'm using Haskell Platform 2011.2.0.1 for Mac OS X 10.6 >> Any ideas? >> >> Peter > > ------------------------------ Message: 2 Date: Mon, 7 Nov 2011 19:45:40 -0700 From: Sean Hess <seanh...@gmail.com> Subject: [Haskell-beginners] Laziness and XML parsing To: beginners@haskell.org Message-ID: <701e4cf4-0417-49d2-8d94-c7c81c7e7...@gmail.com> Content-Type: text/plain; charset="us-ascii" I want to parse a large xml file (2GB), without putting the whole thing into memory. It's pretty simple with a sax parser in most languages, you just stream bytes to the sax parser, and wait for sax events. Here's what I think the equivalent is in Haskell - https://gist.github.com/1346854 Is the xml file being read lazily? It seems lazy, but it also seems like all the sax events would be loaded into memory. If not, how is that possible? In order to be lazy, it seems like parse would have to be an impure function, so that it could back to the disk to get more stuff. ~sean -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.haskell.org/pipermail/beginners/attachments/20111107/84860e0d/attachment-0001.htm> ------------------------------ Message: 3 Date: Tue, 8 Nov 2011 00:59:24 -0200 From: Felipe Almeida Lessa <felipe.le...@gmail.com> Subject: Re: [Haskell-beginners] Laziness and XML parsing To: Sean Hess <seanh...@gmail.com> Cc: beginners@haskell.org Message-ID: <CANd=ogeajurdmbcdg3x3ghugysnmxe6vj+nn1tnmcxrc9t4...@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 On Tue, Nov 8, 2011 at 12:45 AM, Sean Hess <seanh...@gmail.com> wrote: > I want to parse a large xml file (2GB), without putting the whole thing into > memory. It's pretty simple with a sax parser in most languages, you just > stream bytes to the sax parser, and wait for sax events. I recommend you taking a look at xml-enumerator [1] and libxml-enumerator [2]. They are the SAX parsers you know from the imperative world but much easier to write =). In particular, you don't need to rely on lazyness. Cheers, [1] http://hackage.haskell.org/package/xml-enumerator [2] http://hackage.haskell.org/package/libxml-enumerator -- Felipe. ------------------------------ Message: 4 Date: Tue, 8 Nov 2011 09:28:46 +0530 From: Rustom Mody <rustompm...@gmail.com> Subject: [Haskell-beginners] multi-haskell management To: beginners <beginners@haskell.org> Message-ID: <CAJ+TeofkPomzk+1+PJozv_iga6djQ_LzF4p49DE3+oTQ4=6=-g...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" Ive just finished building haskell from source. [Thanks to all the folks who've made this so easy] 1. What is the official way for ensuring that some command like $ cabal install vector goes into my new haskell and not the old? 2. If I modify PATH so that the new ghc is found before the system one, will not system-ly things break (when for example I mess around in the haskell sources and break it?) [BTW I am on debian testing/gnome and I gather that an increasing amt of sysad stuff is being done in haskell. So I certainly do not want that I play around inside haskell sources and synaptic for example stops working :-) ] -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.haskell.org/pipermail/beginners/attachments/20111108/4a12e098/attachment-0001.htm> ------------------------------ Message: 5 Date: Tue, 8 Nov 2011 13:07:47 +0800 From: yi huang <yi.codepla...@gmail.com> Subject: Re: [Haskell-beginners] multi-haskell management To: Rustom Mody <rustompm...@gmail.com> Cc: beginners <beginners@haskell.org> Message-ID: <CAHU7rYZxQAMogMPNhiOXeN3=xhtn0rc0+4s4v+0hs5o+9zp...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" This is the scenario which virthualenv fit in. https://github.com/Paczesiowa/virthualenv On Tue, Nov 8, 2011 at 11:58 AM, Rustom Mody <rustompm...@gmail.com> wrote: > Ive just finished building haskell from source. > [Thanks to all the folks who've made this so easy] > > 1. What is the official way for ensuring that some command like > $ cabal install vector > goes into my new haskell and not the old? > > 2. If I modify PATH so that the new ghc is found before the system one, > will not system-ly things break (when for example I mess around in the > haskell sources and break it?) > > [BTW I am on debian testing/gnome and I gather that an increasing amt of > sysad stuff is being done in haskell. So I certainly do not want that I > play around inside haskell sources and synaptic for example stops working > :-) ] > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://www.haskell.org/mailman/listinfo/beginners > > -- http://www.yi-programmer.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.haskell.org/pipermail/beginners/attachments/20111108/ed0046dc/attachment-0001.htm> ------------------------------ _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners End of Beginners Digest, Vol 41, Issue 10 *****************************************