rot13-0.2.0.1: Fast ROT13 cipher for Haskell.

Copyright(c) Kyle Van Berendonck 2014
LicenseBSD3
Maintainerkvanberendonck@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellTrustworthy
LanguageHaskell2010

Codec.Rot13

Contents

Description

This module exposes the API for this package.

Synopsis

Typeclass Interfaces

class Rot13 a where #

The Rot13 typeclass is intended to perform the ROT13 cipher on the provided data, as if it were representing a single ANSI-encoded character. This interface doesn't consider the storage behaviour of the type at all, but is the fastest implementation if you need to integrate the transformation as part of a stream.

Minimal complete definition

rot13

Methods

rot13 :: a -> a #

Instances

Rot13 Char # 

Methods

rot13 :: Char -> Char #

Rot13 Int # 

Methods

rot13 :: Int -> Int #

Rot13 Int8 # 

Methods

rot13 :: Int8 -> Int8 #

Rot13 Int16 # 

Methods

rot13 :: Int16 -> Int16 #

Rot13 Int32 # 

Methods

rot13 :: Int32 -> Int32 #

Rot13 Int64 # 

Methods

rot13 :: Int64 -> Int64 #

Rot13 Integer # 

Methods

rot13 :: Integer -> Integer #

Rot13 Word # 

Methods

rot13 :: Word -> Word #

Rot13 Word8 # 

Methods

rot13 :: Word8 -> Word8 #

Rot13 Word16 # 

Methods

rot13 :: Word16 -> Word16 #

Rot13 Word32 # 

Methods

rot13 :: Word32 -> Word32 #

Rot13 Word64 # 

Methods

rot13 :: Word64 -> Word64 #

Rot13 CChar # 

Methods

rot13 :: CChar -> CChar #

Rot13 CSChar # 

Methods

rot13 :: CSChar -> CSChar #

Rot13 CUChar # 

Methods

rot13 :: CUChar -> CUChar #

Rot13 CShort # 

Methods

rot13 :: CShort -> CShort #

Rot13 CUShort # 

Methods

rot13 :: CUShort -> CUShort #

Rot13 CInt # 

Methods

rot13 :: CInt -> CInt #

Rot13 CUInt # 

Methods

rot13 :: CUInt -> CUInt #

Rot13 CLong # 

Methods

rot13 :: CLong -> CLong #

Rot13 CULong # 

Methods

rot13 :: CULong -> CULong #

Rot13 CLLong # 

Methods

rot13 :: CLLong -> CLLong #

Rot13 CULLong # 

Methods

rot13 :: CULLong -> CULLong #

Rot13 CWchar # 

Methods

rot13 :: CWchar -> CWchar #

Rot13 String # 

Methods

rot13 :: String -> String #

Rot13 ByteString # 
Rot13 Text # 

Methods

rot13 :: Text -> Text #

class Rot13Bytes a where #

The Rot13Bytes typeclass is intended for when you need to perform the ROT13 cipher on some data at the memory level. It stores the given data into a temporary buffer in memory, then runs the cipher over the stored bytes to produce a new buffer. This operation is typically slower than just using rot13 as part of a fusion pipeline.

Minimal complete definition

rot13bs

Methods

rot13bs :: a -> ByteString #

Instances

Constraint Interfaces

rot13enum :: Enum a => a -> a #

Perform the ROT13 cipher on the given Enum instance (in the sense of Rot13).

rot13int :: Integral a => a -> a #

Perform the ROT13 cipher on the given Integral instance (in the sense of Rot13).

Compatibility