| License | AGPL-3 |
|---|---|
| Maintainer | stu235271@mail.uni-kiel.de stu236925@mail.uni-kiel.de |
| Safe Haskell | None |
| Language | Haskell2010 |
Docs.Document
Description
This module contains the definition of a Document datatype as well as
related datatypes
Synopsis
- newtype DocumentID = DocumentID {}
- data Document = Document {
- identifier :: DocumentID
- name :: Text
- group :: GroupID
- created :: UTCTime
- createdBy :: UserRef
- lastEdited :: UTCTime
- lastEditedBy :: UserRef
Documentation
newtype DocumentID Source #
ID for a document
Constructors
| DocumentID | |
Fields | |
Instances
| FromJSON DocumentID Source # | |
Defined in Docs.Document | |
| ToJSON DocumentID Source # | |
Defined in Docs.Document Methods toJSON :: DocumentID -> Value toEncoding :: DocumentID -> Encoding toJSONList :: [DocumentID] -> Value toEncodingList :: [DocumentID] -> Encoding omitField :: DocumentID -> Bool | |
| Show DocumentID Source # | |
Defined in Docs.Document Methods showsPrec :: Int -> DocumentID -> ShowS # show :: DocumentID -> String # showList :: [DocumentID] -> ShowS # | |
| Eq DocumentID Source # | |
Defined in Docs.Document | |
| FromHttpApiData DocumentID Source # | |
Defined in Docs.Document Methods parseUrlPiece :: Text -> Either Text DocumentID parseHeader :: ByteString -> Either Text DocumentID parseQueryParam :: Text -> Either Text DocumentID | |
| ToParamSchema DocumentID Source # | |
Defined in Docs.Document Methods toParamSchema :: Proxy DocumentID -> Schema | |
| ToSchema DocumentID Source # | |
Defined in Docs.Document Methods declareNamedSchema :: Proxy DocumentID -> Declare (Definitions Schema) NamedSchema | |
Document metadata
Constructors
| Document | |
Fields
| |