On 27 Sep, Glynn Clements wrote:
> It isn't defined in the prelude or any of the standard libraries.
>
> The point is that the Haskell tokeniser treats any consecutive
> sequence of the symbols !#$%&*+./<=>[EMAIL PROTECTED]|-~ as a single operator
> token.
> This occurs regardless of whether a
On 27 Sep, Wolfgang Jeltsch wrote:
> Hello,
>
> obviously, Hugs thinks that =- is a special operator. In Haskell you have
> the
> ability to define your own operators, so it would be possible to define an
> operator =-. I would suggest that you always put spaces around the = in
> declaratio
Hi
i can not load program test1 into hugs, but test2 works.
Am i missing some special syntax?
greetings,
Philip
-- test1 --
foo :: Maybe Int -> Int
foo Nothing =-1
foo (Just a)= a
-- test2 --
foo :: Maybe Int -> Int
foo Nothing = -1
--
On 7 May, Daniel Carrera wrote:
> Hello,
>
> Right now I'm using type declarations like:
>
> f :: Int -> [Int]
>
> So f returns a list of Ints.
>
> Is there a way to tell Haskell that a list or array must have exactly
> (say) 256 elements? I'd love to have Haskell make sure that the array I