Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains functions for pretty printing toml
types.
- prettyToml :: TOML -> Text
- prettyTomlInd :: Int -> Text -> TOML -> Text
Documentation
prettyToml :: TOML -> Text Source #
For example, this
TOML { tomlPairs = HashMap.fromList [(Key "title", String "TOML example")] , tomlTables = HashMap.fromList [( TableId (NonEmpty.fromList ["example", "owner"]) , TOML { tomlPairs = HashMap.fromList [(Key "name", String Kowainik)] , tomlTables = mempty , tomlTableArrays = mempty } )] , tomlTableArrays = mempty }
will be translated to this
title = "TOML Example" [example.owner] name = Kowainik