Re: syntax across languages

2002-02-12 Thread Pixel
[...] > (I guess its a cousin to templates in C++) > Or perhaps you need a separate section for syntax > for constructing new datatypes.. yes, i think so. With enums and ranges being a special case. i'll also put records [...] > (Please dont take this as an insult by my re-explaining these t

Re: syntax across languages

2002-02-12 Thread Ganesh Sittampalam
On 12 Feb 2002 14:49:16 +0100, Pixel <[EMAIL PROTECTED]> wrote: >eurk > >ERROR "/usr/share/hugs/lib/exts/ST.hs":48 - Syntax error in type expression >(unexpected `.') > >isn't there a way ST.hs would require the extensions? a pragma or something? >someone not knowing the "-98" would wonder for a

Re: syntax across languages

2002-02-12 Thread Malcolm Wallace
> Being able to specify the extensions required in a source file would be very > useful in a range of cases. Very often helping other people with Haskell (in > the case where they are trying to use someone else's module) is just a > question of saying "try '-98'" or "try '-fglasgow-exts'" or whate

Eager IO function

2002-02-12 Thread Tom Bevan
How should I modify the function below so that characters are printed out as they arrive? Thanks. Tom printchar :: Handle -> IO () printchar handle = do c <- hGetChar handle putChar c ___ Haskell-Cafe mailing list [EMAIL P