From: R. J. Fernández-M. <rfe...@cs...> - 2008-05-26 08:51:07
|
Hello! I have a table with the following schema: boats(bid int not null, bname string, color string) and I would like to perform the basic insert, update, delete functions on it. However, I've had a hard time figuring out how to correctly compose HaskellDB's functions. Following some code I've seen in this list (and a few blogs), I wrote these little functions: testInsert db = insert db boats ((bid << constant 1) # (bname << constant "Boat") # (color << constant "Purple")) main = do let db = mysqlConnect MySQLOptions { ... } testInsert db Unfortunatelly, the ghc compiler tells me that neither of boats, bid, bname, and color are visible. Am I missing something obvious? Thanks for your help! RJFM |