Re: syntax...(strings/interpolation/here docs)

2002-02-13 Thread Joe
Does anybody with their elbows in the code think variable interpolation and/or multi-line strings are good/doable ideas? Would this be the sort of change one could make without a lot of previous familiarity with the implementation of Hugs/Ghc? It would be a *signifigant* boon to those of us

RE: Eager IO function

2002-02-13 Thread Simon Marlow
How should I modify the function below so that characters are printed out as they arrive? printchar :: Handle - IO () printchar handle = do c - hGetChar handle putChar c Try using hSetBuffering handle NoBuffering hSetBuffering stdout

Re: Re: syntax...(strings/interpolation/here docs)

2002-02-13 Thread David Feuer
From: Joe [EMAIL PROTECTED] Does anybody with their elbows in the code think variable interpolation and/or multi-line strings are good/doable ideas? Can't say I have my elbows in the code, but I think that multi-line strings could be useful. I'm not sure what I think about variable

RE: syntax...(strings/interpolation/here docs)

2002-02-13 Thread Simon Marlow
Does anybody with their elbows in the code think variable interpolation and/or multi-line strings are good/doable ideas? Would this be the sort of change one could make without a lot of previous familiarity with the implementation of Hugs/Ghc? It would be a *signifigant* boon to those of

Re: Re: syntax...(strings/interpolation/here docs)

2002-02-13 Thread D. Tweed
On Wed, 13 Feb 2002, David Feuer wrote: It would be a *signifigant* boon to those of us trying to get haskell into organizations by using it as maintainable perl/sh, and Haskell is not a maintainable perl/sh. It is not a good language for simple shell scripts, and is not good for

Re: syntax across languages

2002-02-13 Thread Jay Cox
On 12 Feb 2002, Pixel 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 long time about what to do :-( That

Re: syntax...(strings/interpolation/here docs)

2002-02-13 Thread Jeffrey R Lewis
On Wednesday 13 February 2002 06:36 am, C.Reinke wrote: Does anybody with their elbows in the code think variable interpolation and/or multi-line strings are good/doable ideas? Would this be the sort of change one could make without a lot of previous familiarity with the

Re: syntax...(strings/interpolation/here docs)

2002-02-13 Thread Hal Daume III
hugs and ghc. With hugs, I use the builtin feature, of course. With GHC, we just use a pre-processor. This is a bit awkward with GHC 5.02 and earlier versions, but starting with 5.03, GHC now has a proper interface for hooking in a pre-processor (don't know the details, bug Sigbjorn