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 Source #

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 Source #

Instances

Rot13 Char Source # 

Methods

rot13 :: Char -> Char Source #

Rot13 Int Source # 

Methods

rot13 :: Int -> Int Source #

Rot13 Int8 Source # 

Methods

rot13 :: Int8 -> Int8 Source #

Rot13 Int16 Source # 

Methods

rot13 :: Int16 -> Int16 Source #

Rot13 Int32 Source # 

Methods

rot13 :: Int32 -> Int32 Source #

Rot13 Int64 Source # 

Methods

rot13 :: Int64 -> Int64 Source #

Rot13 Integer Source # 
Rot13 Word Source # 

Methods

rot13 :: Word -> Word Source #

Rot13 Word8 Source # 

Methods

rot13 :: Word8 -> Word8 Source #

Rot13 Word16 Source # 

Methods

rot13 :: Word16 -> Word16 Source #

Rot13 Word32 Source # 

Methods

rot13 :: Word32 -> Word32 Source #

Rot13 Word64 Source # 

Methods

rot13 :: Word64 -> Word64 Source #

Rot13 CChar Source # 

Methods

rot13 :: CChar -> CChar Source #

Rot13 CSChar Source # 

Methods

rot13 :: CSChar -> CSChar Source #

Rot13 CUChar Source # 

Methods

rot13 :: CUChar -> CUChar Source #

Rot13 CShort Source # 

Methods

rot13 :: CShort -> CShort Source #

Rot13 CUShort Source # 
Rot13 CInt Source # 

Methods

rot13 :: CInt -> CInt Source #

Rot13 CUInt Source # 

Methods

rot13 :: CUInt -> CUInt Source #

Rot13 CLong Source # 

Methods

rot13 :: CLong -> CLong Source #

Rot13 CULong Source # 

Methods

rot13 :: CULong -> CULong Source #

Rot13 CLLong Source # 

Methods

rot13 :: CLLong -> CLLong Source #

Rot13 CULLong Source # 
Rot13 CWchar Source # 

Methods

rot13 :: CWchar -> CWchar Source #

Rot13 String Source # 

Methods

rot13 :: String -> String Source #

Rot13 ByteString Source # 
Rot13 Text Source # 

Methods

rot13 :: Text -> Text Source #

class Rot13Bytes a where Source #

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 Source #

Constraint Interfaces

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

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

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

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

Compatibility