RE: [Haskell-cafe] wxhaskell package for ubuntu feisty, amd64

2007-09-14 Thread José Miguel Vilaça
Hi Iván, Try this: * install GHC and darcs: sudo apt-get install ghc6 sudo apt-get install darcs * install WxWidgets 2.6 sudo apt-get install libwxgtk2.6-dev sudo apt-get install freeglut3-dev sudo apt-get install g++ * install wxHaskell darcs get

[Haskell-cafe] compiler implementation details

2007-06-05 Thread José Miguel Vilaça
Hi, I’m curious about how the Haskell compilers nowadays take care of a simple function definition like append append [] l = l append (h:t) l = h: (append t l) Do they take a rewriting way like append [1,2] [3,4] == 1: (append [2] [3,4]) == 1: (2

RE: [Haskell-cafe] Module dependency graph generator

2007-05-18 Thread José Miguel Vilaça
Take a look to HaSlicer (http://labdotnet.di.uminho.pt/HaSlicer/HaSlicer.aspx). It can do that. Best Miguel Vilaça -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Alfonso Acosta Enviada: sexta-feira, 18 de Maio de 2007 12:11 Para: Haskell-cafe Assunto:

RE: [Haskell-cafe] built-in lists vs inductively defined list

2007-05-09 Thread José Miguel Vilaça
Hi again, IMHO for what concerns to the language they only differ in syntax. They are equal up to constructor names. What could be the case is that some compiler could do some optimizations that end up with better performance in time and space when using lists. But for what people gently ask me,

[Haskell-cafe] outputing .hs file without comments

2007-05-03 Thread José Miguel Vilaça
Hi all, Is there a simple tool or command to remove all comments from a Haskell file, i.e. something that outputs the input file but without any comments on it? Best Miguel Vilaça ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

RE: [Haskell-cafe] What is the best way to understand large programs?

2007-01-29 Thread José Miguel Vilaça
Hi Some sort of module dependancy graph would also be handy, but I'm not sure any program can yet produce that kind of information. Take a look to HaSlicer (http://labdotnet.di.uminho.pt/HaSlicer/HaSlicer.aspx ) Currently it is only available online but if you want it to run locally in your

[Haskell-cafe] type and class problems compiling code on GHC 6.6

2007-01-17 Thread José Miguel Vilaça
Dear Haskellers, I had used some code which worked fine on GHC 6.4 and now it don’t compile on GHC 6.6. Can anyone please give me some workarounds and/or explanations about these 2 errors? instance InfoKind a b = InfoKind (Maybe a) b where blank = Nothing check n _ Nothing =

[Haskell-cafe] (no subject)

2006-03-15 Thread José Miguel Vilaça
Hi Im having a small problem with the portability of my Haskell code. My code uses wxHaskell and the library for which this one is the Haskell interface (that is called wxWidgets) doesnt work in the same away in Windows and Linux. Now I now which code run in Linux and in Windows but

[Haskell-cafe] different code in different platforms

2006-03-15 Thread José Miguel Vilaça
Sorry. In the previous email I forgot the subject. Hi Im having a small problem with the portability of my Haskell code. My code uses wxHaskell and the library for which this one is the Haskell interface (that is called wxWidgets) doesnt work in the same away in Windows and Linux.

RE: [Haskell-cafe] Intersection types for Haskell?

2006-01-10 Thread José Miguel Vilaça
) - Simply create a class an give instances for the wanted types. The code above is also in a file in attachment. cheers José Miguel Vilaça Departamento de Informática - Universidade do Minho [EMAIL PROTECTED] -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL