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:
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
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) :
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