Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- detectAdapter :: MonadIO m => Value -> Path b Dir -> m (Either DetectionFailure StandardAdapters)
- detectAdapterThrow :: MonadIO m => Value -> Path b Dir -> m StandardAdapters
- detectFromDir :: MonadIO m => Path b Dir -> m (Either DetectionFailure StandardAdapters)
- detectFromDomainConfig :: Value -> Either DetectionFailure StandardAdapters
- data DetectionFailure
Documentation
detectAdapter :: MonadIO m => Value -> Path b Dir -> m (Either DetectionFailure StandardAdapters) Source #
detectAdapterThrow :: MonadIO m => Value -> Path b Dir -> m StandardAdapters Source #
detectFromDir :: MonadIO m => Path b Dir -> m (Either DetectionFailure StandardAdapters) Source #
Searching for stack.yaml and cabal.project, chooses that one if exactly one of them is found.
detectFromDomainConfig :: Value -> Either DetectionFailure StandardAdapters Source #
Detects backend from dependency-domains.yml.
If exactly one of cabal
or stack
section is present, prefer it.
data DetectionFailure Source #
BothCabalAndStackSectionsPresentInConfigYaml | |
BothCabalProjectAndStackYamlFound | |
NeitherCabalProjectNorStackYamlFound | |
NoCustomConfigSpecified | |
MalformedConfigYaml Value |