Hugs doesn't know List Difference operator (\\)

View: New views
2 Messages — Rating Filter:   Alert me  

Hugs doesn't know List Difference operator (\\)

by leledumbo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm reading some Haskell Tutorial when I arrive at List Difference operator, which is \\. But when I try on Hugs, it responded: ERROR - Undefined variable "\\"

Re: Hugs doesn't know List Difference operator (\\)

by Scott Turner-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 2008 May 14 Wednesday, leledumbo wrote:
> I'm reading some Haskell Tutorial when I arrive at List Difference
> operator, which is \\. But when I try on Hugs, it responded: ERROR -
> Undefined variable "\\"

Add 'import List' to your program.

Or if you're running the Hugs interpreter with no program, do
     Hugs> :l List

_______________________________________________
Hugs-Bugs mailing list
Hugs-Bugs@...
http://www.haskell.org/mailman/listinfo/hugs-bugs