summaryrefslogtreecommitdiff
path: root/src/Data
diff options
context:
space:
mode:
authorSam T <pxqr.sta@gmail.com>2013-09-26 23:58:54 +0400
committerSam T <pxqr.sta@gmail.com>2013-09-26 23:58:54 +0400
commit0cd874d10cd29a5b203268c2b5fcdd214cb91d13 (patch)
tree761cccf96a6499c66ddb14df3aa4cc833f1579bb /src/Data
parenta34bc4269a11165ec9c05a0f5e55ba2800764b0f (diff)
Add stubs for base32hex codec
Diffstat (limited to 'src/Data')
-rw-r--r--src/Data/ByteString/Base32/Hex.hs33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/Data/ByteString/Base32/Hex.hs b/src/Data/ByteString/Base32/Hex.hs
new file mode 100644
index 0000000..dad222f
--- /dev/null
+++ b/src/Data/ByteString/Base32/Hex.hs
@@ -0,0 +1,33 @@
1-- |
2-- Copyright : (c) Sam Truzjan 2013
3-- License : BSD3
4-- Maintainer : pxqr.sta@gmail.com
5-- Stability : stable
6-- Portability : portable
7--
8-- Efficient encoding and decoding of base32hex encoded bytestring
9-- according to RFC 4648. <http://tools.ietf.org/html/rfc4648>
10--
11-- This module recommended to be imported as @import
12-- Data.ByteString.Base32.Hex as Base32Hex@ to avoid name clashes
13-- with @Data.ByteString.Base32@.
14--
15module Data.ByteString.Base32.Hex
16 ( encode
17 , decode
18 , decodeLenient
19 ) where
20
21import Data.ByteString as BS
22
23
24-- | Encode a bytestring into base32hex form.
25encode :: ByteString -> ByteString
26encode = undefined
27
28-- | Decode a base32hex encoded bytestring.
29decode :: ByteString -> ByteString
30decode = undefined
31
32decodeLenient :: ByteString -> ByteString
33decodeLenient = undefined \ No newline at end of file