summaryrefslogtreecommitdiff
path: root/src/Crypto/Tox.hs
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2018-11-24 21:15:59 -0500
committerJoe Crayne <joe@jerkface.net>2018-11-27 22:47:28 -0500
commitd23984f4de21f5fd994b747a051b7366cd3c1ff0 (patch)
tree7efcb99ab120dc0e7a098d17e08959c06918afa1 /src/Crypto/Tox.hs
parent326eed10e1e3c9d63bfdfa72dc55e67dcd4e4a0c (diff)
Instances for Plain tagged bytestring.
Diffstat (limited to 'src/Crypto/Tox.hs')
-rw-r--r--src/Crypto/Tox.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Crypto/Tox.hs b/src/Crypto/Tox.hs
index 9b097c7e..839bd68a 100644
--- a/src/Crypto/Tox.hs
+++ b/src/Crypto/Tox.hs
@@ -199,6 +199,7 @@ putEncrypted :: Encrypted a -> Put
199putEncrypted (Encrypted bs) = putByteString bs 199putEncrypted (Encrypted bs) = putByteString bs
200 200
201newtype Plain (s:: * -> Constraint) a = Plain ByteString 201newtype Plain (s:: * -> Constraint) a = Plain ByteString
202 deriving (Eq,Ord,Show,ByteArrayAccess)
202 203
203 204
204decodePlain :: Serialize a => Plain Serialize a -> Either String a 205decodePlain :: Serialize a => Plain Serialize a -> Either String a