data-basic-0.3.0.0: A database library with a focus on ease of use, type safety and useful error messages

Copyright(c) Nikola Henezi Luka Horvat
LicenseMIT
Maintainernikola@henezi.com, luka.horvat9@gmail.com
Safe HaskellNone
LanguageHaskell2010

Internal.Data.Basic.TH.SqlToHsTypes

Description

Conversion between Postgres types and haskell datatypes. As a starting point, fromField from Database.PostgreSQL.Simple.FromField is used. If you need support for additional datatypes, please open an issue (https:/gitlab.comhaskell-hr/basic) or email maintainers

Synopsis

Documentation

toHsType :: Throws ParseError m => TypeName -> m (Type, [ColumnConstraint]) Source #

Conversion between TypeName to haskell Type. TypeName is used internaly by HsSqlPpp