-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | CLI option parsers for NetSpider objects -- -- CLI option parsers for NetSpider objects. See NetSpider.CLI. @package net-spider-cli @version 0.2.0.7 -- | This module defines CLI option parser for Query for snapshot -- graphs. module NetSpider.CLI.Snapshot -- | CLI option parser for Snapshot Query. Use -- makeSnapshotQuery to convert CLISnapshotQuery to -- Query. parserSnapshotQuery :: SnapshotConfig n -> Parser (CLISnapshotQuery n) -- | Make a Query by applying CLISnapshotQuery to the base -- query. The CLISnapshotQuery overwrites startsFrom and -- timeInterval fields. -- -- It can fail to convert CLISnapshotQuery to Query fields. -- In that case, the result is Left with a human-readable error -- message. makeSnapshotQuery :: Query n na fla sla -> CLISnapshotQuery n -> Either String (Query n na fla sla) -- | Configuration for option parser for Snapshot Query. data SnapshotConfig n SnapshotConfig :: ReadM n -> Bool -> SnapshotConfig n -- | Parser that reads a CLI option to generate a node ID. [nodeIDReader] :: SnapshotConfig n -> ReadM n -- | If True, the startsFrom field is read from CLI -- arguments. If False, arguments are not parsed. In either case, -- "-s" option is always parsed to generate startsFrom. [startsFromAsArguments] :: SnapshotConfig n -> Bool -- | Settings for Snapshot Query parsed from the command-line -- options. You can make Query by makeSnapshotQuery -- function. data CLISnapshotQuery n instance GHC.Classes.Ord n => GHC.Classes.Ord (NetSpider.CLI.Snapshot.CLISnapshotQuery n) instance GHC.Classes.Eq n => GHC.Classes.Eq (NetSpider.CLI.Snapshot.CLISnapshotQuery n) instance GHC.Show.Show n => GHC.Show.Show (NetSpider.CLI.Snapshot.CLISnapshotQuery n) -- | This module define CLI option parser for SpiderConfig. module NetSpider.CLI.Spider -- | Command-line option parser for Config of Spider. parserSpiderConfig :: Parser (SpiderConfig n na fla) -- | Config of the Spider. type SpiderConfig = Config -- | This module defines CLI option parsers for NetSpider objects, such as -- configuration for Spider object and a query for a snapshot graph. The -- option parsers are based on Parser from -- Options.Applicative (optparse-applicative package), so you can -- easily integrade those parsers into the CLI option parser of your own -- executable program. module NetSpider.CLI