This repository includes a joined query generator based on typefull relational algebra, and mapping tools between SQL values list and Haskell record type.
233
stars
36
forks
source link
Feature: Support MySQL tinyint(1) type conversion to Bool #41
Right now, when we do type conversion between column types and Haskell types, we only have access to the name of the type (for example, "tinyint"), and not the entire definition of the type (for example, "tinyint(1)") It would be nice to be able to use the entire definition of the type, because you might want to do something different with the type based on the M, D, or fsp parts of the type definition described here: http://dev.mysql.com/doc/refman/5.7/en/data-types.html For example, it would be nice to convert tinyint(1) to Bool.
Right now, when we do type conversion between column types and Haskell types, we only have access to the name of the type (for example, "tinyint"), and not the entire definition of the type (for example, "tinyint(1)") It would be nice to be able to use the entire definition of the type, because you might want to do something different with the type based on the
M
,D
, orfsp
parts of the type definition described here: http://dev.mysql.com/doc/refman/5.7/en/data-types.html For example, it would be nice to convert tinyint(1) to Bool.