Portability | H98 |
---|---|
Stability | experimental |
Maintainer | Douglas Burke |
I anticipate that this module may be used as a starting point for creating new programs rather then as a complete program in its own right. The functionality built into this code is selected with a view to testing the Haskell modules for handling RDF rather than for performing any particular application processing (though development as a tool with some broader utility is not ruled out).
This module is likely to be moved to the Swish module.
- data SwishStatus
- data SwishAction
- runSwish :: String -> IO ExitCode
- runSwishActions :: [SwishAction] -> IO SwishStatus
- displaySwishHelp :: IO ()
- splitArguments :: [String] -> ([String], [String])
- validateCommands :: [String] -> Either (String, SwishStatus) [SwishAction]
Documentation
data SwishStatus Source
Status of the processor
SwishSuccess | successful run |
SwishGraphCompareError | graphs do not compare |
SwishDataInputError | input data problem (ie format/syntax) |
SwishDataAccessError | data access error |
SwishArgumentError | command-line argument error |
SwishExecutionError | error executing a Swish script |
data SwishAction Source
Represent a Swish action.
runSwish :: String -> IO ExitCodeSource
Parse and run the given string as if given at the command line. The "quiet", "version" and "help" options are ignored.
runSwishActions :: [SwishAction] -> IO SwishStatusSource
Execute the given set of actions.
displaySwishHelp :: IO ()Source
Write out the help for Swish
splitArguments :: [String] -> ([String], [String])Source
Return any arguments that need processing immediately, namely the "help", "quiet" and "version" options.
validateCommands :: [String] -> Either (String, SwishStatus) [SwishAction]Source
Given a list of command-line arguments create the list of actions to perform or a string and status value indicating an input error.