| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Unison.Codebase.Transcript.Runner
Description
Execute transcripts.
Synopsis
- data Error
- data Config = Config {}
- defaultConfig :: Config
- testConfig :: FilePath -> Config
- type Runner = String -> ByteString -> Codebase IO Symbol Ann -> IO (Either Error Transcript)
- withRunner :: MonadUnliftIO m => Config -> Verbosity -> UCMVersion -> (Runner -> m r) -> m r
Documentation
Constructors
| ParseError (ParseErrorBundle Text Void) | |
| RunFailure Transcript | |
| PortBindingFailure | |
| Exception SomeException |
Instances
| Exception Error Source # | |
Defined in Unison.Codebase.Transcript.Runner Methods toException :: Error -> SomeException # fromException :: SomeException -> Maybe Error # displayException :: Error -> String # backtraceDesired :: Error -> Bool # | |
| Show Error Source # | |
defaultConfig :: Config Source #
A reasonable set of defaults to use.
- render transcript errors at a width of 65 chars
- use
$FZF_PATH - use the default credentials path
testConfig :: FilePath -> Config Source #
Arguments
| = String | The name of the transcript to run. |
| -> ByteString | The contents of the transcript to run. |
| -> Codebase IO Symbol Ann | |
| -> IO (Either Error Transcript) |
Arguments
| :: MonadUnliftIO m | |
| => Config | Whether to treat this transcript run as a transcript test, which will try to make output deterministic |
| -> Verbosity | |
| -> UCMVersion | |
| -> (Runner -> m r) | |
| -> m r |