gotyno-hs-1.1.0: A type definition compiler supporting multiple output languages.
Safe HaskellNone
LanguageHaskell2010

Gotyno.Helpers

Synopsis

Documentation

newtype LiteralString Source #

Used for a more explicit style in toJSON instances. It also means we don't have to add type annotations after the value.

Constructors

LiteralString Text 

newtype StringEncodedInteger Source #

Used to encode Integer ({I,U}{64,128}) values, because there are ecosystems where these cannot be decoded properly without having them come in as strings in transit.

checkEqualTo :: (Eq a, Show a) => a -> a -> Parser a Source #

Checks that a value matches an expectation, used to check literals.