hex-0.1.2: Convert strings into hexadecimal and back.
Copyright(c) Taru Karttunen 2009
LicenseBSD-style
Maintainertaruti@taruti.net
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

Data.Hex

Description

Convert strings into hexadecimal and back.

Synopsis
  • class Hex t where
    • hex :: t -> t
    • unhex :: Monad m => t -> m t

Documentation

class Hex t where Source #

Convert strings into hexadecimal and back.

Methods

hex :: t -> t Source #

Convert string into hexadecimal.

unhex :: Monad m => t -> m t Source #

Convert from hexadecimal and fail on invalid input.

Instances

Instances details
Hex String Source # 
Instance details

Defined in Data.Hex

Methods

hex :: String -> String Source #

unhex :: Monad m => String -> m String Source #

Hex ByteString Source # 
Instance details

Defined in Data.Hex

Methods

hex :: ByteString -> ByteString Source #

unhex :: Monad m => ByteString -> m ByteString Source #

Hex ByteString Source # 
Instance details

Defined in Data.Hex

Methods

hex :: ByteString -> ByteString Source #

unhex :: Monad m => ByteString -> m ByteString Source #