Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-29 Thread Thomas Davie
If it is closed, it is fixed in the HEAD. Any ideas how to get hold of a copy of HEAD, when my Haskell compiler currently outputs rubbish? Bob ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-29 Thread Dmitri Sosnik
Here - http://hackage.haskell.org/trac/ghc/wiki/Building, but it won't help, cause you need working ghc to build ghc. D On 29/08/2009, at 6:33 PM, Thomas Davie wrote: If it is closed, it is fixed in the HEAD. Any ideas how to get hold of a copy of HEAD, when my Haskell compiler

[Haskell-cafe] Edinburgh Saturday Meetup - we are here! (Henderson's)

2009-08-29 Thread Eric Y. Kow
Dear Haskellers, Just for info, we are currently at Henderson's Cafe on Hanover St (just around the corner from the RCPE). If anybody needs to get in touch: Eric - +44 75187 28483 Dougal - +44 7814 412539 More details on the wiki if we move: http://www.haskell.org/haskellwiki/Hac7 -- Eric Kow

Re: [Haskell-cafe] Problem with monadic formlets

2009-08-29 Thread Jeremy Shaw
Hello, Yeah, it seems that checkM in formlets 0.6 broken. I reported the bug to MightByte as well. - jeremy At Fri, 28 Aug 2009 12:49:08 +0100, Colin Paul Adams wrote: Colin == Colin Paul Adams co...@colina.demon.co.uk writes: Jeremy == Jeremy Shaw jer...@n-heptane.com writes:

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-29 Thread Max Bolingbroke
Hi, If you compile with: -opta -m32 -optl -m32 Then you can get GHC to produce binaries again. WARNING: currently you cannot use this trick to build a Snow Leopard compatible GHC using the HEAD snapshot at http://www.haskell.org/ghc/dist/current/d ist/, because the most recent (20090828) does

[Haskell-cafe] GUI library

2009-08-29 Thread Michael Mossey
I want to choose a GUI library for my project. Some background: I'm a beginner to functional programming and have been working through Haskell books for a few months now. I'm not just learning Haskell for s**ts and giggles; my purpose is to write music-composition-related code; in particular,

Re: [Haskell-cafe] How to calculate de number of digits of an integer? (was: Is logBase right?)

2009-08-29 Thread Bertram Felgenhauer
Uwe Hollerbach wrote: Here's my version... maybe not as elegant as some, but it seems to work. For base 2 (or 2^k), it's probably possible to make this even more efficient by just walking along the integer as stored in memory, but that difference probably won't show up until at least tens of

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-29 Thread David Leimbach
Well if I build GHC on Leopard from HEAD and then copy it to Snow Leopard would that not work? Dave On Sat, Aug 29, 2009 at 1:52 AM, Dmitri Sosnik dim...@gmail.com wrote: Here - http://hackage.haskell.org/trac/ghc/wiki/Building, but it won't help, cause you need working ghc to build ghc. D

Re: [Haskell-cafe] Error during hlint install ?

2009-08-29 Thread Neil Mitchell
Hi Dusan,  Am I doing something wrong if I get the following error during cabal installation of hlint? Is there any way how to solve it? The problem is that version 1.15 of hscolour released recently is incompatible with 1.13 which HLint was being tested against. I've now switched over to

Re: [Haskell-cafe] GUI library

2009-08-29 Thread Michael Mossey
Hi Jean-Denis, Thanks for the information. Do you know how WxHaskell fits my needs? For example, does it have good docs and examples for a beginner? Does it have the ability to draw lines and characters on a surface? Does it have a type of canvas which usually refers to an optimized drawing

Re: [Haskell-cafe] GUI library

2009-08-29 Thread Jason Dagit
On Sat, Aug 29, 2009 at 8:03 AM, Michael Mosseym...@alumni.caltech.edu wrote: I want to choose a GUI library for my project. Some background: I'm a beginner to functional programming and have been working through Haskell books for a few months now. I'm not just learning Haskell for s**ts and

[Haskell-cafe] Composition of n-arity functions

2009-08-29 Thread Bas van Dijk
Hello, In the levmar binding[1][2] me and my brother are working on, I need a function composition operator that is overloaded to work on functions of any arity. Basically its type needs to be something like the following: (.*) :: (b - c) - NFunction n a b - NFunction n a c where 'NFunction n a

Re: [Haskell-cafe] Composition of n-arity functions

2009-08-29 Thread Daniel Peebles
As far as I can tell, it's because the NFunction type family isn't (at least from GHC's point of view) invertible. Data families are injective, but type families need not be, so it's quite fine for you to write something like type instance TypeFunction A = Q type instance TypeFunction B = Q Now

Re: [Haskell-cafe] Error during hlint install ?

2009-08-29 Thread Dušan Kolář
Yes, it works fine, now. Thank you! Dušan Neil Mitchell wrote: Hi Dusan, Am I doing something wrong if I get the following error during cabal installation of hlint? Is there any way how to solve it? The problem is that version 1.15 of hscolour released recently is incompatible

Re: [Haskell-cafe] Problem with monadic formlets

2009-08-29 Thread Jeremy Shaw
At Sat, 29 Aug 2009 15:46:42 +0100, Chris Eidhof (formlets) wrote: Confirmed. checkM is broken, thanks for noticing! I'll have a look into it, I'm not sure whether it can be fixed. I was thinking of removing all the monadic stuff from the formlets. I think this will make for a much

Re: [Haskell-cafe] How to calculate the number of digits of an integer? (was: Is logBase right?)

2009-08-29 Thread Uwe Hollerbach
Ouch! That is indeed an improvement... I don't recall all the details of this codelet, but I think I got the seed off the net somewhere (perhaps this list?), and it might well have been better originally. So, brightly brightly and with beauty, I probably executed a verschlimmbesserung. After a

[Haskell-cafe] Hackage rankings : August 2009

2009-08-29 Thread Don Stewart
Monthly statistics on the most popular Haskell applications and libraries on Hackage. August 2009 edition now up: http://donsbot.wordpress.com/2009/08/29/haskell-popularity-rankings-september-2009/ -- Don ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] How to calculate de number of digits of an integer?

2009-08-29 Thread Henning Thielemann
Bulat Ziganshin schrieb: Hello Henning, Tuesday, August 25, 2009, 7:01:24 PM, you wrote: I hope that 'show' will not need quadratic time but will employ a more efficient algorithm yes, you are right I thought a little about it. If I had to implement that in GMP it could be done quite

Re: [Haskell-cafe] GUI library

2009-08-29 Thread Michael Mossey
Jason Dagit wrote: I've never used it myself, but if you're going to be drawing a lot perhaps cairo is right for you? http://cairographics.org/hscairo/ I suspect you'll have to be self-taught here. Gtk2Hs and WxHaskell are probably the most mature gui libs for Haskell. Yet with either one

Re: [Haskell-cafe] How to calculate de number of digits of an integer? (was: Is logBase right?)

2009-08-29 Thread Edward Kmett
I have a version of this inside of the monoid library buried in the Data.Ring.Semi.BitSet module: http://comonad.com/haskell/monoids/dist/doc/html/monoids/src/Data-Ring-Semi-BitSet.html#hwm http://comonad.com/haskell/monoids/dist/doc/html/monoids/src/Data-Ring-Semi-BitSet.html#hwmTo do any better

Re: [Haskell-cafe] How to calculate de number of digits of an integer? (was: Is logBase right?)

2009-08-29 Thread Daniel Peebles
Although this isn't a very general approach, I just submitted a patch to GHC (not yet merged) with a gmp binding to mpz_sizeinbase, which would allow for very quick computation of number of digits in any base. On Sat, Aug 29, 2009 at 9:12 PM, Edward Kmettekm...@gmail.com wrote: I have a version