bunz-0.0.6: CLI tool to beautify JSON string.

Safe HaskellSafe
LanguageHaskell2010

Beautifier

Synopsis

Documentation

indent :: IndentationLevel -> Builder -> Builder Source #

firstString :: Builder -> Builder Source #

Extract the first string value starting from the front.

splitAtHead :: Builder -> (Builder, Builder) Source #

Split the given string at its head while honouring escaped string. Examples:

>>> splitAtHead "whatsup"
("w","hatsup")
>>> splitAtHead "\nyeay"
("\n","yeay")