[Haskell-cafe] Update Cabal

2011-03-10 Thread Hauschild, Klaus (EXT)
Hallo, I'm using Haskell Platform 2010.2.0.0 on a Windows XP machine. This haskell platform includes cabal-1.8.0.6. Now I want to update cabal by cabal install cabal. Installation works well. Call like runhaskell ./Setup.hs will use the updatetd cabal-1.10.0.0. But cabal --version says still

Re: [Haskell-cafe] Update Cabal

2011-03-10 Thread Hauschild, Klaus (EXT)
Hi Johan, Thank you for the tip. After a tiny manupulation at my PATH variable it works. -Ursprüngliche Nachricht- Von: Johan Tibell [mailto:johan.tib...@gmail.com] Gesendet: Donnerstag, 10. März 2011 11:39 An: Hauschild, Klaus (EXT) Cc: haskell-cafe@haskell.org Betreff: Re: [Haskell

[Haskell-cafe] Automated tests with cabal

2011-03-09 Thread Hauschild, Klaus (EXT)
Hi Haskellers, I read about the cabal features for running test code from Setup.hs with defaultMainWithHooks. I'm looking for more generic code that allows me to place any haskell in a subdirectory test or so and cabal test will run this test without any modification of my Setup.hs. Is there

[Haskell-cafe] makeTokenParser + LanguageDef

2011-03-08 Thread Hauschild, Klaus (EXT)
Hi Haskellers, is there a fine tutorial for building a parser with parsecs (3.*) makeTokenParser and LanguageDef stuff? Klaus ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Overlaping Parsec rules

2011-03-08 Thread Hauschild, Klaus (EXT)
gml token separated by any white space (space, tab, newline)? Thanks -Ursprüngliche Nachricht- Von: Christian Maeder [mailto:christian.mae...@dfki.de] Gesendet: Montag, 7. März 2011 14:18 An: Hauschild, Klaus (EXT) Cc: haskell-cafe@haskell.org Betreff: Re: Overlaping Parsec rules Am

Re: [Haskell-cafe] Overlaping Parsec rules

2011-03-08 Thread Hauschild, Klaus (EXT)
for parsing integers (parseInteger = liftM (IntToken . read) $ many1 digit) but if have currently no idea how to handle floats. -Ursprüngliche Nachricht- Von: Christian Maeder [mailto:christian.mae...@dfki.de] Gesendet: Dienstag, 8. März 2011 13:26 An: Hauschild, Klaus (EXT) Cc: haskell-cafe

[Haskell-cafe] Overlaping Parsec rules

2011-03-07 Thread Hauschild, Klaus (EXT)
Hi, to solve this ICFP task http://www.cs.cornell.edu/icfp/task.htm I'm currnetly working on the parser. With the hint from Thu (reading Phillip Wadlers monadic parser paper) and consulting http://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_Hours/Parsing I produce a first working

Re: [Haskell-cafe] Overlaping Parsec rules

2011-03-07 Thread Hauschild, Klaus (EXT)
: Christian Maeder [mailto:christian.mae...@dfki.de] Gesendet: Montag, 7. März 2011 12:23 An: Hauschild, Klaus (EXT) Cc: haskell-cafe@haskell.org Betreff: Re: Overlaping Parsec rules You should parse keywords using: keyword s = try (string s) notFollowedBy (letter | digit) C. Am 07.03.2011 11:34

[Haskell-cafe] Project structure

2011-03-03 Thread Hauschild, Klaus (EXT)
Hi Haskellers, is there a recommended structure for Haskell projects. I like the Maven way (http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html) for Java projects. How to separate productive from test code, how to separate source code from other

[Haskell-cafe] Haskell IDE

2011-03-02 Thread Hauschild, Klaus (EXT)
Hi Haskellers, whats your Haskell IDE of choise? Currently I use leksah. Is the EclipseFP Plugin for Eclipse a real alternative? Thanks Klaus ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] http://www.cs.cornell.edu/icfp/task.htm

2011-02-28 Thread Hauschild, Klaus (EXT)
' [{, foo, /bar, }] results in [FunctionToken [IdentifierToken foo, BinderToken bar]] -Ursprüngliche Nachricht- Von: Vo Minh Thu [mailto:not...@gmail.com] Gesendet: Freitag, 25. Februar 2011 17:44 An: Hauschild, Klaus (EXT) Cc: haskell-cafe@haskell.org Betreff: Re: [Haskell-cafe] http

[Haskell-cafe] Proxy for cabal

2011-02-25 Thread Hauschild, Klaus (EXT)
Hi, Is it possible to configure a proxy server for cabal? When yes, how I configure it? Thanks. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] http://www.cs.cornell.edu/icfp/task.htm

2011-02-25 Thread Hauschild, Klaus (EXT)
Hi, Currently I'm trying to lern Haskell by doing. After doing some examples I plan to solve an ICFP task (see subject). In short: build an interpreter for a stack based language thata describes a 3D scene. Ray trace this scene in an image. My current source state can be found here:

Re: [Haskell-cafe] Proxy for cabal

2011-02-25 Thread Hauschild, Klaus (EXT)
Hi, I solved this problem by myself and google research: export HTTP_PROXY=... Von: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] Im Auftrag von Hauschild, Klaus (EXT) Gesendet: Freitag, 25. Februar 2011 10:38 An: haskell-cafe