This is a fork of the official hasql-th library that takes a different path for type annotations.
Key difference:
- Does NOT support the
?
suffixes for types to annotateNULL
mapping toMaybe
. - All core types by default are
Maybe
. - It supports custom types that may not be
Maybe
. - It does NOT need to modify the SQL (Due to the
?
suffix not being supported by postgresql) and sends the original SQL string to the PG server, removing the SQL generation from the critical correctness pass. - It uses a fork of postgresql-syntax with support
for non standard
?
type suffixes removed. - Rename to
Hasql.MTH
namespace.
This library builds on the extensive work of Nikita Volkow and would not exists without his entire hasql ecosystem.