diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
 # Revision history for streamly-posix
 
+## 0.1.0.1 -- 2020-05-09
+
+* fix build with older GHCs
+
 ## 0.1.0.0 -- 2020-02-16
 
 * First version. Released on an unsuspecting world.
diff --git a/src/Streamly/External/Posix/DirStream.hs b/src/Streamly/External/Posix/DirStream.hs
--- a/src/Streamly/External/Posix/DirStream.hs
+++ b/src/Streamly/External/Posix/DirStream.hs
@@ -52,7 +52,7 @@
   {-# INLINE [0] step #-}
   step dirstream = do
     (typ, e) <- liftIO $ readDirEnt dirstream
-    return if
+    return $ if
       | BS.null e                       -> D.Stop
       | BS.pack [_period] == e          -> D.Skip dirstream
       | BS.pack [_period, _period] == e -> D.Skip dirstream
diff --git a/streamly-posix.cabal b/streamly-posix.cabal
--- a/streamly-posix.cabal
+++ b/streamly-posix.cabal
@@ -1,7 +1,7 @@
 cabal-version:       >=1.10
 
 name:                streamly-posix
-version:             0.1.0.0
+version:             0.1.0.1
 synopsis:            Posix related streaming APIs
 description:         Posix related streaming APIs (such as file reading/writing)
 bug-reports:         https://github.com/hasufell/streamly-posix/issues
@@ -21,12 +21,13 @@
   exposed-modules:   Streamly.External.Posix.DirStream
   -- other-modules:
   -- other-extensions:
-  build-depends:         base                >= 4.12 && < 5
+  build-depends:         base                >= 4.8 && < 5
                        , bytestring          >= 0.10
                        , hpath-posix         >= 0.13
                        , safe-exceptions     >= 0.1
                        , streamly            >= 0.7
                        , streamly-bytestring >= 0.1.0.1
+                       , transformers
                        , unix                >= 2.7
                        , word8               >= 0.1.3
   hs-source-dirs:      src
@@ -40,7 +41,7 @@
   type:                exitcode-stdio-1.0
   main-is:             Main.hs
   hs-source-dirs:      test
-  build-depends:         base                >= 4.12 && < 5
+  build-depends:         base                >= 4.8 && < 5
                        , filepath
                        , hpath-posix         >= 0.13
                        , hspec
