guardian-0.4.0.0: The border guardian for your package dependencies
Safe HaskellSafe-Inferred
LanguageHaskell2010

Development.Guardian.Graph.Adapter.Detection

Synopsis

Documentation

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 #

Instances

Instances details
Exception DetectionFailure Source # 
Instance details

Defined in Development.Guardian.Graph.Adapter.Detection

Generic DetectionFailure Source # 
Instance details

Defined in Development.Guardian.Graph.Adapter.Detection

Associated Types

type Rep DetectionFailure :: Type -> Type #

Show DetectionFailure Source # 
Instance details

Defined in Development.Guardian.Graph.Adapter.Detection

Eq DetectionFailure Source # 
Instance details

Defined in Development.Guardian.Graph.Adapter.Detection

Ord DetectionFailure Source # 
Instance details

Defined in Development.Guardian.Graph.Adapter.Detection

type Rep DetectionFailure Source # 
Instance details

Defined in Development.Guardian.Graph.Adapter.Detection

type Rep DetectionFailure = D1 ('MetaData "DetectionFailure" "Development.Guardian.Graph.Adapter.Detection" "guardian-0.4.0.0-1i0KmpldsqDJPVBdForgqe" 'False) ((C1 ('MetaCons "BothCabalAndStackSectionsPresentInConfigYaml" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BothCabalProjectAndStackYamlFound" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NeitherCabalProjectNorStackYamlFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NoCustomConfigSpecified" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MalformedConfigYaml" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value)))))