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: Re: problem with System.Directory.Tree (Anand Mitra) 2. Re: how to update cabal? (prad) 3. Re: Re: problem with System.Directory.Tree (Stephen Tetley) 4. cabal on windows 2000 (corentin.dup...@ext.mpsa.com) ---------------------------------------------------------------------- Message: 1 Date: Mon, 28 Jun 2010 08:50:42 +0530 From: Anand Mitra <mi...@kqinfotech.com> Subject: Re: [Haskell-beginners] Re: problem with System.Directory.Tree To: Stephen Tetley <stephen.tet...@gmail.com> Cc: beginners@haskell.org Message-ID: <aanlktinwdfwflcrdjkrwoq4i5cjvww5cm9jfo2a9c...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: dir-recurse.hs Type: text/x-haskell Size: 2662 bytes Desc: not available Url : http://www.haskell.org/pipermail/beginners/attachments/20100627/a47a9c89/dir-recurse-0001.bin ------------------------------ Message: 2 Date: Mon, 28 Jun 2010 00:46:47 -0700 From: prad <p...@towardsfreedom.com> Subject: [Haskell-beginners] Re: how to update cabal? To: beginners@haskell.org Message-ID: <20100628004647.6bf99...@gom> Content-Type: text/plain; charset=US-ASCII On Thu, 10 Jun 2010 12:18:02 +0200 Daniel Fischer <daniel.is.fisc...@web.de> wrote: > The new cabal-0.8.2 is probably installed in $HOME/.cabal/bin and > that directory isn't in your $PATH. Add it to your path (if it isn't > in) before the directory where cabal-0.8.0 is in, so version 0.8.2 is > found first. thx daniel! that would appear to have been my problem too. for instance, $ /usr/bin/cabal -V cabal-install version 0.8.0 using version 1.8.0.2 of the Cabal library vs $ .cabal/bin/cabal -V cabal-install version 0.8.2 using version 1.8.0.2 of the Cabal library but after putting it in the PATH eg in .bashrc export ~/.cabal/bin:$PATH we get cabal -V cabal-install version 0.8.2 using version 1.8.0.2 of the Cabal library -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imagination - truly a site for soaring I's ------------------------------ Message: 3 Date: Mon, 28 Jun 2010 08:53:04 +0100 From: Stephen Tetley <stephen.tet...@gmail.com> Subject: Re: [Haskell-beginners] Re: problem with System.Directory.Tree To: Anand Mitra <mi...@kqinfotech.com> Cc: beginners@haskell.org Message-ID: <aanlktimwm9i8fa8pgy0y0z8j1sgnznwoduh2va2b3...@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Hi Anand MD5Digest is an abstract type (the constructor is not exported from its module) but it is an instance of Binary. ClockTime (from System.Time) is not an instance of Binary but it does export its constructor. Neither are instances of Data.Data. So I would hand-craft an instance of Binary for the Props datatype rather than try to first make them instances of Data. The code will be something like this, as I don't have MD5 installed it is unchecked: class Binary Props where put (Prop md5 tim name) = do { putWord8 0 -- number each constructor ; put md5 -- MD5Digest has a Binary instance ; putTOD tim ; put name } put Blank = do { putWord8 1 } -- number each constructor get = do { typ <- getWord8 -- get the constructor tag... ; case typ of 0 -> getProp 1 -> return Blank } getProp :: Get Props getProp = do { md5 <- get ; tim <- getTOD ; name <- get ; return (Prop md5 tim name) } -- ClockTime doesn't have a binary instance -- but a it has a single constructor -- -- > TOD Integer Integer - -- -- and Integer has a Binary instance, so I -- would make auxillaris for put and get: putTOD :: ClockTime -> Put () putTOD (TOD a b) = do { put a ; put b } getTOD :: Get ClockTime getTOD = do { a <- get; b <- get; return (TOD a b) } ------------------------------ Message: 4 Date: Mon, 28 Jun 2010 17:53:37 +0200 From: corentin.dup...@ext.mpsa.com Subject: [Haskell-beginners] cabal on windows 2000 To: beginners@haskell.org Message-ID: <of46014cc8.2848edec-onc1257750.0056d5b9-c1257750.00574...@mpsa.com> Content-Type: text/plain; charset=US-ASCII Hello, cabal from the new haskell platform fails on windows 2000: http://trac.haskell.org/haskell-platform/ticket/101 Do you know of a workaround? Downgrade Cabal? Best Corentin ------------------------------ _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners End of Beginners Digest, Vol 24, Issue 39 *****************************************