| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Data.Yaml.Marked.Decode
Contents
Synopsis
- decodeThrow :: MonadThrow m => (Marked Value -> Either String a) -> FilePath -> ByteString -> m a
- decodeAllThrow :: MonadThrow m => (Marked Value -> Either String a) -> FilePath -> ByteString -> m [a]
- decodeFileEither :: MonadIO m => (Marked Value -> Either String a) -> FilePath -> m (Either ParseException a)
- decodeAllFileEither :: MonadIO m => (Marked Value -> Either String a) -> FilePath -> m (Either ParseException [a])
- decodeFileWithWarnings :: MonadIO m => (Marked Value -> Either String a) -> FilePath -> m (Either ParseException (a, [Warning]))
- decodeAllFileWithWarnings :: MonadIO m => (Marked Value -> Either String a) -> FilePath -> m (Either ParseException ([a], [Warning]))
- data ParseException
- data YamlException
Documentation
Arguments
| :: MonadThrow m | |
| => (Marked Value -> Either String a) | |
| -> FilePath | Name of input being parsed |
| -> ByteString | |
| -> m a |
Arguments
| :: MonadThrow m | |
| => (Marked Value -> Either String a) | |
| -> FilePath | Name of input being parsed |
| -> ByteString | |
| -> m [a] |
decodeFileEither :: MonadIO m => (Marked Value -> Either String a) -> FilePath -> m (Either ParseException a) Source #
decodeAllFileEither :: MonadIO m => (Marked Value -> Either String a) -> FilePath -> m (Either ParseException [a]) Source #
decodeFileWithWarnings :: MonadIO m => (Marked Value -> Either String a) -> FilePath -> m (Either ParseException (a, [Warning])) Source #
decodeAllFileWithWarnings :: MonadIO m => (Marked Value -> Either String a) -> FilePath -> m (Either ParseException ([a], [Warning])) Source #
Exceptions
data ParseException #
Constructors
Instances
| Exception ParseException | |
Defined in Data.Yaml.Internal Methods toException :: ParseException -> SomeException # | |
| Show ParseException | |
Defined in Data.Yaml.Internal Methods showsPrec :: Int -> ParseException -> ShowS # show :: ParseException -> String # showList :: [ParseException] -> ShowS # | |
data YamlException #
Constructors
| YamlException String | |
| YamlParseException | problem, context, index, position line, position column |
Fields | |
Instances
| Exception YamlException | |
Defined in Text.Libyaml Methods toException :: YamlException -> SomeException # fromException :: SomeException -> Maybe YamlException # displayException :: YamlException -> String # | |
| Show YamlException | |
Defined in Text.Libyaml Methods showsPrec :: Int -> YamlException -> ShowS # show :: YamlException -> String # showList :: [YamlException] -> ShowS # | |