Re: [Haskell-cafe] Basic problem in Haskell language design?

2009-03-02 Thread Daniel Schüssler
Hi, On Sunday 01 March 2009 14:26:42 Nicu Ionita wrote: [...] movesFromWord8s (f:t:ws) = (f, t) : movesFromWord8s ws moverFromWord8s _ = [] [...] Are there possible solutions or workarounds? for the particular problem of having to repeat the function name, you could use case:

[Haskell-cafe] Basic problem in Haskell language design?

2009-03-01 Thread Nicu Ionita
Hi, Today I found the following problem when writing a simple function: -- Whole info from a word8 list to moves movesFromWord8s :: [Word8] - [Move] movesFromWord8s (f:t:ws) = (f, t) : movesFromWord8s ws moverFromWord8s _ = [] Here I made a small typo in the second equation, writing

Re: [Haskell-cafe] Basic problem in Haskell language design?

2009-03-01 Thread Adrian Neumann
You could turn on -Wall to get a whole bunch of such warnings. Am 01.03.2009 um 14:26 schrieb Nicu Ionita: Hi, Today I found the following problem when writing a simple function: -- Whole info from a word8 list to moves movesFromWord8s :: [Word8] - [Move] movesFromWord8s (f:t:ws) = (f, t) :

Re: [Haskell-cafe] Basic problem in Haskell language design?

2009-03-01 Thread Daniel Fischer
Am Sonntag, 1. März 2009 15:46 schrieb Adrian Neumann: You could turn on -Wall to get a whole bunch of such warnings. And explicitely turn off those warnings that you're not interested in, like ghc -O2 -Wall -fno-warn-type-defaults --make Somefile.hs Cheers, Daniel