diff --git a/Test.hs b/Test.hs
--- a/Test.hs
+++ b/Test.hs
@@ -5,6 +5,7 @@
 
 import Control.DeepSeq
 import Control.Monad
+import Control.Applicative (pure)
 
 import System.Environment
 import System.Mem
diff --git a/ghc-heap-view.cabal b/ghc-heap-view.cabal
--- a/ghc-heap-view.cabal
+++ b/ghc-heap-view.cabal
@@ -1,5 +1,5 @@
 Name:                ghc-heap-view
-Version:             0.5.8
+Version:             0.5.9
 Synopsis:            Extract the heap representation of Haskell values and thunks
 Description:
   This library provides functions to introspect the Haskell heap, for example
diff --git a/src/GHC/AssertNF.hs b/src/GHC/AssertNF.hs
--- a/src/GHC/AssertNF.hs
+++ b/src/GHC/AssertNF.hs
@@ -31,6 +31,7 @@
 import Language.Haskell.TH (Q, Exp(AppE,VarE,LitE), Lit(StringL), Loc, location, loc_filename, loc_start, mkName)
 import Data.IORef
 import System.IO.Unsafe ( unsafePerformIO )
+import Control.Applicative ((<$>))
 
 enabledRef :: IORef Bool
 enabledRef = unsafePerformIO $ newIORef True
diff --git a/src/GHC/Disassembler.hs b/src/GHC/Disassembler.hs
--- a/src/GHC/Disassembler.hs
+++ b/src/GHC/Disassembler.hs
@@ -15,6 +15,8 @@
 import Data.Bits
 import Data.Foldable    ( Foldable )
 import Data.Traversable ( Traversable )
+import Control.Applicative ((<$>))
+import Data.Monoid
 
 #include "ghcautoconf.h"
 #include "rts/Bytecodes.h"
diff --git a/src/GHC/HeapView/Debug.hs b/src/GHC/HeapView/Debug.hs
--- a/src/GHC/HeapView/Debug.hs
+++ b/src/GHC/HeapView/Debug.hs
@@ -9,6 +9,7 @@
 import Data.Maybe
 import Data.Char
 import Data.IORef
+import Control.Applicative ((<$>))
 
 -- | This function walks the heap referenced by the argument, printing the
 -- \"path\", i.e. the pointer indices from the initial to the current closure
