Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
module Data.Yaml
module Data.Yaml.Pretty
class ToJSON a => ToPrettyYaml a where Source #
fieldOrder :: a -> [Text] Source #
dropNull :: a -> Bool Source #
toPrettyYaml :: a -> ByteString Source #
encodeFilePretty :: MonadIO m => ToPrettyYaml a => FilePath -> a -> m () Source #
displayPrettyYaml :: ToPrettyYaml a => a -> Utf8Builder Source #
decodeFileThrow :: (MonadIO m, FromJSON c, MonadThrow m) => FilePath -> m c Source #
decodeFileThrowLogged :: (MonadReader env m, MonadThrow m, MonadIO m, HasLogFunc env, FromJSON b, ToPrettyYaml b, Typeable b) => FilePath -> m b Source #
encodeFilePrettyLogged :: (MonadReader env m, MonadThrow m, MonadIO m, HasLogFunc env, ToPrettyYaml b, Typeable b) => FilePath -> b -> m () Source #