diff --git a/Pipes/Files/Directory.hs b/Pipes/Files/Directory.hs
--- a/Pipes/Files/Directory.hs
+++ b/Pipes/Files/Directory.hs
@@ -1,7 +1,5 @@
-{-# LANGUAGE DeriveFunctor #-}
 {-# LANGUAGE BangPatterns #-}
 {-# LANGUAGE ForeignFunctionInterface #-}
-{-# LANGUAGE GADTs #-}
 {-# LANGUAGE OverloadedStrings #-}
 {-# LANGUAGE TupleSections #-}
 {-# LANGUAGE RankNTypes #-}
@@ -53,22 +51,6 @@
             ".." -> readDir acc ds direntp
             _    -> readDir (res:acc) ds direntp
 {-# INLINE getDirectoryContentsAndAttrs #-}
-
-data Step s o r = Emit s o | Skip s | Stop r
-    deriving Functor
-
-data Stream o m r = forall s. Stream (s -> m (Step s o r)) (m s)
-
-streamDirectoryAndAttrs :: RawFilePath -> Stream (RawFilePath, CUInt) IO ()
-streamDirectoryAndAttrs path = Stream step (openDirStream path)
-  where
-    step ds = allocaBytes (fromIntegral c_sizeof_dirent) $ \direntp -> do
-        res <- readDirStream ds direntp
-        case fst res of
-            ""   -> Stop () <$ closeDirStream ds
-            "."  -> return $ Skip ds
-            ".." -> return $ Skip ds
-            _    -> return $ Emit ds res
 
 sourceDirectory :: MonadSafe m
                 => RawFilePath -> Producer (RawFilePath, CUInt) m ()
diff --git a/pipes-files.cabal b/pipes-files.cabal
--- a/pipes-files.cabal
+++ b/pipes-files.cabal
@@ -1,5 +1,5 @@
 name:          pipes-files
-version:       0.1.1
+version:       0.1.2
 synopsis:      Fast traversal of directory trees using pipes
 description:   Fast traversal of directory trees using pipes
 homepage:      https://github.com/jwiegley/pipes-files
@@ -35,18 +35,18 @@
     , Pipes.Files.Directory
     , Pipes.Files.Types
   build-depends:       
-      base                >=4.7  && <4.9
-    , transformers        >=0.3  && <0.5
-    , transformers-base   >=0.3  && <0.5
-    , transformers-compat >=0.3  && <0.5
+      base                >=4.7  && <4.10
+    , transformers        >=0.3  && <0.6
+    , transformers-base   >=0.3  && <0.6
+    , transformers-compat >=0.3  && <0.6
     , exceptions          >=0.8  && <0.9
     , mmorph              >=1.0  && <1.1
     , mtl                 >=2.1  && <2.3
     , monad-control       >=1.0  && <1.1
-    , semigroups          >=0.16 && <0.17
+    , semigroups          >=0.16 && <0.19
     , free                >=4.12 && <4.13
-    , pipes               >=4.1  && <4.2
-    , directory           >=1.2  && <1.3
+    , pipes               >=4.1  && <4.4
+    , directory           >=1.2  && <1.4
     , unix                >=2.7  && <2.8
     , hierarchy           >=0.2.1
     , regex-posix
@@ -68,10 +68,10 @@
   hs-source-dirs: test
   build-depends:      
       base
-    , directory    >=1.0
+    , directory    >=1.2 && <1.4
     , doctest      >=0.8
     , filepath     >=1.3
-    , semigroups   >=0.4
+    , semigroups   >=0.16 && <0.19
 
 test-suite test
   default-language: Haskell2010
@@ -83,10 +83,10 @@
       base >=3
     , hierarchy
     , pipes-files
-    , pipes              >=4.1  && <4.2
-    , directory          >=1.2  && <1.3
+    , pipes              >=4.1  && <4.4
+    , directory          >=1.2  && <1.4
     , unix               >=2.7  && <2.8
-    , transformers       >=0.3  && <0.5
+    , transformers       >=0.3  && <0.6
     , mtl                >=2.1  && <2.3
     , hspec              >=1.4.4
     , hspec-expectations >=0.3
@@ -99,10 +99,10 @@
   hs-source-dirs:   test
   build-depends:
       base
-    , transformers       >=0.3  && <0.5
+    , transformers       >=0.3  && <0.6
     , text               >= 0.11.3.1
     , unix               >= 0.4.1.1
-    , pipes              >=4.1  && <4.2
+    , pipes              >=4.1  && <4.4
     , hspec              >=1.4.4
     , hspec-expectations >=0.3
     , pipes-safe
