-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Convert strings into hexadecimal and back.
--   
--   Convert strings and bytestrings into hexadecimal and back.
@package hex
@version 0.2.0


-- | Convert strings into hexadecimal and back.
module Data.Hex

-- | Convert strings into hexadecimal and back.
class Hex t

-- | Convert string into hexadecimal.
hex :: Hex t => t -> t

-- | Convert from hexadecimal and fail on invalid input.
unhex :: Hex t => t -> Either String t

-- | Convert from hexadecimal and fail on invalud input.
unhexM :: (Hex t, MonadFail m) => t -> m t
instance Data.Hex.Hex Data.ByteString.Lazy.Internal.ByteString
instance Data.Hex.Hex Data.ByteString.Internal.Type.ByteString
instance Data.Hex.Hex GHC.Internal.Base.String
