[Haskell-cafe] Re: Installing Haskell on OSX

2010-06-21 Thread Sudish Joseph
Antoine Latter aslat...@gmail.com writes: 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: [...] Undefined symbols:  _iconv_close, referenced from:      _hs_iconv_close in

[Haskell-cafe] MonadCatchIO-transformers and ContT

2010-06-21 Thread Michael Snoyman
Hi cafe, I ran into a segfault while working on some database code. I eventually traced it back to a double-finalizing of a statement (read: freeing memory twice), which ultimately led back to switching my code to use the ContT monad transformer. I was able to isolate this down to a minimal test

[Haskell-cafe] Re: Installing Haskell on OSX

2010-06-21 Thread Giuseppe Luigi Punzi
I died in more dependencies. One, ige-mac-integration. To avoid possible problems I uninstall all ports last night to reinstall full gtk2 with quartz. For now, i'm solving all of this and I hope to get it working this night. Sudish Joseph sud...@gmail.com wrote: Antoine Latter

Re: [Haskell-cafe] MonadCatchIO-transformers and ContT

2010-06-21 Thread Neil Brown
Hi, Here's my guess. Take a look at this version, and try running it: === {-# LANGUAGE PackageImports #-} import qualified MonadCatchIO-transformers Control.Monad.CatchIO as C import Control.Monad.IO.Class import Control.Monad.Trans.Cont bracket_' :: C.MonadCatchIO m = m a -- ^

[Haskell-cafe] installation problem with cabal

2010-06-21 Thread Louis Plissonneau
Hi, when I install packages from cabal, the package manager installs already installed files (some of his favorites are process and haskell98) so these packages are both system and user installed (that can cause later dependency problems, but the cabal FAQ explains very well how to recover from

Re: [Haskell-cafe] MonadCatchIO-transformers and ContT

2010-06-21 Thread Michael Snoyman
I think you're correct, but I still don't know how to solve it. Any thoughts on that front? I'm at the point of just attaching a finalizer to the statement, or sticking in an IORef to ensure it doesn't get double-finalized. On Mon, Jun 21, 2010 at 2:04 PM, Neil Brown nc...@kent.ac.uk wrote:

Re: [Haskell-cafe] MonadCatchIO-transformers and ContT

2010-06-21 Thread David Menendez
On Mon, Jun 21, 2010 at 7:04 AM, Neil Brown nc...@kent.ac.uk wrote: Here's my speculation, based on glancing at the libraries involved: I believe the reason for this may be the MonadCatchIO instance for ContT: === instance MonadCatchIO m = MonadCatchIO (ContT r m) where   m `catch` f =

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

2010-06-21 Thread Peter Hercek
On 06/20/2010 11:05 AM, Claus Reinke wrote: I think Luke means that if you use qualified names then hothasktags can give you better location information than current ghci ctags. GHCi :ctags doesn't output tags for qualified names (though it probably should), but that isn't enough for proper

Re: [Haskell-cafe] Re: How does one get off haskell?

2010-06-21 Thread Ron Alford
On Fri, Jun 18, 2010 at 10:30 AM, C. McCann c...@uptoisomorphism.net wrote: The better question is when do the benefits of static typing outweigh the costs imposed?. If you're using Java, the answer is probably never, but even in Haskell I don't think the answer is quite always. I have half a

[Haskell-cafe] Re: Installing Haskell on OSX

2010-06-21 Thread Sudish Joseph
Hi, I ran into one problem worth mentioning while recompiling gtk and its dependencies as universal libraries using macports: the pango port refused to build with +universal (it fails when trying to merge the i386 x86_64 libs). The pango-devel port does work with one small tweak as described at

Re: [Haskell-cafe] HaskellWiki and Wikipedia

2010-06-21 Thread Ketil Malde
Roman Beslik ber...@ukr.net writes: I do not agree. They are not confused by other languages, they treat all languages as born equal. Are you saying this is a good thing? creating our separate source of knowledge leads to isolationism and narrow-minded vision. But also to a consistent,

Re: [Haskell-cafe] HaskellWiki and Wikipedia

2010-06-21 Thread Roman Beslik
On 17.06.10 23:44, Ketil Malde wrote: Roman Beslikber...@ukr.net writes: I do not agree. They are not confused by other languages, they treat all languages as born equal. Are you saying this is a good thing? Yes. There is more than Haskell. E.g the article on generic

[Haskell-cafe] design question: decision tree from Programming Collective Intelligence

2010-06-21 Thread Daniel Lyons
Hi, I'm having a little trouble figuring out precisely how to port the decision tree code from the book Programming Collective Intelligence. You can see the code here: http://code.google.com/p/memothing/source/browse/trunk/PCI/ch7/treepredict.py?r=29 The design issue is that this code depends

[Haskell-cafe] Re: Installing Haskell on OSX

2010-06-21 Thread Giuseppe Luigi Punzi
Sorry for my ignorance but..why install with +universal? i didn't use this in any port. Sudish Joseph sud...@gmail.com wrote: Hi, I ran into one problem worth mentioning while recompiling gtk and its dependencies as universal libraries using macports: the pango port refused to build with

[Haskell-cafe] Is there good place to post Haskell alorithms/data structures that follow Steven Skiena's book on algorithm design and also Haskell code snippets that follow some of Knuth's books?

2010-06-21 Thread Casey Hawthorne
Is there good place to post Haskell alorithms/data structures that follow Steven Skiena's book on algorithm design and also Haskell code snippets that follow some of Knuth's books? These code snippets don't seem to fit with Hackage. Is there a Hatorial? -- Regards, Casey

Re: [Haskell-cafe] HaskellWiki and Wikipedia

2010-06-21 Thread Ketil Malde
Roman Beslik ber...@ukr.net writes: I do not agree. They are not confused by other languages, they treat all languages as born equal. Are you saying this is a good thing? Yes. There is more than Haskell. Sure. But when I am programming in Haskell, I am generally most interested in using

Re: [Haskell-cafe] Re: Installing Haskell on OSX

2010-06-21 Thread Giuseppe Luigi Punzi Ruiz
uhmm.. Now, with all gtk2 rebuilded with +no_x11 and +quartz I get Linking dist/build/leksah/leksah ... ld: library not found for -lgtk-x11-2.0 collect2: ld returned 1 exit status cabal: Error: some packages failed to install: leksah-0.8.0.6 failed during the building phase. The exception was:

[Haskell-cafe] Generics and type families

2010-06-21 Thread Louis Wasserman
What is the relationship between -XGenerics and -XTypeFamilies? Can I automatically create a data family instance based on its generic decomposition? Louis Wasserman wasserman.lo...@gmail.com http://profiles.google.com/wasserman.louis ___ Haskell-Cafe

[Haskell-cafe] ANN: bitspeak 0.0.1

2010-06-21 Thread Maurí­cio CA
Hi, all, bitspeak is a small proof of concept application that allows writing text using only two commands (yes/no, 1/2, top/down etc.). It is intended to show how people with disabilities similar to Stephen Hawking's (i.e., good cognitive hability, but very few movements) can write text.

Re: [Haskell-cafe] ANN: bitspeak 0.0.1

2010-06-21 Thread Nils Schweinsberg
On 21.06.2010 23:50, Maurí­cio CA wrote: Hi, all, bitspeak is a small proof of concept application that allows writing text using only two commands (yes/no, 1/2, top/down etc.). Looks cool! Did you forget any dependencies tho? I get the following error: 0:16 nils` cabal update Downloading

Re: [Haskell-cafe] ANN: bitspeak 0.0.1

2010-06-21 Thread Tom Hawkins
2010/6/21 Maurí­cio CA mauricio.antu...@gmail.com: Hi, all, bitspeak is a small proof of concept application that allows writing text using only two commands (yes/no, 1/2, top/down etc.). It is intended to show how people with disabilities similar to Stephen Hawking's (i.e., good cognitive

Re: [Haskell-cafe] Is there good place to post Haskell alorithms/data structures that follow Steven Skiena's book on algorithm design and also Haskell code snippets that follow some of Knuth's books?

2010-06-21 Thread Twan van Laarhoven
Casey Hawthorne wrote: Is there good place to post Haskell alorithms/data structures that follow Steven Skiena's book on algorithm design and also Haskell code snippets that follow some of Knuth's books? These code snippets don't seem to fit with Hackage. You could make some pages for them on

Re: [Haskell-cafe] ANN: bitspeak 0.0.1

2010-06-21 Thread John Meacham
On Mon, Jun 21, 2010 at 06:50:41PM -0300, Maurí­cio CA wrote: bitspeak is a small proof of concept application that allows writing text using only two commands (yes/no, 1/2, top/down etc.). It is intended to show how people with disabilities similar to Stephen Hawking's (i.e., good cognitive

[Haskell-cafe] Re: ANN: bitspeak 0.0.1

2010-06-21 Thread Maurí­cio CA
bitspeak is a small proof of concept application that allows writing text using only two commands (yes/no, 1/2, top/down etc.). Looks cool! Did you forget any dependencies tho? I get the following error: Oops... Three modules ended up missing in .cabal file. Just uploaded 0.0.2 to hackage,

[Haskell-cafe] Re: ANN: bitspeak 0.0.1

2010-06-21 Thread Maurí­cio CA
bitspeak is a small proof of concept application that allows writing text using only two commands (yes/no, 1/2, top/down etc.). There is a parallel between data compression algorithms and this sort of task, expressing a sentence in the minimal number of bits via compression also minimized the

Re: [Haskell-cafe] Re: Installing Haskell on OSX

2010-06-21 Thread Hamish Mackenzie
On 22 Jun 2010, at 08:01, Giuseppe Luigi Punzi Ruiz wrote: uhmm.. Now, with all gtk2 rebuilded with +no_x11 and +quartz I get Linking dist/build/leksah/leksah ... ld: library not found for -lgtk-x11-2.0 collect2: ld returned 1 exit status cabal: Error: some packages failed to install:

Re: [Haskell-cafe] Functional programming techniques in small projects

2010-06-21 Thread Nick Rudnick
Hi Markus, I am afraid your questions are formulated quite narrowly so that people you might like to reach might not feel addressed -- so it might be helpful to ask yourself how your subject might look in the perspective of an average Haskeller, if a such dies exist at all. At first, please

[Haskell-cafe] Ph.D. positions on HW acceleration of Haskell

2010-06-21 Thread Rami Mukhtar
= Vacancies for Ph.D. positions at NICTA with the University of Sydney, Australia = Background ~~ NICTA has established a project with a goal of