| 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
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 # | |
Defined in Codec.Rot13 Methods rot13bs :: a -> ByteString # | |
| Rot13Bytes ByteString # | |
Defined in Codec.Rot13 Methods rot13bs :: ByteString -> ByteString # | |
Constraint Interfaces
Compatibility
rot13word8 :: Word8 -> Word8 #
rot13string :: String -> String #