Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ExternalAPIs
- externalAPIs :: [ExternalAPIs]
- data ScraperInput = ScraperInput {
- _scin_spider :: !Text
- _scin_query :: !(Maybe Text)
- _scin_user :: !Text
- _scin_corpus :: !Int
- _scin_report_every :: !(Maybe Int)
- _scin_limit :: !(Maybe Int)
- _scin_local_file :: !(Maybe Text)
- _scin_count_only :: !(Maybe Bool)
- scin_user :: Lens' ScraperInput Text
- scin_spider :: Lens' ScraperInput Text
- scin_report_every :: Lens' ScraperInput (Maybe Int)
- scin_query :: Lens' ScraperInput (Maybe Text)
- scin_local_file :: Lens' ScraperInput (Maybe Text)
- scin_limit :: Lens' ScraperInput (Maybe Int)
- scin_count_only :: Lens' ScraperInput (Maybe Bool)
- scin_corpus :: Lens' ScraperInput Int
- data ScraperEvent = ScraperEvent {
- _scev_message :: !(Maybe Text)
- _scev_level :: !(Maybe Text)
- _scev_date :: !(Maybe Text)
- data JobLog = JobLog {
- _scst_succeeded :: !(Maybe Int)
- _scst_failed :: !(Maybe Int)
- _scst_remaining :: !(Maybe Int)
- _scst_events :: !(Maybe [ScraperEvent])
- scst_succeeded :: Lens' JobLog (Maybe Int)
- scst_remaining :: Lens' JobLog (Maybe Int)
- scst_failed :: Lens' JobLog (Maybe Int)
- scst_events :: Lens' JobLog (Maybe [ScraperEvent])
- noJobLog :: JobLog
- type ScrapersEnv = JobEnv JobLog JobLog
- type ScraperAPI = AsyncJobsAPI JobLog ScraperInput JobLog
- type AsyncJobs event ctI input output = AsyncJobsAPI' 'Unsafe 'Safe ctI '[JSON] Maybe event input output
Documentation
data ExternalAPIs #
Main Types TODO IsidoreAuth
Instances
externalAPIs :: [ExternalAPIs] #
data ScraperInput #
ScraperInput | |
|
Instances
scin_query :: Lens' ScraperInput (Maybe Text) #
scin_limit :: Lens' ScraperInput (Maybe Int) #
data ScraperEvent #
ScraperEvent | |
|
Instances
JobLog | |
|
Instances
scst_events :: Lens' JobLog (Maybe [ScraperEvent]) #
type ScrapersEnv = JobEnv JobLog JobLog #
type ScraperAPI = AsyncJobsAPI JobLog ScraperInput JobLog #
type AsyncJobs event ctI input output = AsyncJobsAPI' 'Unsafe 'Safe ctI '[JSON] Maybe event input output #
Orphan instances
ToParamSchema Limit # | |
toParamSchema :: forall (t :: SwaggerKind Type). Proxy Limit -> ParamSchema t # | |
ToParamSchema Offset # | |
toParamSchema :: forall (t :: SwaggerKind Type). Proxy Offset -> ParamSchema t # | |
ToSchema URL # | |
Arbitrary a => Arbitrary (JobOutput a) # | |
Arbitrary a => Arbitrary (JobStatus 'Safe a) # | |