| License | AGPL-3 |
|---|---|
| Maintainer | stu235271@mail.uni-kiel.de stu236925@mail.uni-kiel.de |
| Safe Haskell | None |
| Language | Haskell2010 |
Docs.Hash
Description
This module contains the definition of a Hash datatype and some related
utility funtions.
Documentation
class Hashable a where Source #
a hashable value
Minimal complete definition
Instances
| Hashable Hash Source # | |
| Hashable TreeEdge Source # | |
Defined in Docs.Hasql.TreeEdge | |
| Hashable TreeEdgeChildRef Source # | |
Defined in Docs.Hasql.TreeEdge Methods updateHash :: Ctx -> TreeEdgeChildRef -> Ctx Source # hash :: TreeEdgeChildRef -> Hash Source # | |
| Hashable TextElementID Source # | |
Defined in Docs.TextElement | |
| Hashable NodeHeader Source # | |
Defined in Docs.Tree | |
| Hashable Int64 Source # | |
| Hashable ByteString Source # | |
Defined in Docs.Hash | |
| Hashable Text Source # | |
| Hashable Int Source # | |
| Hashable a => Hashable (Maybe a) Source # | |
| Hashable a => Hashable [a] Source # | |
represents a value together with its hash
Instances
| (Hashable a, FromJSON a) => FromJSON (Hashed a) Source # | |
Defined in Docs.Hash Methods parseJSON :: Value -> Parser (Hashed a) parseJSONList :: Value -> Parser [Hashed a] omittedField :: Maybe (Hashed a) | |
| (Hashable a, ToJSON a) => ToJSON (Hashed a) Source # | |
Defined in Docs.Hash Methods toEncoding :: Hashed a -> Encoding toJSONList :: [Hashed a] -> Value toEncodingList :: [Hashed a] -> Encoding | |
| Show a => Show (Hashed a) Source # | |
| ToSchema a => ToSchema (Hashed a) Source # | |
Defined in Docs.Hash Methods declareNamedSchema :: Proxy (Hashed a) -> Declare (Definitions Schema) NamedSchema | |
represents the hash of a value
Constructors
| Hash | |
Fields
| |
Instances
| FromJSON Hash Source # | |
Defined in Docs.Hash | |
| ToJSON Hash Source # | |
Defined in Docs.Hash Methods toEncoding :: Hash -> Encoding toJSONList :: [Hash] -> Value toEncodingList :: [Hash] -> Encoding | |
| Hashable Hash Source # | |
| Show Hash Source # | |
| Eq Hash Source # | |
| FromHttpApiData Hash Source # | |
Defined in Docs.Hash Methods parseUrlPiece :: Text -> Either Text Hash parseHeader :: ByteString -> Either Text Hash parseQueryParam :: Text -> Either Text Hash | |
| ToParamSchema Hash Source # | |
Defined in Docs.Hash Methods toParamSchema :: Proxy Hash -> Schema | |
| ToSchema Hash Source # | |
Defined in Docs.Hash Methods declareNamedSchema :: Proxy Hash -> Declare (Definitions Schema) NamedSchema | |