Safe Haskell | Trustworthy |
---|---|
Language | Haskell2010 |
- valid :: Ptr Hash -> IO Bool
- eq :: Ptr Hash -> Ptr Hash -> IO Bool
- cmp :: Ptr Hash -> Ptr Hash -> IO Ordering
- unit :: Ptr Hash -> IO ()
- concat :: Ptr Hash -> Ptr Hash -> Ptr Hash -> IO ()
- append :: ByteString -> Ptr Hash -> IO ()
- prepend :: ByteString -> Ptr Hash -> IO ()
- foldAppend :: Foldable t => t ByteString -> Ptr Hash -> IO ()
- foldPrepend :: Foldable t => t ByteString -> Ptr Hash -> IO ()
- serialize :: Ptr Hash -> IO String
- unserialize :: String -> Ptr Hash -> IO (Maybe ())
- withUnit :: (Ptr Hash -> IO a) -> IO (Hash, a)
- withCopy :: Hash -> (Ptr Hash -> IO a) -> IO (Hash, a)
Documentation
concat :: Ptr Hash -> Ptr Hash -> Ptr Hash -> IO () Source #
O(1) Concatenate the second and third Hash
, store the result in the first.
append :: ByteString -> Ptr Hash -> IO () Source #
O(n) Append the hash of the ByteString
to the existing Hash
.
prepend :: ByteString -> Ptr Hash -> IO () Source #
O(n) Prepend the hash of the ByteString
to the existing Hash
.
foldAppend :: Foldable t => t ByteString -> Ptr Hash -> IO () Source #
O(n) Append the hash of every ByteString
to the existing Hash
, from left to right.
foldPrepend :: Foldable t => t ByteString -> Ptr Hash -> IO () Source #
O(n) Prepend the hash of every ByteString
to the existing Hash
, from right to left.
serialize :: Ptr Hash -> IO String Source #
O(1) Serialize the hash into a url-safe base64 representation.