Re: [Haskell] newbie question: variable not in scope: "isSpace"

2004-08-14 Thread Tom Pledger
A.J. Bonnema wrote: If I use isSpace from the hugs interpretor, it works. If I use isSpace from a test.hs file I get the error message: Undefined variable "isSpace" From ghc I get the error message: Variable not in scope: "isSpace" What is wrong? Hugs automatically imports a few extra things as w

[Haskell] newbie question: variable not in scope: "isSpace"

2004-08-14 Thread A.J. Bonnema
If I use isSpace from the hugs interpretor, it works. If I use isSpace from a test.hs file I get the error message: Undefined variable "isSpace" From ghc I get the error message: Variable not in scope: "isSpace" What is wrong? Guus. -- A.J. Bonnema, Leiden The Netherlands, user #328198 (Linux Count

[Haskell] Re: Dependent Types in Haskell

2004-08-14 Thread oleg
Martin Sulzmann stated the goal of the append exercise as follows: ] Each list carries now some information about its length. ] The type annotation states that the sum of the output list ] is the sum of the two input lists. I'd like to give a Haskell implementation of such an append function, wh

[Haskell] Re: DData AscList

2004-08-14 Thread JP Bernardy
--- John Meacham <[EMAIL PROTECTED]> wrote: > So, pursuient to discussion on the various other > haskell lists and some talk about DData recently, > I was wondering whether adding an ordered > list type might be useful. Often, when one knows a > list is ordered, many algorithms (like building a