projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[project @ 1996-07-26 20:58:52 by partain]
[ghc-hetmet.git]
/
ghc
/
misc
/
examples
/
posix
/
po007
/
Main.hs
diff --git
a/ghc/misc/examples/posix/po007/Main.hs
b/ghc/misc/examples/posix/po007/Main.hs
index
d70e913
..
3a37dc7
100644
(file)
--- a/
ghc/misc/examples/posix/po007/Main.hs
+++ b/
ghc/misc/examples/posix/po007/Main.hs
@@
-1,4
+1,4
@@
-import LibPosix
+import Posix
main =
installHandler keyboardSignal (Catch doCtrlC) Nothing >>
@@
-28,4
+28,4
@@
doCtrlC =
ccStr '\DEL' = "^?"
ccStr x
| x >= ' ' = [x]
- | otherwise = ['^', (chr (ord x + ord '@'))]
+ | otherwise = ['^', (toEnum (fromEnum x + fromEnum '@'))]