Re: [Haskell-cafe] GHC exceeding command line length limit with split-objs - and a possible fix

2012-01-10 Thread Eugene Kirpichov
Oh well... looks like building ghc won't be easy, as it doesn't build with llvm-gcc and it's not easy to get a "real" gcc on Lion. But I don't stop trying :) On Wed, Jan 11, 2012 at 11:12 AM, Eugene Kirpichov wrote: > Hi, > > I'm building gtk2hs on a mac with -fsplit-objs, and during compilation

[Haskell-cafe] debugging snap app

2012-01-10 Thread Eric Wong
Hi, I'm trying to get the debugging messages in snap-server in order to find the socket leaking in my snap app. I find the doc on snapframework.com says that setting an environment variable DEBUG=1 will enable the app to output the messages in stderr. But I don't get any. I installed the snap-s

[Haskell-cafe] GHC exceeding command line length limit with split-objs - and a possible fix

2012-01-10 Thread Eugene Kirpichov
Hi, I'm building gtk2hs on a mac with -fsplit-objs, and during compilation of the largest file, which produces about 7000 split objects, the linking phase fails. I'm assuming that's because the command line length has been exceeded, because other files compile fine, without -fsplit-objs it compile

[Haskell-cafe] Where is the pairing-with-monoid monad instance?

2012-01-10 Thread Conal Elliott
Is the standard pair-with-monoid monad instance in some standard place? I see the Applicative instance in Control.Applicative, and the pair-with-monoid Functor instance in Control.Monad.Instances, and the (->) e and Either e monad instances also in Control.Monad.Instances. I'm looking for somethin

Re: [Haskell-cafe] feed release plan

2012-01-10 Thread David Terei
There is also: https://github.com/haskell where a bunch of us are hosting librari On 10 January 2012 12:01, Erik de Castro Lopo wrote: > Simon Michael wrote: > >> - the repo will be moved to github, under my account since I don't >> think there's a haskell community one > > Haskell package jan

Re: [Haskell-cafe] feed release plan

2012-01-10 Thread Erik de Castro Lopo
Simon Michael wrote: > - the repo will be moved to github, under my account since I don't > think there's a haskell community one Haskell package janitors might be an appropriate one: https://github.com/haskell-pkg-janitors Cheers, Erik -- --

Re: [Haskell-cafe] When will constraint kinds roll out?

2012-01-10 Thread Antoine Latter
On Tue, Jan 10, 2012 at 1:04 PM, Nicholas Tung wrote: > Just a quick, logistical question: I see constraint kinds didn't make it to > GHC 7.2.2; does anyone have guesses when the extension will roll out in an > official release? Our research team is interested in using Haskell for an > EDSL, and h

[Haskell-cafe] When will constraint kinds roll out?

2012-01-10 Thread Nicholas Tung
Just a quick, logistical question: I see constraint kinds didn't make it to GHC 7.2.2; does anyone have guesses when the extension will roll out in an official release? Our research team is interested in using Haskell for an EDSL, and having both constraint kinds and access to all of the libraries

[Haskell-cafe] GHCi with wxhaskell-dev

2012-01-10 Thread Dave Tapley
I'm working on a dev branch of wxHaskell [1] and one of the new features is that you can use wxHaskell in GHCi (again), but I seem to have broken something in the process: Firstly: wxHaskell works in GHCi insomuch as: You can load the hello world sample [2] in GHCi, do "> main", see the window spaw

[Haskell-cafe] feed release plan

2012-01-10 Thread Simon Michael
Hi all, thanks for the input about feed. Unless I hear from Sigbjorn or Don I will make a release soon, along these lines: - it will depend on xml-conduit - it will include a fix or two from Gwern Branwen and Frédéric Bour - the version will be 1.0 - the maintainer will be Haskell community - t

[Haskell-cafe] ANNOUNCE: sloth-0.0.1

2012-01-10 Thread Jan Christiansen
Hi, I have just released a prototype implementation of a tool (http://hackage.haskell.org/package/sloth) for checking whether a function is unnecessarily strict. It is inspired by Olaf Chitils StrictCheck tool (http://www.cs.kent.ac.uk/people/staff/oc/) but does not propose improvements that l

[Haskell-cafe] Code generation and optimisation for compiling Haskell

2012-01-10 Thread Steve Horne
Although I'm far from being an expert Haskell programmer, I think I'm ready to look into some of the details of how it's compiled. I've a copy of Modern Compiler Design (Grune, Bal, Jacobs and Langendoen) - I first learned a lot of lexical and parsing stuff from it quite a few years ago. Toda

Re: [Haskell-cafe] Simple type-class experiment turns out not so simple...

2012-01-10 Thread wren ng thornton
On 1/9/12 7:54 AM, Luminous Fennell wrote: On Mon, Jan 09 2012 at 10:37 +0100, Steve Horne wrote: On 08/01/2012 21:13, Brandon Allbery wrote: (Also, de facto I think it's already more or less been decided in favor of type families, just because functional dependencies are (a) a bit alien [bein

Re: [Haskell-cafe] Monad-control rant

2012-01-10 Thread Edward Z. Yang
Excerpts from Mikhail Vorozhtsov's message of Tue Jan 10 09:54:38 -0500 2012: > On 01/10/2012 12:17 AM, Edward Z. Yang wrote: > > Hello Mikhail, > Hi. > > > > (Apologies for reviving a two month old thread). Have you put some thought > > into > > whether or not these extra classes generalize in a

Re: [Haskell-cafe] Monad-control rant

2012-01-10 Thread Mikhail Vorozhtsov
On 01/10/2012 12:17 AM, Edward Z. Yang wrote: Hello Mikhail, Hi. (Apologies for reviving a two month old thread). Have you put some thought into whether or not these extra classes generalize in a way that is not /quite/ as general as MonadBaseControl (so as to give you the power you need) but

Re: [Haskell-cafe] How to "show" a utf8 string?

2012-01-10 Thread Magicloud Magiclouds
Thank you guys. I forgot the point that print involves show. On Tue, Jan 10, 2012 at 6:27 PM, Roel van Dijk wrote: > Have you tried using putStrLn? > > Small GHCI example: > >  Prelude> putStrLn "\29579" >  王 > > I believe the Show instances for chars and strings escape all > characters with a co

Re: [Haskell-cafe] typeclass and functional dependency problem

2012-01-10 Thread John Lato
> From: Martin DeMello > Subject: [Haskell-cafe] typeclass and functional dependency problem > > I'm writing a Gtk2hs app, and I have several custom widgets that are > composite objects represented by records, one field of which is a > container widget. I am trying to write a replacement for gtk2h

Re: [Haskell-cafe] SMP parallelism increasing GC time dramatically

2012-01-10 Thread Mikolaj Konarski
> As it turns out, I ran into a similar issue with a concurrent Gibbs > sampling implmentation I've been working on. Increasing -H fixed the > regression, as expected. I'd be happy to provide data if someone was > interested. Yes, please. Even if it turns out not a ThreadScope issue, it's still a

Re: [Haskell-cafe] How to "show" a utf8 string?

2012-01-10 Thread Felipe Almeida Lessa
On Tue, Jan 10, 2012 at 7:55 AM, Magicloud Magiclouds wrote: > Hi, >  I am using LDAP hackage to do some ldap searching. I am not sure if > this is its problem. All Chinese chars returned like "\29579". >  How to convert it to the actual Chinese char? I thought it was my > terminal's fault, so tri

Re: [Haskell-cafe] How to "show" a utf8 string?

2012-01-10 Thread Roel van Dijk
Have you tried using putStrLn? Small GHCI example: Prelude> putStrLn "\29579" 王 I believe the Show instances for chars and strings escape all characters with a codepoint > 127. 2012/1/10 Magicloud Magiclouds : > Hi, >  I am using LDAP hackage to do some ldap searching. I am not sure if > th

[Haskell-cafe] How to "show" a utf8 string?

2012-01-10 Thread Magicloud Magiclouds
Hi, I am using LDAP hackage to do some ldap searching. I am not sure if this is its problem. All Chinese chars returned like "\29579". How to convert it to the actual Chinese char? I thought it was my terminal's fault, so tried to use System.IO.UTF8 to put the result into a file and viewed by f

[Haskell-cafe] typeclass and functional dependency problem

2012-01-10 Thread Martin DeMello
I'm writing a Gtk2hs app, and I have several custom widgets that are composite objects represented by records, one field of which is a container widget. I am trying to write a replacement for gtk2hs's boxPackStart boxPackStart :: (BoxClass self, WidgetClass child) => self -> child -> Packing -> In