Copyright | (C) Frank Staals |
---|---|
License | see the LICENSE file |
Maintainer | Frank Staals |
Safe Haskell | None |
Language | GHC2021 |
Synopsis
- encodeYAML :: ToYAML a => a -> ByteString
- encodeYAMLFile :: ToYAML a => OsPath -> a -> IO ()
- decodeYAML :: FromYAML a => ByteString -> Either (Pos, String) a
- decodeYAMLFile :: FromYAML a => OsPath -> IO (Either (Pos, String) a)
- printYAML :: ToYAML a => a -> IO ()
- data Versioned a = Versioned Version a
- unversioned :: Versioned a -> a
Documentation
encodeYAML :: ToYAML a => a -> ByteString Source #
Write the output to yaml
decodeYAML :: FromYAML a => ByteString -> Either (Pos, String) a Source #
alias for decodeEither' from the YAML Package
decodeYAMLFile :: FromYAML a => OsPath -> IO (Either (Pos, String) a) Source #
alias for reading a yaml file
Data type for things that have a version
Instances
unversioned :: Versioned a -> a Source #
Unpack versioned data type.