backend-0.1.0.0
LicenseAGPL-3
Maintainerstu235271@mail.uni-kiel.de stu236925@mail.uni-kiel.de
Safe HaskellNone
LanguageHaskell2010

Docs.DocumentHistory

Description

This module contains data type definitions representing the history (meaning chronological overview of revisions) of a Document

Synopsis

Documentation

data DocumentHistory Source #

Chronological overview of a Documents history of revisions.

Instances

Instances details
FromJSON DocumentHistory Source # 
Instance details

Defined in Docs.DocumentHistory

ToJSON DocumentHistory Source # 
Instance details

Defined in Docs.DocumentHistory

Generic DocumentHistory Source # 
Instance details

Defined in Docs.DocumentHistory

Associated Types

type Rep DocumentHistory 
Instance details

Defined in Docs.DocumentHistory

type Rep DocumentHistory = D1 ('MetaData "DocumentHistory" "Docs.DocumentHistory" "backend-0.1.0.0-2H73EnUlGVcEtlIi2XNQz3" 'False) (C1 ('MetaCons "DocumentHistory" 'PrefixI 'True) (S1 ('MetaSel ('Just "document") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DocumentID) :*: S1 ('MetaSel ('Just "history") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [DocumentHistoryItem])))
ToSchema DocumentHistory Source # 
Instance details

Defined in Docs.DocumentHistory

Methods

declareNamedSchema :: Proxy DocumentHistory -> Declare (Definitions Schema) NamedSchema

type Rep DocumentHistory Source # 
Instance details

Defined in Docs.DocumentHistory

type Rep DocumentHistory = D1 ('MetaData "DocumentHistory" "Docs.DocumentHistory" "backend-0.1.0.0-2H73EnUlGVcEtlIi2XNQz3" 'False) (C1 ('MetaCons "DocumentHistory" 'PrefixI 'True) (S1 ('MetaSel ('Just "document") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DocumentID) :*: S1 ('MetaSel ('Just "history") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [DocumentHistoryItem])))

data DocumentHistoryItem Source #

An item in the Documents history. This represents a generic revision. This revision can either be a Tree or a TextElement revision.

Instances

Instances details
FromJSON DocumentHistoryItem Source # 
Instance details

Defined in Docs.DocumentHistory

ToJSON DocumentHistoryItem Source # 
Instance details

Defined in Docs.DocumentHistory

ToSchema DocumentHistoryItem Source # 
Instance details

Defined in Docs.DocumentHistory

Methods

declareNamedSchema :: Proxy DocumentHistoryItem -> Declare (Definitions Schema) NamedSchema