[Haskell-cafe] yi-editor: Duplicate instance declarations

2009-09-27 Thread Marcelo Sousa
Hey guys, I'm trying to install yi using cabal but I got this error. Any ideas how to solve it?! I'm using ghc-6.10.1 and cabal-install version 0.6.2 using version 1.6.0.2 of the Cabal library. Thanks, Marcelo -- Code -- $ cabal install yi Resolving dependencies... Configuring yi-0.6.1...

Re: [Haskell-cafe] yi-editor: Duplicate instance declarations

2009-09-27 Thread Nicolas Pouillard
Excerpts from Marcelo Sousa's message of Sun Sep 27 14:13:43 +0200 2009: Hey guys, I'm trying to install yi using cabal but I got this error. Any ideas how to solve it?! I'm using ghc-6.10.1 and cabal-install version 0.6.2 using version 1.6.0.2 of the Cabal library. This means that you

[Haskell-cafe] Hurray! I hit my 1st true lazy IO problem

2009-09-27 Thread Günther Schmidt
and now I'll really have to figure out Iteratee / Enumerator to solve it. Can I call myself a Haskeller now? Günther. PS: The problem domain is crawling over a website. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Processing EXIF data with Haskell

2009-09-27 Thread Colin Paul Adams
I'm writing web software for a photograph gallery. I want to be able to display selective fields from the EXIF data. I thought I would be able to use the GD and exif libraries from Hackage to do this. However: Calling Graphics.GD.loadJpegByteString followed by Graphics.GD.saveJpegFile does not

Re: [Haskell-cafe] Re: Snow Leopard Breaks GHC

2009-09-27 Thread Gregory Collins
Tom Tobin korp...@korpios.com writes: On Tue, Sep 1, 2009 at 3:14 AM, Christian Maederchristian.mae...@dfki.de wrote: It seems, bootstrapping cabal went wrong. Does http://hackage.haskell.org/platform/2009.2.0.2/haskell-platform-2009.2.0.2-i386.dmg work? Installing the Haskell Platform

Re: [Haskell-cafe] Hurray! I hit my 1st true lazy IO problem

2009-09-27 Thread Khudyakov Alexey
В сообщении от 27 сентября 2009 18:59:57 Günther Schmidt написал: and now I'll really have to figure out Iteratee / Enumerator to solve it. Can I call myself a Haskeller now? If you wish so. But in fact you only need to overcome laziness. Not the first time in the life I suppose.

Re: [Haskell-cafe] Hurray! I hit my 1st true lazy IO problem

2009-09-27 Thread Daniel Fischer
Am Sonntag 27 September 2009 16:59:57 schrieb Günther Schmidt: PS: The problem domain is crawling over a website. E. Quick, swat it! ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Hurray! I hit my 1st true lazy IO problem

2009-09-27 Thread Don Stewart
gue.schmidt: and now I'll really have to figure out Iteratee / Enumerator to solve it. Can I call myself a Haskeller now? Günther. PS: The problem domain is crawling over a website. Can you just use strict IO? -- Don ___ Haskell-Cafe mailing

Re: [Haskell-cafe] Processing EXIF data with Haskell

2009-09-27 Thread Don Stewart
colin: I'm writing web software for a photograph gallery. I want to be able to display selective fields from the EXIF data. I thought I would be able to use the GD and exif libraries from Hackage to do this. However: Calling Graphics.GD.loadJpegByteString followed by

Re: [Haskell-cafe] Quadratic complexity though use of STArrays

2009-09-27 Thread Bertram Felgenhauer
Dan Rosén wrote: What complexity does these functions have? I argue that the shuffleArr function should be O(n), since it only contains one loop of n, where each loop does actions that are O(1): generating a random number and swapping two elements in an array. However, they both have the

[Haskell-cafe] Comments requested: succ Java

2009-09-27 Thread Curt Sampson
No, it's not quite what it sounds like. :-) Stuart Halloway recently posted a series of blog entries entitled Java.next[1], discussing the benefits of four other languages that compile to JVM bytecode and interoperate with Java: Clojure, Groovy, JRuby, and Scala. I thought I'd put my oar in and

Re: [Haskell-cafe] yi-editor: Duplicate instance declarations

2009-09-27 Thread Jochem Berndsen
Nicolas Pouillard wrote: Excerpts from Marcelo Sousa's message of Sun Sep 27 14:13:43 +0200 2009: Hey guys, I'm trying to install yi using cabal but I got this error. Any ideas how to solve it?! I'm using ghc-6.10.1 and cabal-install version 0.6.2 using version 1.6.0.2 of the Cabal library.

Re: [Haskell-cafe] Comments requested: succ Java

2009-09-27 Thread John A. De Goes
I'm not sure what the point of your series is. No one who is using Java now commercially can move to Haskell because Haskell doesn't run on the JVM. It makes sense to discuss Clojure, Groovy, JRuby, Scala, Fan, etc., as next Java's, because they all run on the JVM and have seamless

Re: [Haskell-cafe] Processing EXIF data with Haskell

2009-09-27 Thread Colin Paul Adams
Don == Don Stewart d...@galois.com writes: Don colin: I'm writing web software for a photograph gallery. I want to be able to display selective fields from the EXIF data. I thought I would be able to use the GD and exif libraries from Hackage to do this. However:

[Haskell-cafe] ANN: ListTree 0.1

2009-09-27 Thread yair...@gmail.com
Hi, I am pleased to announce the release of ListTree. ListTree is a package for combinatorial search and pruning of trees, and should be useful for problems such as those in Google Code Jam (where I, and possibly others* could make use of it), but possibly could even be useful for real

[Haskell-cafe] 16 bit floating point data in Haskell?

2009-09-27 Thread Olex P
Hi guys, Do we have anything like half precision floats in Haskell? Maybe in some non standard libraries? Or I have to use FFI + OpenEXR library to achieve this? Cheers, Oleksandr. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] QuickCheck Questions

2009-09-27 Thread Yusaku Hashimoto
Hello, I recently worked with QuickCheck for a while, But I still can't handle it well, And a few questions come to my mind. 1. How to find properties In QuickCheck examples on the codes or the papers, they find good properties easily. How did they find these properties? What property can make

Re: [Haskell-cafe] ANN: ListTree 0.1

2009-09-27 Thread wren ng thornton
yair...@gmail.com wrote: Hi, I am pleased to announce the release of ListTree. ListTree is a package for combinatorial search and pruning of trees, and should be useful for problems such as those in Google Code Jam (where I, and possibly others* could make use of it), but possibly could even be

Re: [Haskell-cafe] QuickCheck Questions

2009-09-27 Thread Gwern Branwen
On Sun, Sep 27, 2009 at 3:19 PM, Yusaku Hashimoto nonow...@gmail.com wrote: ... Do you think I wasted times? Have you ever tried PDD? And has it worked? If you have experience with TDD, how do you think about PDD? If you have any answers in any questions above, please tell me them. Thanks in

Re: [Haskell-cafe] 16 bit floating point data in Haskell?

2009-09-27 Thread Ross Mellgren
What about the built-in Float type? Prelude Foreign.Storable sizeOf (undefined :: Float) 4 Prelude Foreign.Storable sizeOf (undefined :: Double) 8 Or maybe you mean something that can be used with FFI calls to C, in which case Foreign.C.Types (CFloat). Both instance the Floating, RealFloat,

[Haskell-cafe] Debugging Haskell code

2009-09-27 Thread Paul Moore
I'm still playing round with my random dieroll generation program. In doing so, I just hit a segmentation fault (I didn't think Haskell could *cause* a segfault!) I'm sure it's my code - I got this to compile by fiddling with types until the errors (which I didn't understand) went away. Certainly

Re: [Haskell-cafe] Debugging Haskell code

2009-09-27 Thread andy morris
2009/9/27 Paul Moore p.f.mo...@gmail.com: I'm still playing round with my random dieroll generation program. In doing so, I just hit a segmentation fault (I didn't think Haskell could *cause* a segfault!) I'm sure it's my code - I got this to compile by fiddling with types until the errors

[Haskell-cafe] Hackage bug? Autobuild failure on literate source with ignored code blocks.

2009-09-27 Thread John Millikin
According to http://www.haskell.org/haskellwiki/Literate_programming, the following should compile properly because the second block of code will be ignored by GHC: \begin{code} main = putStrLn Hello world! \end{code} \begin{code}% main = -- TODO \end{code}% However, Hackage's automatic build

Re: [Haskell-cafe] Debugging Haskell code

2009-09-27 Thread Paul Moore
2009/9/27 andy morris a...@adradh.org.uk: mersenne-random uses the FFI, so it's probably that. I just ran your code with mersenne-random-1.0 and didn't get a segfault. What version are you using? Not entirely sure, I just did a cabal install a short while back. cabal list mersenne Warning:

Re: [Haskell-cafe] 16 bit floating point data in Haskell?

2009-09-27 Thread Peter Verswyvelen
He meant 16-bit floats, which have sizeOf 2 On GPUs this is common and implemented in hardware (at least on the old GPUs). On DPSs you commonly had 24-bit floats too. But these days I guess 32-bit is the minimum one would want to use? Most of the time I just use double anyway :) On Sun, Sep 27,

Re: [Haskell-cafe] Debugging Haskell code

2009-09-27 Thread Daniel Fischer
Am Sonntag 27 September 2009 22:02:45 schrieb andy morris: mersenne-random uses the FFI, so it's probably that. I just ran your code with mersenne-random-1.0 and didn't get a segfault. Yup, works here, too. And everything but mersenne-random should be fool-proof. What version are you using?

Re: [Haskell-cafe] 16 bit floating point data in Haskell?

2009-09-27 Thread Ross Mellgren
Oh sorry, I misread the original question. I take it all back! -Ross On Sep 27, 2009, at 4:19 PM, Peter Verswyvelen wrote: He meant 16-bit floats, which have sizeOf 2 On GPUs this is common and implemented in hardware (at least on the old GPUs). On DPSs you commonly had 24-bit floats

Re: [Haskell-cafe] 16 bit floating point data in Haskell?

2009-09-27 Thread Olex P
Hi, Yes, I mean sizeOf 2. It's useful not only on GPUs but also in normal software. Think of huge data sets in computer graphics (particle clouds, volumetric data, images etc.) Some data (normals, density, temperature and so on) can be easily represented as float 16 making files 200 GB instead of

Re: [Haskell-cafe] 16 bit floating point data in Haskell?

2009-09-27 Thread Olex P
Hi, Yes, I mean sizeOf 2. It's useful not only on GPUs but also in normal software. Think of huge data sets in computer graphics (particle clouds, volumetric data, images etc.) Some data (normals, density, temperature and so on) can be easily represented as float 16 making files 200 GB instead of

Re: [Haskell-cafe] 16 bit floating point data in Haskell?

2009-09-27 Thread Casey Hawthorne
I think a 16-bit float type would require compiler revisions as opposed to doing something within the present type classes. This is similar to how Java would benefit from an unsigned byte primitive type for processing images, etc., whereas Haskell already has Word8. -- Regards, Casey

Re: [Haskell-cafe] 16 bit floating point data in Haskell?

2009-09-27 Thread wren ng thornton
Olex P wrote: Hi, Yes, I mean sizeOf 2. It's useful not only on GPUs but also in normal software. Think of huge data sets in computer graphics (particle clouds, volumetric data, images etc.) Some data (normals, density, temperature and so on) can be easily represented as float 16 making files

Re: [Haskell-cafe] QuickCheck Questions

2009-09-27 Thread Yusaku Hashimoto
On Mon, Sep 28, 2009 at 4:42 AM, Gwern Branwen gwe...@gmail.com wrote: On Sun, Sep 27, 2009 at 3:19 PM, Yusaku Hashimoto nonow...@gmail.com wrote: ... Do you think I wasted times? Have you ever tried PDD? And has it worked? If you have experience with TDD, how do you think about PDD? If

Re: [Haskell-cafe] 16 bit floating point data in Haskell?

2009-09-27 Thread Olex P
Okay looks like FFI is the only way to go, Thanks. Cheers, Oleksandr. On Sun, Sep 27, 2009 at 9:50 PM, wren ng thornton w...@freegeek.org wrote: Olex P wrote: Hi, Yes, I mean sizeOf 2. It's useful not only on GPUs but also in normal software. Think of huge data sets in computer graphics

[Haskell-cafe] Re: ANN: CmdArgs - easy command line argument processing

2009-09-27 Thread Ben Franksen
Neil Mitchell wrote: I am pleased to announce CmdArgs v0.1. CmdArgs is a library for easy command line argument processing - taking the arguments passed into your program from getArgs and converting them into a structured value for use in your program. Compared to the System.Console.GetOpts

[Haskell-cafe] A proposals

2009-09-27 Thread Louis Wasserman
I'd like to see something resembling as-patterns in type signatures. Specifically, there are cases where I'm inclined to use (m ~ pat) in a type context when m isn't otherwise constrained, just so I can use m as an abbreviation for pat. To reduce these cases, I'd like to see the syntax m...@pat

Re: [Haskell-cafe] A proposals

2009-09-27 Thread Brad Larsen
On Sun, Sep 27, 2009 at 5:29 PM, Louis Wasserman wasserman.lo...@gmail.com wrote: I'd like to see something resembling as-patterns in type signatures. Specifically, there are cases where I'm inclined to use (m ~ pat) in a type context when m isn't otherwise constrained, just so I can use m as

Re: [Haskell-cafe] Comments requested: succ Java

2009-09-27 Thread Peter Verswyvelen
That's not really true. Just use CAL from the Open Quark framework... It's almost Haskell 98, with some extras, and compiles to fast JVM code. http://openquark.org/Open_Quark/Welcome.html http://openquark.org/Open_Quark/Welcome.htmlThey even seem to do all kinds of advanced optimizations - like

[Haskell-cafe] Re: ANN: rss2irc 0.4 released

2009-09-27 Thread Simon Michael
Whoops, bugfixes: Release notes for 0.4.2, 2009-09-27: - fix a bug where every --max-items-th announcement was skipped Release notes for 0.4.1, 2009-09-26: - fix release notes ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] (mostly OT) Strange patterns of commas

2009-09-27 Thread Matthias Kilian
Fibonacci numbers are always surprising. Try this on a terminal that's 159 characters wide (using a properly sized xterm(1) may be a good idea): let f = 1 : 1 : zipWith (+) f (tail f) in take 780 f Ciao, Kili -- There are two ways of constructing a software design: One way is to make

Re: [Haskell-cafe] (mostly OT) Strange patterns of commas

2009-09-27 Thread Matthew Brecknell
Now see if you can tell us why this pattern is similar: [ replicate n '-' | n - [140..171] ] Hint: Look at the closed form as n gets big: http://en.wikipedia.org/wiki/Fibonacci_number#Closed_form_expression After that, you can tell us why it's a parabola. Matthias Kilian wrote: Fibonacci

Re: [Haskell-cafe] 16 bit floating point data in Haskell?

2009-09-27 Thread Richard O'Keefe
On Sep 28, 2009, at 9:40 AM, Olex P wrote: Hi, Yes, I mean sizeOf 2. It's useful not only on GPUs but also in normal software. Think of huge data sets in computer graphics (particle clouds, volumetric data, images etc.) Some data (normals, density, temperature and so on) can be easily

[Haskell-cafe] Edinburgh Hackathon (Hac7) summary

2009-09-27 Thread Dougal Stanton
It's been nearly a month now since the Edinburgh Hackathon (29 30 August), organised to coincide with the convergence of Haskellers arriving for the ICFP. My apologies for this very late summary! Eric Kow was the driving force behind this Hackathon, though I agreed to help out locally because I

Re: [Haskell-cafe] 16 bit floating point data in Haskell?

2009-09-27 Thread Casey Hawthorne
On Mon, 28 Sep 2009 12:06:47 +1300, you wrote: On Sep 28, 2009, at 9:40 AM, Olex P wrote: Hi, Yes, I mean sizeOf 2. It's useful not only on GPUs but also in normal software. Think of huge data sets in computer graphics (particle clouds, volumetric data, images etc.) Some data (normals,

[Haskell-cafe] frag game-compiling error

2009-09-27 Thread selahaddin gerdan
Hi there, when I try to install frag,I get this error: .cabal/bin/cabal install frag Resolving dependencies... Downloading frag-1.1.2... Configuring frag-1.1.2... Preprocessing executables for frag-1.1.2... Building frag-1.1.2... [ 1 of 39] Compiling IdentityList ( src/IdentityList.hs,

Re: [Haskell-cafe] F# mailing list?

2009-09-27 Thread Jon Harrop
On Saturday 27 June 2009 18:31:25 GüŸnther Schmidt wrote: Hi guys, is there a mailing list for haskellers that defected to F#? Here's the F# mailing list on Google Groups: http://groups.google.com/group/fsharp?hl=en -- Dr Jon Harrop, Flying Frog Consultancy Ltd.

Re: [Haskell-cafe] frag game-compiling error

2009-09-27 Thread Lyndon Maydwell
I think this is an opengl version problem. I came across this error in vacuum-opengl after I had upgraded my opengl. I patched it up using a fromnumeric type call. On Mon, Sep 28, 2009 at 8:00 AM, selahaddin gerdan selahattin.ger...@gmail.com wrote: Hi there, when I try to install frag,I get

Re: [Haskell-cafe] A proposals

2009-09-27 Thread wren ng thornton
Louis Wasserman wrote: I'd like to see something resembling as-patterns in type signatures. Specifically, there are cases where I'm inclined to use (m ~ pat) in a type context when m isn't otherwise constrained, just so I can use m as an abbreviation for pat. To reduce these cases, I'd like to

Re: [Haskell-cafe] Comments requested: succ Java

2009-09-27 Thread Curt Sampson
On 2009-09-27 10:36 -0600 (Sun), John A. De Goes wrote: I'm not sure what the point of your series is. No one who is using Java now commercially can move to Haskell because Haskell doesn't run on the JVM. That's a rather strong statement, and I don't accept it. I can not only think of many

Re: [Haskell-cafe] Re: [Hs-Generics] how to automatically create and install documentations of a package?

2009-09-27 Thread Michael Shulman
Andy Gimblett wrote: Is there a way to make it automatically update a single contents page with links to the documentation of all installed packages? See: http://thread.gmane.org/gmane.comp.lang.haskell.cafe/53531/focus=53560