Re: [Haskell-cafe] hoogle command line program on Linux

2011-01-10 Thread Erik de Castro Lopo
Neil Mitchell wrote: Should all files created by hoogle data always have world read/execute? I'm not sure what the Unix conventions are - would that be reasonable? The files created by the 'hoogle data' command in /usr/share/hoogle should probably all be world readable. The directories

Re: [Haskell-cafe] Ratification for my understanding of functors

2011-01-10 Thread C K Kashyap
Yes, the combination of the type constructor (mapping from types/objects to types/objects) and the fmap instance (mapping from functions/arrows to functions/arrows) together constitute the functor. Saying list is a functor is a common sloppiness just like saying list is a monad. Thanks Wren

Re: [Haskell-cafe] How to write such a code elegantly ?

2011-01-10 Thread J . Waldmann
why has the following code indentation problem ? rollDice n = do let myGen = if doesFileExist /dev/urandom then betterStdGen else (mkStdGen . fromInteger) $ picoSec because if starts in the same column as myGen, so the parser inserts a ; before the if.

Re: [Haskell-cafe] Draw K-ary forest in dot script

2011-01-10 Thread J . Waldmann
parse K-ary forest and convert it to dot script (Graphviz). cf. http://hackage.haskell.org/package/graphviz ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] How to write such a code elegantly ?

2011-01-10 Thread Henk-Jan van Tuyl
On Mon, 10 Jan 2011 01:44:26 +0100, z_axis z_a...@163.com wrote: picoSec :: IO Integer picoSec = do t - ctPicosec `liftM` (getClockTime = toCalendarTime) return t : How to write these pseudo-code elegantly ? picoSec can be simplified to: picoSec = ctPicosec `liftM` (getClockTime

Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread John Lato
From: Aaron Gray aaronngray.li...@gmail.com On 9 January 2011 21:30, Henning Thielemann lemm...@henning-thielemann.dewrote: On Sun, 9 Jan 2011, Aaron Gray wrote: I am trying to work out how to use GHC.Ptr, Foreign.Storable, Data.Storable.Endian, and am looking for good examples

Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Aaron Gray
On 10 January 2011 13:49, John Lato jwl...@gmail.com wrote: From: Aaron Gray aaronngray.li...@gmail.com On 9 January 2011 21:30, Henning Thielemann lemm...@henning-thielemann.dewrote: On Sun, 9 Jan 2011, Aaron Gray wrote: I am trying to work out how to use GHC.Ptr, Foreign.Storable,

Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Daniel Fischer
On Monday 10 January 2011 16:45:36, Aaron Gray wrote: This is interesting, what does the following line do :- data Int24 = I24# Int# deriving (Eq, Ord) regarding the I24# and Int#, are these inbuilt ? Int# is the raw machine int (4 or 8 bytes) and I24# is the constructor. GHC uses the

Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread John Lato
On Mon, Jan 10, 2011 at 3:45 PM, Aaron Gray aaronngray.li...@gmail.comwrote: On 10 January 2011 13:49, John Lato jwl...@gmail.com wrote: From: Aaron Gray aaronngray.li...@gmail.com On 9 January 2011 21:30, Henning Thielemann lemm...@henning-thielemann.dewrote: On Sun, 9 Jan 2011, Aaron

Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Aaron Gray
On 10 January 2011 16:13, Daniel Fischer daniel.is.fisc...@googlemail.comwrote: On Monday 10 January 2011 16:45:36, Aaron Gray wrote: This is interesting, what does the following line do :- data Int24 = I24# Int# deriving (Eq, Ord) regarding the I24# and Int#, are these inbuilt ?

Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Antoine Latter
On Mon, Jan 10, 2011 at 10:17 AM, Aaron Gray aaronngray.li...@gmail.com wrote: On 10 January 2011 16:13, Daniel Fischer daniel.is.fisc...@googlemail.com wrote: On Monday 10 January 2011 16:45:36, Aaron Gray wrote: This is interesting, what does the following line do :-     data Int24 =

Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Aaron Gray
On 10 January 2011 16:36, Antoine Latter aslat...@gmail.com wrote: On Mon, Jan 10, 2011 at 10:17 AM, Aaron Gray aaronngray.li...@gmail.com wrote: On 10 January 2011 16:13, Daniel Fischer daniel.is.fisc...@googlemail.com wrote: On Monday 10 January 2011 16:45:36, Aaron Gray wrote:

Re: [Haskell-cafe] ANN: nanoparsec 0.1

2011-01-10 Thread Maciej Piechotka
On Sun, 2011-01-09 at 16:54 +, Magnus Therning wrote: On 09/01/11 00:46, Maciej Piechotka wrote: Nanoparsec is currently simply a port of attoparsec on the ListLike (the abstraction of lists used by iteratee). It allows to achive in parsing a near-attoparsec levels of speed

[Haskell-cafe] POPL 2011 Hotel Room

2011-01-10 Thread Michael D. Adams
Hi all, I'm a graduate student (male) and am looking for a (male) roommate to split the cost of a hotel room at POPL. If anyone is interested in splitting a room, please drop me a line. I will be attending the workshops collocated with POPL so I currently have a reservation at the conference

Re: [Haskell-cafe] hoogle command line program on Linux

2011-01-10 Thread Neil Mitchell
If so, I'll make a new release that just changes the file creation mask to the above during hoogle data (and sets it back after). That makes sense. If you have a darcs repo of the code (or even a tarball), I can check it before create a package. That would be very useful. I'll try and

Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Henning Thielemann
John Lato schrieb: You could use my word24 package[1] (GHC only) to provide non-aligned 24-bit word and int types with Storable instances. You should be able to write a binary instance (or whatever blaze-builder needs) fairly simply from this. Little-endian only ATM, but BE could be added

Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Aaron Gray
On 10 January 2011 22:30, Henning Thielemann lemm...@henning-thielemann.dewrote: John Lato schrieb: You could use my word24 package[1] (GHC only) to provide non-aligned 24-bit word and int types with Storable instances. You should be able to write a binary instance (or whatever

Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Antoine Latter
On Mon, Jan 10, 2011 at 5:23 PM, Aaron Gray aaronngray.li...@gmail.com wrote: On 10 January 2011 22:30, Henning Thielemann lemm...@henning-thielemann.de wrote: John Lato schrieb: You could use my word24 package[1] (GHC only) to provide non-aligned 24-bit word and int types with Storable

[Haskell-cafe] Join Manatee Team!

2011-01-10 Thread Andy Stewart
Hi all, I'm Andy, the author of Manatee ( http://haskell.org/haskellwiki/Manatee ). You can watch video http://www.youtube.com/watch?v=weS6zys3U8k (or http://www.youtube.com/watch?v=A3DgKDVkyeM ) to understand What is it? . :) Manatee is Haskell integrated environment written in Haskell.

Re: [Haskell-cafe] Join Manatee Team!

2011-01-10 Thread aditya siram
Thanks for the great software! I tried to install manatee from Hackage and got the following error: Configuring manatee-core-0.0.7... Warning: This package indirectly depends on multiple versions of the same package. This is highly likely to cause a compile failure. package uniplate-1.5.1 requires

Re: [Haskell-cafe] Join Manatee Team!

2011-01-10 Thread Andy Stewart
Hi aditya, What's the result of command ghc-pkg check? And which GHC version do you use? Manatee can't work with ghc-7.0.1 (ghc-7.0.1 have bug) Thanks, -- Andy aditya siram aditya.si...@gmail.com writes: Thanks for the great software! I tried to install manatee from Hackage and got the

Re: [Haskell-cafe] Join Manatee Team!

2011-01-10 Thread aditya siram
I do have some errors in ghc-pkg but they don't seem to relate to manatee. I am using ghc-6.12.3 ghc-pkg check There are problems in package happstack-util-0.5.0.2: dependency strict-concurrency-0.2.3-27185142ee20a352ac984eb1a7ba31ea doesn't exist There are problems in package hlint-1.8.3:

[Haskell-cafe] ghci 6.12.3 segfaults for reasons unknown to me.

2011-01-10 Thread Michael Litchard
mlitch...@kether:~/projects/perf/autoperf/session_creator/newtry2/strings$ ghci -v GHCi, version 6.12.3: http://www.haskell.org/ghc/ :? for help Glasgow Haskell Compiler, Version 6.12.3, for Haskell 98, stage 2 booted by GHC version 6.8.2 ghci was working a few weeks ago. I may have hidden a

Re: [Haskell-cafe] Join Manatee Team!

2011-01-10 Thread Andy Stewart
Hi, From your error, you need re-install package `derive` and `regex-tdfa`, then re-install manatee again. BTW, follow the step i wrote at http://hackage.haskell.org/package/manatee Please let me know if you have any problem with Manatee. Thanks, -- Andy aditya siram aditya.si...@gmail.com