summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorssadler <>2020-03-26 01:01:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2020-03-26 01:01:00 (GMT)
commiteee90a7be10d9b673660290a4bb4d6908ee0dbf7 (patch)
tree565af7a5f6de8989e147d4d8e1f02ba3a00c4eac
parentf793f102b25f3847d59d0674d4532332a3b70a47 (diff)
version 0.2.5HEAD0.2.5master
-rw-r--r--Network/CryptoConditions/Json.hs3
-rw-r--r--cryptoconditions.cabal2
2 files changed, 3 insertions, 2 deletions
diff --git a/Network/CryptoConditions/Json.hs b/Network/CryptoConditions/Json.hs
index b8e7754..44a17f5 100644
--- a/Network/CryptoConditions/Json.hs
+++ b/Network/CryptoConditions/Json.hs
@@ -15,6 +15,7 @@ module Network.CryptoConditions.Json
) where
+import Control.Monad.Fail (MonadFail)
import Crypto.PubKey.Ed25519
import Crypto.Error
@@ -95,7 +96,7 @@ toJsonAnon cond =
-- Util
--
-fromB64 :: Text -> Parser ByteString
+fromB64 :: MonadFail m => Text -> m ByteString
fromB64 = either fail pure . b64DecodeStripped . encodeUtf8
diff --git a/cryptoconditions.cabal b/cryptoconditions.cabal
index 72e6f6f..08288ac 100644
--- a/cryptoconditions.cabal
+++ b/cryptoconditions.cabal
@@ -1,5 +1,5 @@
name: cryptoconditions
-version: 0.2.4
+version: 0.2.5
synopsis: Interledger Crypto-Conditions
description: Please see README.md
homepage: https://github.com/libscott/cryptoconditions-hs