-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | QuasiQuoter for byte sequence -- -- QuasiQuoter for byte sequence and FromBytes typeclass. @package qq-bytes @version 1.0.0.0 -- | Offers QuasiQuoters for byte sequence. module Data.Bytes.QuasiQuoter -- | Offers StrictByteString -> a. class FromBytes a fromBytes :: FromBytes a => ByteString -> a -- | Accepts '0'..'9', 'A'..'Z', 'a'..'z'. 1 <= base <= -- 36 fromDigitWithBase :: Int -> Char -> Maybe Int -- | Internal function for quasiquotes. 1 <= b <= 5 strWithBase :: FromBytes a => Int -> String -> a -- | Binary string into byte sequence. Skips non-binary character. -- Internally means strWithBase 1. -- --
-- >>> [bin|00100000|] :: BS.ByteString -- " " --bin :: QuasiQuoter -- | Hex string into byte sequence. Skips non-hex character. Internally -- means strWithBase 4. -- --
-- >>> [hex|48 65 6c 6c 6f|] :: BS.ByteString -- "Hello" --hex :: QuasiQuoter instance Data.Bytes.QuasiQuoter.FromBytes Data.ByteString.Internal.Type.ByteString instance Data.Bytes.QuasiQuoter.FromBytes Data.ByteString.Lazy.Internal.ByteString