diff --git a/Text/ParserCombinators/Parsec/Number.hs b/Text/ParserCombinators/Parsec/Number.hs
--- a/Text/ParserCombinators/Parsec/Number.hs
+++ b/Text/ParserCombinators/Parsec/Number.hs
@@ -160,7 +160,7 @@
 {- | compute the factor given by the number following e or E. This
 implementation uses @**@ rather than @^@ for more efficiency for large
 integers. -}
-exponentValue :: Int -> Floating f => Integer -> f
+exponentValue :: Floating f => Int -> Integer -> f
 exponentValue base = (fromIntegral base **) . fromInteger
 
 -- * fractional numbers (with just a decimal point between digits)
@@ -301,4 +301,4 @@
 -- | compute the value from a string of digits using a base
 numberValue :: Integral i => Int -> String -> i
 numberValue base =
-  foldl (\ x -> (fromIntegral base * x +) . fromIntegral . digitToInt) 0
+  foldl (\ x -> ((fromIntegral base * x) +) . fromIntegral . digitToInt) 0
diff --git a/parsec-numbers.cabal b/parsec-numbers.cabal
--- a/parsec-numbers.cabal
+++ b/parsec-numbers.cabal
@@ -1,5 +1,5 @@
 name:          parsec-numbers
-version:       0.0.3
+version:       0.0.4
 build-type:    Simple
 cabal-version: >= 1.6
 license:       BSD3
