Copyright | (c) Kyle Van Berendonck 2014 |
---|---|
License | BSD3 |
Maintainer | kvanberendonck@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Codec.Rot13
Description
This module exposes the API for this package.
Typeclass Interfaces
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
Instances
Rot13 Char # | |
Rot13 Int # | |
Rot13 Int8 # | |
Rot13 Int16 # | |
Rot13 Int32 # | |
Rot13 Int64 # | |
Rot13 Integer # | |
Rot13 Word # | |
Rot13 Word8 # | |
Rot13 Word16 # | |
Rot13 Word32 # | |
Rot13 Word64 # | |
Rot13 CChar # | |
Rot13 CSChar # | |
Rot13 CUChar # | |
Rot13 CShort # | |
Rot13 CUShort # | |
Rot13 CInt # | |
Rot13 CUInt # | |
Rot13 CLong # | |
Rot13 CULong # | |
Rot13 CLLong # | |
Rot13 CULLong # | |
Rot13 CWchar # | |
Rot13 String # | |
Rot13 ByteString # | |
Rot13 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
Methods
rot13bs :: a -> ByteString #
Instances
Storable a => Rot13Bytes a # | |
Rot13Bytes ByteString # | |
Constraint Interfaces
Compatibility
rot13word8 :: Word8 -> Word8 #
rot13string :: String -> String #