Fix all hlint errors except for pattern error

This commit is contained in:
Jacky Hu
2016-06-18 10:18:43 +08:00
parent 4b0c5cb36f
commit 74ea4aba37
3 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -220,13 +220,13 @@ app dbStructure conf apiRequest =
where
toTableInfo :: [Table] -> [(Table, [Column], [Text])]
toTableInfo ts = map (\t ->
toTableInfo = map (\t ->
let tSchema = tableSchema t
tTable = tableName t
cols = filter (filterCol tSchema tTable) $ dbColumns dbStructure
pkeys = map pkName $ filter (filterPk tSchema tTable) allPrKeys
in
(t, cols, pkeys)) ts
(t, cols, pkeys))
encodeApi :: [(Table, [Column], [Text])] -> BL.ByteString
encodeApi ti = encode $ apiSpec ti host port
host = configHost conf