diff --git a/Numeric/Optimization/Algorithms/HagerZhang05.hsc b/Numeric/Optimization/Algorithms/HagerZhang05.hsc
--- a/Numeric/Optimization/Algorithms/HagerZhang05.hsc
+++ b/Numeric/Optimization/Algorithms/HagerZhang05.hsc
@@ -235,7 +235,6 @@
       putStrLn $  "      r: " ++ show r
 #endif
       return r
-prepareF _ = error "HagerZhang05.prepareF: never here"
 
 #ifdef DEBUG
 showV :: SM.IOVector Double -> String
@@ -293,7 +292,6 @@
 #ifdef DEBUG
       putStrLn $  "      r: " ++ showV r
 #endif
-prepareG _ = error "HagerZhang05.prepareG: never here"
 
 
 
@@ -345,7 +343,6 @@
       putStrLn $  "      r: " ++ show v ++ ", " ++ showV r
 #endif
       return v
-prepareC _ = error "HagerZhang05.prepareC: never here"
 
 -- | Combine two separated functions into a single, combined one.
 -- This is always a win for us since we save one jump from C to
@@ -353,7 +350,6 @@
 combine :: Function Mutable -> Gradient Mutable -> Combined Mutable
 combine (MFunction f) (MGradient g) =
     MCombined $ \mx mret -> g mx mret >> f mx
-combine _ _ = error "HagerZhang05.combine: never here"
 
 
 
diff --git a/nonlinear-optimization.cabal b/nonlinear-optimization.cabal
--- a/nonlinear-optimization.cabal
+++ b/nonlinear-optimization.cabal
@@ -1,9 +1,9 @@
-Cabal-Version:       >= 1.2.3
+Cabal-Version:       >= 1.6
 Build-Type:          Simple
 Tested-With:         GHC
 Category:            Math
 Name:                nonlinear-optimization
-Version:             0.3.5
+Version:             0.3.5.1
 Stability:           experimental
 License:             GPL
 License-File:        LICENSE
@@ -38,10 +38,15 @@
   Description: Enable some debug statements.
   Default:     False
 
+Source-repository head
+  type: darcs
+  location: http://patch-tag.com/r/felipe/nonlinear-optimization
+
 Library
   Build-Depends:
-    base >= 3 && < 5, vector >= 0.5 && < 0.8,
-    primitive >= 0.2 && < 0.4
+      base      >= 3   && < 5
+    , primitive >= 0.2 && < 0.5
+    , vector    >= 0.5 && < 0.10
   Exposed-Modules:
     Numeric.Optimization.Algorithms.HagerZhang05
   Include-Dirs:
