Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- encodeYaml :: ToJSON a => a -> ByteString
- printYaml :: ToJSON a => a -> IO ()
- decodeYaml :: FromJSON a => ByteString -> Either ParseException a
- decodeYamlFile :: FromJSON a => FilePath -> IO (Either ParseException a)
Documentation
encodeYaml :: ToJSON a => a -> ByteString Source #
Write the output to yaml
decodeYaml :: FromJSON a => ByteString -> Either ParseException a Source #
alias for decodeEither' from the Yaml Package
decodeYamlFile :: FromJSON a => FilePath -> IO (Either ParseException a) Source #
alias for reading a yaml file