Data.Hex

hex-0.1.2: Convert strings into hexadecimal and back.

Copyright | (c) Taru Karttunen 2009
License | BSD-style
Maintainer | taruti@taruti.net
Stability | provisional
Portability | portable
Safe Haskell | Safe
Language | Haskell98

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

Convert strings into hexadecimal and back.

Methods

hex :: t -> t

Convert string into hexadecimal.

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

Convert from hexadecimal and fail on invalid input.

Instances

Hex String |
Hex ByteString |
Hex ByteString |