[Haskell-cafe] Could someone give me a sample about haskelldb?

Magicloud Magiclouds magicloud.magiclouds at gmail.com
Fri Jun 19 01:24:13 EDT 2009


Hi,
  I am learning it following the very few documents on its site. Well,
I failed, with the import modules, I still cannot compile it. The
error is on "T.*".

 6 import Database.HaskellDB.HDBC.SQLite3
 7 import Database.HaskellDB
 8 import Database.HaskellDB.DBSpec
 9 import Database.HaskellDB.DBSpec.PPHelpers
10 import Database.HaskellDB.Query

48     q = do
49       t <- table $ Table "notes" []
50       restrict ( t!T.done .<>. False )
51       r <- project ( T.subject << t!T.subject )
52       order [ desc r T.priority
53             , desc r T.dt ]
54       return r
-- 
竹密岂妨流水过
山高哪阻野云飞


More information about the Haskell-Cafe mailing list