diff --git a/regress.cabal b/regress.cabal
--- a/regress.cabal
+++ b/regress.cabal
@@ -1,5 +1,5 @@
 name:                regress
-version:             0.1
+version:             0.1.1
 synopsis:            Linear and logistic regression through automatic differentiation
 description:
   Linear and logistic regression through automatic differentiation
diff --git a/src/Numeric/Regression/Linear.hs b/src/Numeric/Regression/Linear.hs
--- a/src/Numeric/Regression/Linear.hs
+++ b/src/Numeric/Regression/Linear.hs
@@ -29,7 +29,7 @@
      -> a         -- ^ expected @y@ for the observation
      -> a         -- ^ cost
 cost theta x y = 0.5 * (y - compute theta x) ^ (2 :: Int)
-{-# INLINE compute #-}
+{-# INLINE cost #-}
 
 -- | Cost function for a linear regression on a set of observations
 totalCost :: (Applicative v, Foldable v, Applicative f, Foldable f, Floating a)
