bunz-0.0.5: CLI tool to beautify JSON string.

Safe HaskellSafe
LanguageHaskell2010

Beautifier

Synopsis

Documentation

indent :: IndentationLevel -> Text -> Text Source #

firstString :: Text -> Text Source #

Extract the first string value starting from the front.

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

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

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