Malcolm Wallace wrote:
Hal Daume III <[EMAIL PROTECTED]> writes:
Not for me, GHC 5.04.2 (Solaris).
here it goes right the first time, but then i have to type two more
letters (in this case 'b\n') to get it to respond to "hello".
Solaris has a slightly bizarre buffering scheme in "raw"
Hal Daume III <[EMAIL PROTECTED]> writes:
> Not for me, GHC 5.04.2 (Solaris).
>
> here it goes right the first time, but then i have to type two more
> letters (in this case 'b\n') to get it to respond to "hello".
Solaris has a slightly bizarre buffering scheme in "raw" terminal
mode, whereby it
Not for me, GHC 5.04.2 (Solaris).
Nor with the GHC from CVS:
10:13am moussor:JavaInterp/ ~/nlg/ghc-cvs/ghc/compiler/ghc-inplace Test.hs
-o test
150.50u 1.77s 2:48.29 90.4%
10:16am moussor:JavaInterp/ ./test
> foo^H^H^Ctest: interrupted
10:16am moussor:JavaInterp/ ./test
> foo
You said: foo
> hel
Hal Daume III <[EMAIL PROTECTED]> writes:
> I expect the following to work, but it doesn't.
Yes it does. :-) Even without the hSetBuffering lines.
GHC 5.04-1
Feri.
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
I expect the following to work, but it doesn't. Can someone help:
9:53am moussor:JavaInterp/ cat > Test.hs
import System.IO
main = do
hSetBuffering stdout NoBuffering
hSetBuffering stdin NoBuffering
loop
where loop = do
putStr "> "
s <- getLine
putS
Sven, Peter,
Did you two sort out what was going on here? We haven't a clue. (If
there's some advice to offer to other users, we'll gladly add it to the
FAQ.)
Simon
| -Original Message-
| From: Peter Smith [mailto:[EMAIL PROTECTED]]
| Sent: 25 January 2003 01:26
| To: [EMAIL PROTECTED]
I can't find advice in the GHC manual on determining how much time your
program spends in Prelude functions. I've discovered that I can alias a
Prelude function e.g.
> import Data.Set
> myMkSet = mkSet
... which will give me a cost-centre for mkMySet. Isn't there an easier way
to do this?