diff --git a/PkgCheckParser.hs b/PkgCheckParser.hs
new file mode 100644
--- /dev/null
+++ b/PkgCheckParser.hs
@@ -0,0 +1,25 @@
+module PkgCheckParser (parseCheck, BrokenPackage (..)) where
+import Text.Parsec
+import Text.Parsec.String
+import Control.Applicative hiding ((<|>), many)
+data BrokenPackage = P { packageID  :: String
+                       , brokenDeps :: [String]
+                       } deriving (Show, Eq, Ord)
+
+
+parseCheck :: String -> Either ParseError [BrokenPackage]
+parseCheck = parse (many1 check) ""
+
+check :: Parser BrokenPackage
+check = string "There are problems in package "
+        >> P <$> packName <* string ":\n" <*> many1 errDep
+
+ident :: Parser String
+ident = many (alphaNum <|> oneOf "-.")
+
+packID, packName :: Parser String
+packID = ident
+packName = ident
+
+errDep :: Parser String
+errDep = string "  dependency \"" *> packID <* string "\" doesn't exist\n"
diff --git a/ghc-pkg-autofix.cabal b/ghc-pkg-autofix.cabal
--- a/ghc-pkg-autofix.cabal
+++ b/ghc-pkg-autofix.cabal
@@ -7,7 +7,7 @@
 -- The package version. See the Haskell package versioning policy
 -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for
 -- standards guiding when and how versions should be incremented.
-Version:             0.1.3
+Version:             0.1.4
 
 -- A short (one-line) description of the package.
 Synopsis:            Simple utility to fix BROKEN package dependencies.
@@ -54,7 +54,7 @@
                  Cabal >= 1.8 && <2
   
   -- Modules not exported by this package.
-  -- Other-modules:       
+  Other-modules: PkgCheckParser
   
   -- Extra tools (e.g. alex, hsc2hs, ...) needed to build the source.
   -- Build-tools:         
