[Haskell-cafe] ghc-7.4 on CentOS-5.8 ?

2012-06-27 Thread Johannes Waldmann
Dear all, I need a recent ghc on a not-so-recent (?) CentOS. The ghc binary package (7.2 or 7.4) does not work because of a mismatch in the libc version. ghc-7.0 is working but when I use it to compile 7.4, it breaks with some linker error (relocation R_X86_64_PC32 ...) it also suggests "recomp

Re: [Haskell-cafe] Long-running request/response protocol server using enumerator/iterator/iterIO/pipes/conduits/...

2012-06-27 Thread Erik de Castro Lopo
Michael Snoyman wrote: > That's > the reason I added connect-and-resume to conduit. I use the technique > in warp[1], which in fact *does* support multiple request/response > pairs due to connection keep-alive. But the code base isn't the > easiest introduction to the technique. If there's interes

Re: [Haskell-cafe] ghc-7.4 on CentOS-5.8 ?

2012-06-27 Thread Peter Simons
Hi Johannes, > ghc-7.0 is working but when I use it to compile 7.4, > it breaks with some linker error (relocation R_X86_64_PC32 ...) > it also suggests "recompile with -fPIC" but I don't see how. I seem to remember that this is a problem with the old version of GCC that's used to build the co

Re: [Haskell-cafe] not enough fusion?

2012-06-27 Thread Dominic Steinitz
Duncan Coutts googlemail.com> writes: > This could in principle be fixed with an arity raising transformation, Do you have a reference to arity raising transformations? Thanks, Dominic. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://w

Re: [Haskell-cafe] Unambiguous choice implementation

2012-06-27 Thread Heinrich Apfelmus
Bartosz Milewski wrote: I see. So your current implementation is not push, is it? Reactive-banana includes two implementations: a pull-based model implementation that specifies the semantics and a push-based implementation for actual work. So, yes, reactive-banana is push-based. Note that t

Re: [Haskell-cafe] Martin Odersky on "What's wrong with Monads"

2012-06-27 Thread Tillmann Rendel
Hi Rico, Rico Moorman wrote: data Tree = Leaf Integer | Branch (Tree Integer) (Tree Integer) amount:: Tree -> Integer amount (Leaf x) = x amount (Branch t1 t2) = amountt1 + amountt2 [...] additional requirement: "If the command-line flag --multiply is set, the function amount computes

Re: [Haskell-cafe] Martin Odersky on "What's wrong with Monads"

2012-06-27 Thread Yves Parès
> I'm not happy with any of these options. Why are you unhappy with the ImplicitParams option? It's pretty much like resorting to a newtype, as it's been suggested before. 2012/6/27 Tillmann Rendel > Hi Rico, > > Rico Moorman wrote: > >> data Tree = Leaf Integer | Branch (Tree Integer) (Tree

[Haskell-cafe] Combining Network Descriptions in Reactive.Banana

2012-06-27 Thread Alexander Foremny
Hello list, I am currently experimenting with Reactive.Banana and I am trying to write a program that simply displays a String which is supplied by the user. Thus in Main.hs I'd like to create a Behavior t String from some arbitrary sources and pass this to a library function performing the printi

[Haskell-cafe] cabal doens't forget old dependencies

2012-06-27 Thread Sjoerd Visscher
Hi all, I tried to install reactive-banana. This failed due to a dependency conflict, and then I noticed there was a newer version of reactive-banana. So I did cabal update, and tried to install again. But whatever I do, cabal keeps trying to install fclabels, but fclabels is no longer a depend

Re: [Haskell-cafe] cabal doens't forget old dependencies

2012-06-27 Thread Andres Löh
Hi. > I tried to install reactive-banana. This failed due to a dependency conflict, > and then I noticed there was a newer version of reactive-banana. So I did > cabal update, and tried to install again. But whatever I do, cabal keeps > trying to install fclabels, but fclabels is no longer a de

Re: [Haskell-cafe] cabal doens't forget old dependencies

2012-06-27 Thread Albert Y. C. Lai
On 12-06-27 11:29 AM, Sjoerd Visscher wrote: I tried to install reactive-banana. This failed due to a dependency conflict, and then I noticed there was a newer version of reactive-banana. So I did cabal update, and tried to install again. But whatever I do, cabal keeps trying to install fclabe

Re: [Haskell-cafe] cabal doens't forget old dependencies

2012-06-27 Thread Sjoerd Visscher
Ah, ok. I wasn't aware how flags work in Cabal, thanks. Makes me wonder why that flag was turned off on hackage. http://hackage.haskell.org/package/reactive-banana On Jun 27, 2012, at 5:51 PM, Andres Löh wrote: > Hi. > >> I tried to install reactive-banana. This failed due to a dependency >> c

Re: [Haskell-cafe] Combining Network Descriptions in Reactive.Banana

2012-06-27 Thread Sjoerd Visscher
This should work: library :: (forall t. NetworkDescription t (Behavior t [Char])) -> IO () greetings, Sjoerd On Jun 27, 2012, at 4:39 PM, Alexander Foremny wrote: > Hello list, > > I am currently experimenting with Reactive.Banana and I am trying to > write a program that simply displays a

Re: [Haskell-cafe] cabal doens't forget old dependencies

2012-06-27 Thread Andres Löh
Hi. On Wed, Jun 27, 2012 at 6:14 PM, Sjoerd Visscher wrote: > Ah, ok. I wasn't aware how flags work in Cabal, thanks. > > Makes me wonder why that flag was turned off on hackage. > http://hackage.haskell.org/package/reactive-banana I'm not sure "it was turned off". I see that it lists only some

Re: [Haskell-cafe] Combining Network Descriptions in Reactive.Banana

2012-06-27 Thread Alexander Foremny
Sweet! Thank you very much! Just out of curiosity: how does this differ from the following, not compiling type signature? > library :: forall t. NetworkDescription t (Behavior t String) -> IO () Regards, Alexander Foremny 2012/6/27 Sjoerd Visscher : > This should work: > >    library :: (forall

Re: [Haskell-cafe] Combining Network Descriptions in Reactive.Banana

2012-06-27 Thread Sjoerd Visscher
That is the same as just library :: NetworkDescription t (Behavior t String) -> IO () which means that the caller gets to pick which type "t" stands for. But with this: library :: (forall t. NetworkDescription t (Behavior t [Char])) -> IO () the caller is forced to pass a value that wo

Re: [Haskell-cafe] not enough fusion?

2012-06-27 Thread Thomas Schilling
It's described in Andy Gill's PhD thesis (which describes the foldr/build fusion). http://ittc.ku.edu/~andygill/paper.php?label=GillPhD96 Section 4.4 describes the basic ideas. There aren't any further details, though. Max's Strict Core paper also describes it a bit (Section 6): http://www.cl.cam

Re: [Haskell-cafe] ANNOUNCE : Leksah 0.12.1.2 (fixes some metadata issues)

2012-06-27 Thread Sergei Trofimovich
On Wed, 20 Jun 2012 16:59:16 -0700 Hilco Wijbenga wrote: > Hi Hamish, > > On 19 June 2012 22:47, Hamish Mackenzie > wrote: > > This release has an important bug fix for the metadata download. > > When metadata was downloaded using libcurl it was not treated > > as binary data.  If you used one

[Haskell-cafe] Haskell Weekly News: Issue 233

2012-06-27 Thread Daniel Santa Cruz
Welcome to issue 233 of the HWN, an issue covering crowd-sourced bits of information about Haskell from around the web. This issue covers the week of June 17 to 23, 2012. Quotes of the Week * ciaranm: if it's ugly, it's imperative. if it's incomprehensible, it's functional. *

Re: [Haskell-cafe] ghc-7.4 on CentOS-5.8 ?

2012-06-27 Thread Tim Docker
Here's the steps I had to go go to get ghc7.0 working on RHEL 5.6: http://twdkz.wordpress.com/2011/12/21/installing-ghc-7-0-3-and-the-haskell-platform-on-rhel-5-6/ I expect that the same steps will work for ghc 7.4. I need to use a more recent version of gcc that than supplied with RHEL5.6. Ti

[Haskell-cafe] Scribd's AI challenge has Haskell support

2012-06-27 Thread aditya bhargava
Hey all, I work at scribd.com. A few weeks ago we had released an AI game. It allowed you to use Javascript to program a bot. I've been wanting to add Haskell as a supported language for some time, and it's finally done! I'm pretty excited since I think we are the first big company to do something

Re: [Haskell-cafe] ghc-7.4 on CentOS-5.8 ?

2012-06-27 Thread aditya bhargava
Johannes, This worked for me: http://justhub.org/download Adit On Wed, Jun 27, 2012 at 4:05 PM, Tim Docker wrote: > Here's the steps I had to go go to get ghc7.0 working on RHEL 5.6: > > > http://twdkz.wordpress.com/2011/12/21/installing-ghc-7-0-3-and-the-haskell-platform-on-rhel-5-6/ > > I e