From 0cd874d10cd29a5b203268c2b5fcdd214cb91d13 Mon Sep 17 00:00:00 2001 From: Sam T Date: Thu, 26 Sep 2013 23:58:54 +0400 Subject: Add stubs for base32hex codec --- src/Data/ByteString/Base32/Hex.hs | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/Data/ByteString/Base32/Hex.hs (limited to 'src') 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 @@ +-- | +-- Copyright : (c) Sam Truzjan 2013 +-- License : BSD3 +-- Maintainer : pxqr.sta@gmail.com +-- Stability : stable +-- Portability : portable +-- +-- Efficient encoding and decoding of base32hex encoded bytestring +-- according to RFC 4648. +-- +-- This module recommended to be imported as @import +-- Data.ByteString.Base32.Hex as Base32Hex@ to avoid name clashes +-- with @Data.ByteString.Base32@. +-- +module Data.ByteString.Base32.Hex + ( encode + , decode + , decodeLenient + ) where + +import Data.ByteString as BS + + +-- | Encode a bytestring into base32hex form. +encode :: ByteString -> ByteString +encode = undefined + +-- | Decode a base32hex encoded bytestring. +decode :: ByteString -> ByteString +decode = undefined + +decodeLenient :: ByteString -> ByteString +decodeLenient = undefined \ No newline at end of file -- cgit v1.2.3