87114202396c9cf7b68e449346454fbc7a6077d5
[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          )