diff --git a/cabal-sort.cabal b/cabal-sort.cabal
--- a/cabal-sort.cabal
+++ b/cabal-sort.cabal
@@ -1,5 +1,5 @@
 Name:             cabal-sort
-Version:          0.0.5.2
+Version:          0.0.5.3
 License:          BSD3
 License-File:     LICENSE
 Author:           Henning Thielemann <haskell@henning-thielemann.de>
@@ -87,7 +87,7 @@
 Source-Repository this
   type:     darcs
   location: http://code.haskell.org/~thielema/cabal-sort/
-  tag:      0.0.5.2
+  tag:      0.0.5.3
 
 
 Executable cabal-sort
@@ -98,7 +98,7 @@
     filepath >=1.1 && <1.5,
     containers >=0.2 && <0.6,
     explicit-exception >=0.1.4 && <0.2,
-    transformers >=0.2 && <0.5,
+    transformers >=0.2 && <0.6,
     base >=2 && <5
 
   GHC-Options:      -Wall
@@ -108,11 +108,11 @@
 Executable ghc-pkg-dep
   Build-Depends:
     Cabal >=1.6 && <2,
-    process >=1.0 && <1.3,
+    process >=1.0 && <1.5,
     containers >=0.2 && <0.6,
     explicit-exception >=0.1.6 && <0.2,
     utility-ht >=0.0.5 && <0.1,
-    transformers >=0.2 && <0.5,
+    transformers >=0.2 && <0.6,
     bytestring >=0.9.1 && <0.11,
     base >=2 && <5
 
diff --git a/src/GhcPkgDep.hs b/src/GhcPkgDep.hs
--- a/src/GhcPkgDep.hs
+++ b/src/GhcPkgDep.hs
@@ -16,7 +16,6 @@
 import qualified Control.Monad.Exception.Synchronous as Exc
 import qualified Control.Monad.Trans.State as State
 import qualified Control.Monad.Trans.Class as Trans
--- import Control.Monad.IO.Class (liftIO, )
 
 import qualified Data.Set as Set
 
@@ -174,7 +173,8 @@
          -}
          return $
             map stripHashId $
-            filter (not . flip elem ["depends:", "builtin_rts"]) names
+            filter (flip notElem ["depends:", "builtin_rts"]) names
+      [] -> return []
       _ -> Exc.throwT $
               "unexpected output of ghc-pkg - " ++
               "it should start with 'depends:'" ++
