Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype CountAPI mode = CountAPI {
- postCountsEp :: mode :- Post '[JSON] Counts
- type Error = Text
- data Counts = Counts {}
- data Message = Message Code Errors
- type Code = Integer
- data Query = Query {
- query_query :: QueryBool
- query_name :: Maybe [Scraper]
- data Count = Count {
- count_name :: Scraper
- count_count :: Maybe Int
- type Errors = [Error]
- data Scraper
- data QueryBool = QueryBool Text
- count :: Monad m => Query -> m Counts
- scrapers :: [Scraper]
Routes types
Instances
Generic (CountAPI mode) # | |
type Rep (CountAPI mode) # | |
Defined in Gargantext.API.Routes.Named.Count type Rep (CountAPI mode) = D1 ('MetaData "CountAPI" "Gargantext.API.Routes.Named.Count" "gargantext-0.0.7.1.5.3-inplace" 'True) (C1 ('MetaCons "CountAPI" 'PrefixI 'True) (S1 ('MetaSel ('Just "postCountsEp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (mode :- Post '[JSON] Counts)))) |
Re-exports
Instances
Arbitrary Counts # | |
FromJSON Counts # | |
ToJSON Counts # | |
Defined in Gargantext.API.Count | |
Generic Counts # | |
Show Counts # | |
Eq Counts # | |
ToSchema Counts # | |
Defined in Gargantext.API.Count | |
HasSwagger (WithCustomErrorScheme GargAPI) # | |
Defined in Gargantext.API.Routes | |
type Rep Counts # | |
Defined in Gargantext.API.Count |
Instances
Arbitrary Message # | |
FromJSON Message # | |
ToJSON Message # | |
Defined in Gargantext.API.Count | |
Generic Message # | |
Show Message # | |
Eq Message # | |
ToSchema Message # | |
Defined in Gargantext.API.Count | |
type Rep Message # | |
Defined in Gargantext.API.Count type Rep Message = D1 ('MetaData "Message" "Gargantext.API.Count" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "Message" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Code) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Errors))) |
Query | |
|
Instances
Arbitrary Query # | |
FromJSON Query # | |
ToJSON Query # | |
Defined in Gargantext.API.Count | |
Generic Query # | |
Show Query # | |
Eq Query # | |
ToSchema Query # | |
Defined in Gargantext.API.Count | |
HasSwagger (WithCustomErrorScheme GargAPI) # | |
Defined in Gargantext.API.Routes | |
type Rep Query # | |
Defined in Gargantext.API.Count type Rep Query = D1 ('MetaData "Query" "Gargantext.API.Count" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "Query" 'PrefixI 'True) (S1 ('MetaSel ('Just "query_query") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 QueryBool) :*: S1 ('MetaSel ('Just "query_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Scraper])))) |
Count | |
|
Instances
FromJSON Count # | |
ToJSON Count # | |
Defined in Gargantext.API.Count | |
Generic Count # | |
Show Count # | |
Eq Count # | |
ToSchema Count # | |
Defined in Gargantext.API.Count | |
type Rep Count # | |
Defined in Gargantext.API.Count type Rep Count = D1 ('MetaData "Count" "Gargantext.API.Count" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "Count" 'PrefixI 'True) (S1 ('MetaSel ('Just "count_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Scraper) :*: S1 ('MetaSel ('Just "count_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))) |
Instances
Arbitrary Scraper # | |
FromJSON Scraper # | |
ToJSON Scraper # | |
Defined in Gargantext.API.Count | |
Bounded Scraper # | |
Enum Scraper # | |
Generic Scraper # | |
Show Scraper # | |
Eq Scraper # | |
ToSchema Scraper # | |
Defined in Gargantext.API.Count | |
type Rep Scraper # | |
Defined in Gargantext.API.Count type Rep Scraper = D1 ('MetaData "Scraper" "Gargantext.API.Count" "gargantext-0.0.7.1.5.3-inplace" 'False) ((C1 ('MetaCons "Pubmed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Hal" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "IsTex" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Isidore" 'PrefixI 'False) (U1 :: Type -> Type))) |