diff options
author | jao <jao@gnu.org> | 2014-10-11 20:21:38 +0200 |
---|---|---|
committer | jao <jao@gnu.org> | 2014-10-11 20:22:10 +0200 |
commit | 98938f15c39baaaff52d70606dfba49c4bb854b5 (patch) | |
tree | e65ad89776e219c6f385aac1677cfd83c588e141 /src/XPMFile.hsc | |
parent | ee0c2639f99a4f8ee422b3d0b52323f887d0a9ec (diff) | |
download | xmobar-98938f15c39baaaff52d70606dfba49c4bb854b5.tar.gz xmobar-98938f15c39baaaff52d70606dfba49c4bb854b5.tar.bz2 |
Compatibility with mtl 2.1
Thanks to Apollon Oikonomopoulos!!
Diffstat (limited to 'src/XPMFile.hsc')
-rw-r--r-- | src/XPMFile.hsc | 4 |
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) |