summaryrefslogtreecommitdiffhomepage
path: root/XUtil.hsc
diff options
context:
space:
mode:
Diffstat (limited to 'XUtil.hsc')
-rw-r--r--XUtil.hsc4
1 files changed, 4 insertions, 0 deletions
diff --git a/XUtil.hsc b/XUtil.hsc
index 85d3dd3..c849bd5 100644
--- a/XUtil.hsc
+++ b/XUtil.hsc
@@ -44,7 +44,11 @@ import System.IO
import System.IO.Unsafe (unsafePerformIO)
#if defined XFT || defined UTF8
import Foreign.C
+# if __GLASGOW_HASKELL__ < 612
import qualified System.IO.UTF8 as UTF8 (readFile,hGetLine)
+# else
+import qualified System.IO as UTF8 (readFile,hGetLine)
+# endif
#endif
#if defined XFT
import Data.List