summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Network/Pastis.hs2
-rw-r--r--pastis.cabal2
2 files changed, 2 insertions, 2 deletions
diff --git a/Network/Pastis.hs b/Network/Pastis.hs
index 83a2fa9..982c5e7 100644
--- a/Network/Pastis.hs
+++ b/Network/Pastis.hs
@@ -3,7 +3,7 @@ module Network.Pastis (pastisURL) where
import Network.HTTP
import Network.URI
--- | Use pastisURL to shorten a URL.
+-- | Use pastisURL to shorten a URL. If an error occurs, the function returns 'url'.
pastisURL :: String -> IO String
pastisURL url = fmap (either (const url) rspBody) (simpleHTTP request) `catch` (return . const url)
where request = Request { rqURI = uri
diff --git a/pastis.cabal b/pastis.cabal
index c3b3d59..8cb2633 100644
--- a/pastis.cabal
+++ b/pastis.cabal
@@ -7,7 +7,7 @@ Name: pastis
-- The package version. See the Haskell package versioning policy
-- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for
-- standards guiding when and how versions should be incremented.
-Version: 0.1.1
+Version: 0.1.2
-- A short (one-line) description of the package.
Synopsis: Interface to the past.is URL shortening service