[project @ 1996-01-08 20:28:12 by partain]
[ghc-hetmet.git] / ghc / compiler / tests / validation-misc / Echo.hs
1 import MiniPrel
2
3 main = (ccall getchar)    `thenU` ( \ ch ->
4            case ch of
5              -1# -> (ccall exit 0#)
6              _   -> (ccall putchar ch) `thenU` ( \ _ ->
7                     main )
8          )