summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Text/Coding.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/GF/Text/Coding.hs')
-rw-r--r--src/compiler/GF/Text/Coding.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/GF/Text/Coding.hs b/src/compiler/GF/Text/Coding.hs
index bac7938c0..661547421 100644
--- a/src/compiler/GF/Text/Coding.hs
+++ b/src/compiler/GF/Text/Coding.hs
@@ -23,7 +23,7 @@ encodeUnicode enc s =
where
translate cod cbuf
| i < w = do bbuf <- newByteBuffer 128 WriteBuffer
- (_,cbuf,bbuf) <- cod cbuf bbuf
+ (cbuf,bbuf) <- cod cbuf bbuf
if isEmptyBuffer bbuf
then ioe_invalidCharacter1
else do let bs = PS (bufRaw bbuf) (bufL bbuf) (bufR bbuf-bufL bbuf)
@@ -48,7 +48,7 @@ decodeUnicodeIO enc (PS fptr l len) = do
where
translate cod bbuf cbuf
| i < w = do
- (_,bbuf,cbuf) <- cod bbuf cbuf
+ (bbuf,cbuf) <- cod bbuf cbuf
if isEmptyBuffer cbuf
then ioe_invalidCharacter2
else unpack cod bbuf cbuf