Add some more C wrappers; patch from Krister Walfridsson
[ghc-base.git] / System / IO.hs
index 9560c26..47e9213 100644 (file)
@@ -179,11 +179,12 @@ module System.IO (
     -- termination of the character stream, as with other I/O errors.
 
     hSetEncoding, 
+    hGetEncoding,
 
     -- ** Unicode encodings
     TextEncoding, 
     latin1,
-    utf8, 
+    utf8, utf8_bom,
     utf16, utf16le, utf16be,
     utf32, utf32le, utf32be, 
     localeEncoding,
@@ -237,7 +238,6 @@ import GHC.IO.Handle
 import GHC.IORef
 import GHC.IO.Exception ( userError )
 import GHC.IO.Encoding
-import GHC.Exception
 import GHC.Num
 import Text.Read
 import GHC.Show