Safe Haskell | None |
---|---|
Language | Haskell2010 |
Gerrit.Data
Description
This module contains the gerrit data type
Synopsis
- newtype GerritVersion = GerritVersion Text
- data GerritQuery
- data GerritChangeStatus
- data GerritChange = GerritChange {}
- data GerritRevision = GerritRevision {}
- newtype GerritLabel = GerritLabel (Map GerritLabelVote GerritAccount)
- newtype GerritAccount = GerritAccount {}
- data GerritLabelVote
- data GerritDetailedLabelVote = GerritDetailedLabelVote {
- value :: Maybe Int
- account_id :: Int
- data GerritDetailedLabel = GerritDetailedLabel {}
- data ReviewResult = ReviewResult {}
- data ReviewInput = ReviewInput {}
- queryText :: GerritQuery -> Text
Main data types
newtype GerritVersion Source #
Constructors
GerritVersion Text |
Instances
Show GerritVersion Source # | |
Defined in Gerrit.Data Methods showsPrec :: Int -> GerritVersion -> ShowS # show :: GerritVersion -> String # showList :: [GerritVersion] -> ShowS # | |
Generic GerritVersion Source # | |
Defined in Gerrit.Data Associated Types type Rep GerritVersion :: Type -> Type # | |
FromJSON GerritVersion Source # | |
Defined in Gerrit.Data Methods parseJSON :: Value -> Parser GerritVersion # parseJSONList :: Value -> Parser [GerritVersion] # | |
type Rep GerritVersion Source # | |
Defined in Gerrit.Data type Rep GerritVersion = D1 ('MetaData "GerritVersion" "Gerrit.Data" "gerrit-0.0.0.0-HeaHw1VGRFr3asNCEgawPp" 'True) (C1 ('MetaCons "GerritVersion" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
data GerritQuery Source #
Constructors
Status GerritChangeStatus | |
Owner Text | |
CommitMessage Text | |
Project Text | |
ChangeId Text |
data GerritChangeStatus Source #
Instances
data GerritChange Source #
Constructors
GerritChange | |
Instances
data GerritRevision Source #
Constructors
GerritRevision | |
Instances
Show GerritRevision Source # | |
Defined in Gerrit.Data Methods showsPrec :: Int -> GerritRevision -> ShowS # show :: GerritRevision -> String # showList :: [GerritRevision] -> ShowS # | |
Generic GerritRevision Source # | |
Defined in Gerrit.Data Associated Types type Rep GerritRevision :: Type -> Type # Methods from :: GerritRevision -> Rep GerritRevision x # to :: Rep GerritRevision x -> GerritRevision # | |
FromJSON GerritRevision Source # | |
Defined in Gerrit.Data Methods parseJSON :: Value -> Parser GerritRevision # parseJSONList :: Value -> Parser [GerritRevision] # | |
type Rep GerritRevision Source # | |
Defined in Gerrit.Data |
newtype GerritLabel Source #
Constructors
GerritLabel (Map GerritLabelVote GerritAccount) |
Instances
Show GerritLabel Source # | |
Defined in Gerrit.Data Methods showsPrec :: Int -> GerritLabel -> ShowS # show :: GerritLabel -> String # showList :: [GerritLabel] -> ShowS # | |
Generic GerritLabel Source # | |
Defined in Gerrit.Data Associated Types type Rep GerritLabel :: Type -> Type # | |
FromJSON GerritLabel Source # | |
Defined in Gerrit.Data | |
type Rep GerritLabel Source # | |
Defined in Gerrit.Data type Rep GerritLabel = D1 ('MetaData "GerritLabel" "Gerrit.Data" "gerrit-0.0.0.0-HeaHw1VGRFr3asNCEgawPp" 'True) (C1 ('MetaCons "GerritLabel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map GerritLabelVote GerritAccount)))) |
newtype GerritAccount Source #
Constructors
GerritAccount | |
Fields |
Instances
Show GerritAccount Source # | |
Defined in Gerrit.Data Methods showsPrec :: Int -> GerritAccount -> ShowS # show :: GerritAccount -> String # showList :: [GerritAccount] -> ShowS # | |
Generic GerritAccount Source # | |
Defined in Gerrit.Data Associated Types type Rep GerritAccount :: Type -> Type # | |
FromJSON GerritAccount Source # | |
Defined in Gerrit.Data Methods parseJSON :: Value -> Parser GerritAccount # parseJSONList :: Value -> Parser [GerritAccount] # | |
type Rep GerritAccount Source # | |
Defined in Gerrit.Data type Rep GerritAccount = D1 ('MetaData "GerritAccount" "Gerrit.Data" "gerrit-0.0.0.0-HeaHw1VGRFr3asNCEgawPp" 'True) (C1 ('MetaCons "GerritAccount" 'PrefixI 'True) (S1 ('MetaSel ('Just "unused_account_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) |
data GerritLabelVote Source #
Constructors
REJECTED | |
APPROVED | |
DISLIKED | |
RECOMMENDED |
Instances
data GerritDetailedLabelVote Source #
Constructors
GerritDetailedLabelVote | |
Fields
|
Instances
data GerritDetailedLabel Source #
Constructors
GerritDetailedLabel | |
Fields
|
Instances
data ReviewResult Source #
Instances
data ReviewInput Source #
Instances
Convenient functions
queryText :: GerritQuery -> Text Source #
Convert a GerritQuery object to the search terms