Re: [Haskell-cafe] Re: How to browse code written by others

2010-06-20 Thread Claus Reinke
If you go this route, I will shamelessly promote hothasktags instead of ghci. It generates proper tags for qualified imports. What do you mean by proper here? I think Luke means that if you use qualified names then hothasktags can give you better location information than current ghci ctags.

Re: [Haskell-cafe] Mapping a list of functions

2010-06-20 Thread Liam O'Connor
swing map :: forall a b. [a - b] - a - [b] swing any :: forall a. [a - Bool] - a - Bool swing foldr :: forall a b. b - a - [a - b - b] - b swing zipWith :: forall a b c. [a - b - c] - a - [b] - [c] swing find :: forall a. [a - Bool] - a - Maybe (a - Bool) -- applies each of the predicates to

Re: [Haskell-cafe] Mapping a list of functions

2010-06-20 Thread Christopher Done
I love that. It's great. Definitely going in my .ghci file. On 20 June 2010 12:28, Liam O'Connor lia...@cse.unsw.edu.au wrote: swing map :: forall a b. [a - b] - a - [b] swing any :: forall a. [a - Bool] - a - Bool swing foldr :: forall a b. b - a - [a - b - b] - b swing zipWith :: forall a b

[Haskell-cafe] Third Ghent FPG Meeting on Tuesday, June 29: Final Program

2010-06-20 Thread Jeroen Janssen
(apologies if you receive multiple copies) Dear all, We have finalized the program for the third Ghent FPG Meeting on Tuesday, June 29 in the Technicum building of Ghent University (Sint-Pietersnieuwstraat 41, 9000 Gent) at 19h. As before, to enter the building, you should go to the automatic

[Haskell-cafe] Installing Erlang on OSX

2010-06-20 Thread Giuseppe Luigi Punzi Ruiz
Hi all, I would like to play a little with erlang. I downloaded Haskell platform, ang ghc and ghci seems to work. Trying to install leksah, Cabal, gives me the following error. http://trac.haskell.org/haskell-platform/ticket/110 I downloaded and installed Haskell Platform from source.

Re: [Haskell-cafe] Installing Haskell on OSX

2010-06-20 Thread Giuseppe Luigi Punzi Ruiz
WTF! Sorry for the mistake in the title, is the problem of doing 124 different things at the same time :P El 20/06/2010, a las 16:28, Giuseppe Luigi Punzi Ruiz escribió: Hi all, I would like to play a little with erlang. I downloaded Haskell platform, ang ghc and ghci seems to work.

Re: [Haskell-cafe] Installing Haskell on OSX

2010-06-20 Thread Antoine Latter
On Sun, Jun 20, 2010 at 9:49 AM, Giuseppe Luigi Punzi Ruiz glpu...@lordzealon.com wrote: WTF! Sorry for the mistake in the title, is the problem of doing 124 different things at the same time :P It looks like it is failing to install the 'glib' haskell package. What do you see when you try:

Re: [Haskell-cafe] Installing Haskell on OSX

2010-06-20 Thread Giuseppe Luigi Punzi Ruiz
[1 of 2] Compiling Gtk2HsSetup ( /var/folders/fA/ fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/glib-0.11.0/ Gtk2HsSetup.hs, /var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/ glib-0.11.096835/glib-0.11.0/dist/setup/Gtk2HsSetup.o ) [2 of 2] Compiling Main (

Re: [Haskell-cafe] Installing Haskell on OSX

2010-06-20 Thread Antoine Latter
On Sun, Jun 20, 2010 at 10:08 AM, Giuseppe Luigi Punzi Ruiz glpu...@lordzealon.com wrote: [1 of 2] Compiling Gtk2HsSetup      ( /var/folders/fA/fAGWxnQMEFCzPAHcFpbaMk+++TI/-Tmp-/glib-0.11.096835/glib-0.11.0/Gtk2HsSetup.hs,

[Haskell-cafe] zlib or digest package installation

2010-06-20 Thread Daniel Kahlenberg
Hi, when installing pandoc package, which has digest somewhere in dependencies the usual cabal install stucks because zlib.h is missing, so I explicitly installed zlib package first, then installing digest (can also replace that directly with pandoc here) with the --extra-include-dirs parameter

Re: [Haskell-cafe] Installing Haskell on OSX

2010-06-20 Thread Giuseppe Luigi Punzi Ruiz
Hi again, Yes, you are right, but now, cabal install leksah I get: .. .. Linking dist/build/leksah-server/leksah-server ... ld warning: atom sorting error for _ghczm6zi12zi1_LibFFI_Czuffizucif_closure_tbl and _ghczm6zi12zi1_LibFFI_Czuffizutype_closure_tbl in /Library/Frameworks/

Re: [Haskell-cafe] Installing Haskell on OSX

2010-06-20 Thread Antoine Latter
On Sun, Jun 20, 2010 at 12:53 PM, Giuseppe Luigi Punzi Ruiz glpu...@lordzealon.com wrote: Hi again, Yes, you are right, but now, cabal install leksah I get: This one is a bummer, and I see it all the time when I try to build a package linked against macports. Here's the last thread about

Re: [Haskell-cafe] Continuations and coroutines

2010-06-20 Thread Paul Johnson
On 19/06/10 17:23, Yves Parès wrote: It helps me understand better, but would you have some simple code that would do that ? http://www.cs.chalmers.se/~koen/pubs/jfp99-monad.ps Paul. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Continuations and coroutines

2010-06-20 Thread Paul Johnson
On 20/06/10 22:03, Paul Johnson wrote: On 19/06/10 17:23, Yves Parès wrote: It helps me understand better, but would you have some simple code that would do that ? http://www.cs.chalmers.se/~koen/pubs/jfp99-monad.ps Except that the paper I'm trying to refer to seems to have fallen off

Re: [Haskell-cafe] zlib or digest package installation

2010-06-20 Thread Ivan Lazar Miljenovic
Daniel Kahlenberg d.kahlenb...@googlemail.com writes: Hi, when installing pandoc package, which has digest somewhere in dependencies the usual cabal install stucks because zlib.h is missing, so I explicitly installed zlib package first, then installing digest (can also replace that directly

[Haskell-cafe] new recursive do notation (ghc 6.12.x) spoils layout

2010-06-20 Thread John Lask
Whilst I have nothing against the change in syntax for recursive do aka http://old.nabble.com/Update-on-GHC-6.12.1-td26103595.html Instead of writing mdo a - getChar b - f c c - g b putChar c return b you would write do a - getChar rec { b - f c ; c

Re: [Haskell-cafe] new recursive do notation (ghc 6.12.x) spoils layout

2010-06-20 Thread Ivan Miljenovic
On 22 June 2010 03:18, John Lask jvl...@hotmail.com wrote: I just want my nice neat layout back. I have just spent an inordinate amount of time updating code when if the parser recognised do rec as a recursive group it would have been a drop in replacement and taken me one tenth of the time.

Re: [Haskell-cafe] new recursive do notation (ghc 6.12.x) spoils layout

2010-06-20 Thread Alexander Solla
On Jun 21, 2010, at 10:18 AM, John Lask wrote: do rec a - getChar b - f c c - g b putChar c return b I don't particularly care that the only recursive statements are #2,#3 - I just want my nice neat layout back. I have just spent an inordinate amount of time updating code

Re: [Haskell-cafe] new recursive do notation (ghc 6.12.x) spoils layout

2010-06-20 Thread Alexander Solla
On Jun 20, 2010, at 6:24 PM, Alexander Solla wrote: do a - getChar let b = c = return . f let c = b = return . g c = putChar b Correction: by your construction, f and g are already in the Kliesli category, so you don't need the return compositions. I still

Re: [Haskell-cafe] new recursive do notation (ghc 6.12.x) spoils layout

2010-06-20 Thread Dan Doel
On Sunday 20 June 2010 9:24:54 pm Alexander Solla wrote: Why can't you just use let notation do deal with the recursion? I thought lets in do blocks were just a little bit of syntactic sugar for regular let expressions, which do allow mutual recursion. I could be totally wrong though. I'm

Re: [Haskell-cafe] new recursive do notation (ghc 6.12.x) spoils layout

2010-06-20 Thread John Lask
On 20/06/2010 6:32 PM, Alexander Solla wrote: in your example c will not be in scope in the expression (let b = c = return . f) - that's the purpose of the recursive do construct (mdo, now do .. rec ..) jvl On Jun 20, 2010, at 6:24 PM, Alexander Solla wrote: do a - getChar let b = c =

Re: [Haskell-cafe] Haskell Indonesia

2010-06-20 Thread Max Cantor
selamat datang! On Jun 18, 2010, at 9:27 PM, Jean-Denis Koeck wrote: Hi! I'm of Indonesian descent (by my mother) and I'll be there this summer. Nice to meet you! Jean-Denis 2010/6/15 vipex.id vipex...@gmail.com Hi, I'm new in Haskell wondering is there Indonesian people using Haskell

[Haskell-cafe] Haskell Bangalore

2010-06-20 Thread C K Kashyap
Hi, I was wondering if it would be a good idea for the folks interested in Haskell in Bangalore to get together. Especially if there are folks at EGL, perhaps we could just meet up at pyramid. I've been trying to learn Haskell for a while and currently am trying to work through SPJ's

[Haskell-cafe] Functional programming techniques in small projects

2010-06-20 Thread Markus Dönges
Hello Community, I am a student from the University of Duisburg-Essen, Germany, and at the moment I am writing my bachelor thesis about Post-Mass-Prodcution Softwaresupply/ -development in case of an University administration. This approach deals with student-driven software development in