summaryrefslogtreecommitdiffhomepage
path: root/src/XPMFile.hsc
diff options
context:
space:
mode:
Diffstat (limited to 'src/XPMFile.hsc')
-rw-r--r--src/XPMFile.hsc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/XPMFile.hsc b/src/XPMFile.hsc
index 18c7dec..f10449b 100644
--- a/src/XPMFile.hsc
+++ b/src/XPMFile.hsc
@@ -13,7 +13,11 @@
module XPMFile(readXPMFile) where
+#if MIN_VERSION_mtl(2, 2, 1)
import Control.Monad.Except(MonadError(..))
+#else
+import Control.Monad.Error(MonadError(..))
+#endif
import Control.Monad.Trans(MonadIO(..))
import Graphics.X11.Xlib(Dimension, Display(..), Drawable, Pixmap)
import Foreign.C.String(CString, withCString)