mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-12-13 17:32:35 +03:00
Remove redundant syntax elements in doc examples.
This commit is contained in:
parent
1105c7b235
commit
7d33e26f44
@ -13,7 +13,7 @@ connect :: IO Connection
|
||||
connect = connectPostgreSQL "dbname=testdb"
|
||||
|
||||
defineTable :: [(String, TypeQ)] -> String -> String -> [ConName] -> Q [Dec]
|
||||
defineTable tmap scm tbl derives = do
|
||||
defineTable tmap scm tbl derives =
|
||||
defineTableFromDB
|
||||
connect
|
||||
(driverPostgreSQL { typeMap = tmap })
|
||||
|
@ -34,7 +34,7 @@ import DataSource (connect)
|
||||
import Database.HDBC.Record.Query (runQuery)
|
||||
import Database.HDBC.Session (withConnectionIO, handleSqlError')
|
||||
|
||||
allAccount :: Relation () (Account)
|
||||
allAccount :: Relation () Account
|
||||
allAccount =
|
||||
relation
|
||||
[ a
|
||||
|
Loading…
Reference in New Issue
Block a user