Add type synonims to to beter explain things that used to be Text

This commit is contained in:
Ruslan Talpa
2015-11-16 10:40:46 +02:00
parent 3152b24d3f
commit 75646247f2
3 changed files with 46 additions and 38 deletions
+5 -2
View File
@@ -13,10 +13,13 @@ data DbStructure = DbStructure {
} deriving (Show, Eq)
type Schema = Text
type TableName = Text
type SqlQuery = Text
type SqlFragment = Text
data Table = Table {
tableSchema :: Schema
, tableName :: Text
, tableName :: TableName
, tableInsertable :: Bool
} deriving (Show, Ord)
@@ -54,7 +57,7 @@ data OrderTerm = OrderTerm {
data QualifiedIdentifier = QualifiedIdentifier {
qiSchema :: Schema
, qiName :: Text
, qiName :: TableName
} deriving (Show, Eq)