Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- type RawTemplate = ByteString
- type Template = [Either Int ByteString]
- parseTemplate :: MonadThrow m => RawTemplate -> m Template
- instantiateTemplate :: forall m. MonadThrow m => [ByteString] -> Template -> m ShellCommand
Documentation
type RawTemplate = ByteString Source #
A RawTemplate
represents a shell command, possibly containing capture
groups, e.g. "ghc 0"
parseTemplate :: MonadThrow m => RawTemplate -> m Template Source #
instantiateTemplate :: forall m. MonadThrow m => [ByteString] -> Template -> m ShellCommand Source #