diff --git a/examples/hxpath/HXPath.hs b/examples/hxpath/HXPath.hs
--- a/examples/hxpath/HXPath.hs
+++ b/examples/hxpath/HXPath.hs
@@ -18,15 +18,15 @@
 module Main
 where
 
-import Text.XML.HXT.Core
-import Text.XML.HXT.Curl
-import Text.XML.HXT.XPath
-import Text.XML.HXT.Arrow.XmlState.TypeDefs
+import           Text.XML.HXT.Arrow.XmlState.TypeDefs
+import           Text.XML.HXT.Core
+import           Text.XML.HXT.Curl
+import           Text.XML.HXT.XPath
 
-import System.IO                        -- import the IO and commandline option stuff
-import System.Environment
-import System.Console.GetOpt
-import System.Exit
+import           System.Console.GetOpt
+import           System.Environment
+import           System.Exit
+import           System.IO
 
 -- ------------------------------------------------------------
 
@@ -37,14 +37,14 @@
 main
     = do
       argv <- getArgs                                   -- get the commandline arguments
-      (al, expr, src) <- cmdlineOpts argv                       -- and evaluate them, return a key-value list
+      (al, expr, src) <- cmdlineOpts argv               -- and evaluate them, return a key-value list
       [rc]  <- runX (xpath al expr src)                 -- run the parser arrow
       exitProg (rc >= c_err)                            -- set return code and terminate
 
 -- ------------------------------------------------------------
 
 exitProg        :: Bool -> IO a
-exitProg True   = exitWith (ExitFailure (-1))
+exitProg True   = exitWith (ExitFailure 1)
 exitProg False  = exitWith ExitSuccess
 
 -- ------------------------------------------------------------
@@ -57,8 +57,8 @@
 
 xpath   :: SysConfigList -> String -> String -> IOSArrow b Int
 xpath cf expr src
-    = configSysVars cf                                  -- set all global config options, the output file and the
-      >>>                                               -- other user options are stored as key-value pairs in the stystem state
+    = configSysVars cf       -- set all global config options, the output file and the
+      >>>                    -- other user options are stored as key-value pairs in the stystem state
       readDocument [withCurl []] src
       >>>
       evalXPathExpr
@@ -126,7 +126,7 @@
              "Usage: " ++ progName ++ " [OPTION...] <XPath expr> <URL or FILE>"
     use    = usageInfo header options
 
-cmdlineOpts     :: [String] -> IO (SysConfigList, String, String)
+cmdlineOpts :: [String] -> IO ([SysConfig], String, String)
 cmdlineOpts argv
     = case (getOpt Permute options argv) of
       (scfg,n,[]  )
diff --git a/hxt-xpath.cabal b/hxt-xpath.cabal
--- a/hxt-xpath.cabal
+++ b/hxt-xpath.cabal
@@ -1,6 +1,6 @@
 -- arch-tag: Haskell XML Toolbox XPath Package
 Name:           hxt-xpath
-Version:        9.1.2.1
+Version:        9.1.2.2
 Synopsis:       The XPath modules for HXT.
 Description:    The Haskell XML Toolbox XPath library.
                 .
@@ -11,7 +11,7 @@
 Maintainer:     Uwe Schmidt <uwe@fh-wedel.de>
 Stability:      Stable
 Category:       XML
-Homepage:       http://www.fh-wedel.de/~si/HXmlToolbox/index.html
+Homepage:       https://github.com/UweSchmidt/hxt
 Copyright:      Copyright (c) 2005-2010 Torben Kuseler, Uwe Schmidt
 Build-type:     Simple
 Cabal-version:  >=1.6
@@ -52,7 +52,7 @@
  hs-source-dirs: src
 
  ghc-options: -Wall
- ghc-prof-options: -auto-all -caf-all
+ ghc-prof-options: -caf-all
 
  build-depends: base       >= 4   && < 5,
                 containers >= 0.2 && < 1,
