diff --git a/IHaskell/Display/Hatex.hs b/IHaskell/Display/Hatex.hs
--- a/IHaskell/Display/Hatex.hs
+++ b/IHaskell/Display/Hatex.hs
@@ -1,14 +1,15 @@
 {-# LANGUAGE TypeFamilies #-}
 {-# LANGUAGE FlexibleInstances #-}
+
 -- | Provides 'IHaskellDisplay' instances for 'LaTeX' and 'LaTeXT'.
 module IHaskell.Display.Hatex () where
 
-import IHaskell.Display
-import Text.LaTeX
+import           IHaskell.Display
+import           Text.LaTeX
 import qualified Data.Text as T
 
 instance IHaskellDisplay LaTeX where
   display = display . IHaskell.Display.latex . T.unpack . render
 
 instance (a ~ (), IO ~ io) => IHaskellDisplay (LaTeXT io a) where
-    display ma = display =<< execLaTeXT ma
+  display ma = display =<< execLaTeXT ma
diff --git a/ihaskell-hatex.cabal b/ihaskell-hatex.cabal
--- a/ihaskell-hatex.cabal
+++ b/ihaskell-hatex.cabal
@@ -1,5 +1,5 @@
 name:                ihaskell-hatex
-version:             0.2.0.0
+version:             0.2.1.0
 synopsis:            IHaskell display instances for hatex
 -- description:         
 homepage:            http://www.github.com/gibiansky/IHaskell
@@ -14,7 +14,7 @@
 
 library
   exposed-modules:     IHaskell.Display.Hatex
-  build-depends:       base ==4.6.* || ==4.7.*,
+  build-depends:       base >=4.6 && <4.9,
                        text,
                        HaTeX >= 3.9,
                        ihaskell >= 0.5
