Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data JsonDecodeError = JsonDecodeError {}
- newtype YamlDecodeError = YamlDecodeError {}
- readJsonFile :: forall a r. FromJSON a => HasCallStack => Member (Error IOException) r => Member (Error JsonDecodeError) r => Member (Embed IO) r => Member Log r => FilePath -> Sem r a
- readYamlFile :: forall a r. FromJSON a => HasCallStack => Member (Error IOException) r => Member (Error JsonDecodeError) r => Member (Error YamlDecodeError) r => Member (Embed IO) r => Member Log r => FilePath -> Sem r a
Documentation
data JsonDecodeError #
Instances
newtype YamlDecodeError #
Instances
readJsonFile :: forall a r. FromJSON a => HasCallStack => Member (Error IOException) r => Member (Error JsonDecodeError) r => Member (Embed IO) r => Member Log r => FilePath -> Sem r a Source #
readYamlFile :: forall a r. FromJSON a => HasCallStack => Member (Error IOException) r => Member (Error JsonDecodeError) r => Member (Error YamlDecodeError) r => Member (Embed IO) r => Member Log r => FilePath -> Sem r a Source #
Read the filePath
file as YAML.