diff --git a/scotty-cookie.cabal b/scotty-cookie.cabal
--- a/scotty-cookie.cabal
+++ b/scotty-cookie.cabal
@@ -1,5 +1,5 @@
 name:                scotty-cookie
-version:             0.1.0.1
+version:             0.1.0.2
 synopsis:            Cookie management helper functions for Scotty framework
 description:         Cookie management helper functions for Scotty framework
 homepage:            https://bitbucket.org/wniare/scotty-cookie
diff --git a/src/Web/Scotty/Cookie.hs b/src/Web/Scotty/Cookie.hs
--- a/src/Web/Scotty/Cookie.hs
+++ b/src/Web/Scotty/Cookie.hs
@@ -18,13 +18,10 @@
 main = scotty 3000 $
     get \"/\" $ do
         hits <- liftM (fromMaybe \"0\") $ getCookie \"hits\"
-
         let hits' = case decimal hits of
-                        Right n -> TL.pack . show . (+1) $ (fst n :: 'Integer')
+                        Right n -> TL.pack . show . (+1) $ (fst n :: Integer)
                         Left _  -> \"1\"
-
         setSimpleCookie \"hits\" $ TL.toStrict hits'
-
         html $ mconcat [ \"\<html\>\<body\>\"
                        , hits'
                        , \"\<\/body\>\<\/html\>\"
