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 # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Char -> Char #

Rot13 Int # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Int -> Int #

Rot13 Int8 # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Int8 -> Int8 #

Rot13 Int16 # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Int16 -> Int16 #

Rot13 Int32 # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Int32 -> Int32 #

Rot13 Int64 # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Int64 -> Int64 #

Rot13 Integer # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Integer -> Integer #

Rot13 Word # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Word -> Word #

Rot13 Word8 # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Word8 -> Word8 #

Rot13 Word16 # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Word16 -> Word16 #

Rot13 Word32 # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Word32 -> Word32 #

Rot13 Word64 # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Word64 -> Word64 #

Rot13 CChar # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CChar -> CChar #

Rot13 CSChar # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CSChar -> CSChar #

Rot13 CUChar # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CUChar -> CUChar #

Rot13 CShort # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CShort -> CShort #

Rot13 CUShort # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CUShort -> CUShort #

Rot13 CInt # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CInt -> CInt #

Rot13 CUInt # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CUInt -> CUInt #

Rot13 CLong # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CLong -> CLong #

Rot13 CULong # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CULong -> CULong #

Rot13 CLLong # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CLLong -> CLLong #

Rot13 CULLong # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CULLong -> CULLong #

Rot13 CWchar # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CWchar -> CWchar #

Rot13 String # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: String -> String #

Rot13 ByteString # 
Instance details

Defined in Codec.Rot13

Rot13 Text # 
Instance details

Defined in Codec.Rot13

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
Storable a => Rot13Bytes a # 
Instance details

Defined in Codec.Rot13

Methods

rot13bs :: a -> ByteString #

Rot13Bytes ByteString # 
Instance details

Defined in Codec.Rot13

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