Re: [Haskell-cafe] Re: Allowing hyphens in identifiers

2009-12-11 Thread Johannes Laire
me cases I think they make *code* with many identifiers harder to read for exactly the same reason. In languages where function application looks like "f(x,y,z)" instead of "f x y z" this isn't a problem and I often use underscores. -- Johannes Laire ___

Re: [Haskell-cafe] How i use GHC.Word.Word8 wit Int ?

2009-05-19 Thread Johannes Laire
"length [1..33]" is Int not Word8, but Word8 is enough here. > Sincerely! Word8 is an instance of Num, so you could use Data.List.genericLength, which has the type: genericLength :: Num i => [b] -> i http://haskell.org/ghc/docs/latest/html/libraries/base/Data-List.html#26

Re: [Haskell-cafe] Error: Improperly terminated character constant

2008-05-11 Thread Johannes Laire
Single quotes are for characters, double quotes are for strings. So change 'es' to "es". -- Johannes Laire 2008/5/11 Ivan Amarquaye <[EMAIL PROTECTED]>: > > > I'm writing a function dRop to accept words ending in 'es' and drop the last > two