1 module Main (mainPrimIO) where
5 mainPrimIO :: PrimIO ()
7 = _ccall_ stg_getc (``stdin'' :: _Addr)
8 `thenPrimIO` \ (I# ch) ->
9 if ch <# 0# then -- SIGH: ch ==# ``EOF''
12 _ccall_ stg_putc (C# (chr# ch))
17 -- 1,737,897 bytes/sec ( 600KB input)
18 -- 1,808,993 bytes/sec ( 9.3MB input)
19 -- 1,711,850 bytes/sec (25.5MB input)