projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77452bc
)
add a type signature
author
simonmar@microsoft.com
<unknown>
Thu, 1 Jun 2006 11:53:35 +0000
(11:53 +0000)
committer
simonmar@microsoft.com
<unknown>
Thu, 1 Jun 2006 11:53:35 +0000
(11:53 +0000)
compiler/utils/Encoding.hs
patch
|
blob
|
history
diff --git
a/compiler/utils/Encoding.hs
b/compiler/utils/Encoding.hs
index
c7f9070
..
5afe870
100644
(file)
--- a/
compiler/utils/Encoding.hs
+++ b/
compiler/utils/Encoding.hs
@@
-138,6
+138,7
@@
countUTF8Chars ptr bytes = go ptr 0
unPtr (Ptr a) = a
+utf8EncodeChar :: Char -> Ptr Word8 -> IO (Ptr Word8)
utf8EncodeChar c ptr =
let x = ord c in
case () of