rot13-0.2.0.1: Fast ROT13 cipher for Haskell.
Copyright(c) Kyle Van Berendonck 2014
LicenseBSD3
Maintainer[email protected]
Stabilityexperimental
Portabilityportable
Safe HaskellTrustworthy
LanguageHaskell2010

Codec.Rot13

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.

Methods

rot13 :: a -> a Source #

Instances

Instances details
Rot13 CChar Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CChar -> CChar Source #

Rot13 CInt Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CInt -> CInt Source #

Rot13 CLLong Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CLLong -> CLLong Source #

Rot13 CLong Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CLong -> CLong Source #

Rot13 CSChar Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CSChar -> CSChar Source #

Rot13 CShort Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CShort -> CShort Source #

Rot13 CUChar Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CUChar -> CUChar Source #

Rot13 CUInt Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CUInt -> CUInt Source #

Rot13 CULLong Source # 
Instance details

Defined in Codec.Rot13

Rot13 CULong Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CULong -> CULong Source #

Rot13 CUShort Source # 
Instance details

Defined in Codec.Rot13

Rot13 CWchar Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: CWchar -> CWchar Source #

Rot13 Int16 Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Int16 -> Int16 Source #

Rot13 Int32 Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Int32 -> Int32 Source #

Rot13 Int64 Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Int64 -> Int64 Source #

Rot13 Int8 Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Int8 -> Int8 Source #

Rot13 Word16 Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Word16 -> Word16 Source #

Rot13 Word32 Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Word32 -> Word32 Source #

Rot13 Word64 Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Word64 -> Word64 Source #

Rot13 Word8 Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Word8 -> Word8 Source #

Rot13 ByteString Source # 
Instance details

Defined in Codec.Rot13

Rot13 Text Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Text -> Text Source #

Rot13 String Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: String -> String Source #

Rot13 Integer Source # 
Instance details

Defined in Codec.Rot13

Rot13 Char Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Char -> Char Source #

Rot13 Int Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Int -> Int Source #

Rot13 Word Source # 
Instance details

Defined in Codec.Rot13

Methods

rot13 :: Word -> Word 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.

Methods

rot13bs :: a -> ByteString Source #

Instances

Instances details
Rot13Bytes ByteString Source # 
Instance details

Defined in Codec.Rot13

Storable a => Rot13Bytes a Source # 
Instance details

Defined in Codec.Rot13

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