[Haskell-cafe] Re: haskelldb problem

Christian Maeder Christian.Maeder at dfki.de
Tue Mar 2 14:42:20 EST 2010


Documentation should be:
http://hackage.haskell.org/packages/archive/haskelldb/0.12/doc/html/Database-HaskellDB-DBSpec.html
http://hackage.haskell.org/packages/archive/haskelldb/0.12/doc/html/Database-HaskellDB-DBSpec-PPHelpers.html

assuming you have the haskelldb-0.12 package installed.

HTH Christian

Immanuel Normann schrieb:
> Hi,
> 
> I have problems with the usage of the DBSpec module. The following used
> to work a year ago:
> 
> testDB :: DBInfo
> testDB = makeDBSpec "testDB" (DBOptions False) [t1]
> 
> t1 :: TInfo
> t1 = makeTInfo "t1" [c1,c2]
> 
> c1 :: CInfo
> c1 = makeCInfo "c1" (IntT,False)
> c2 :: CInfo
> c2 = makeCInfo "c2" (StringT,False)
> 
> Now the problem is type error in (DBOptions False):
> 
> Couldn't match expected type `DBOptions'
>            against inferred type `Database.HaskellDB.DBSpec.
> PPHelpers.MakeIdentifiers
> 
> So my precise problem is the usage of that "MakeIdentifiers":
> 
> MakeIdentifiers   
>   moduleName :: String -> String   
>   identifier :: String -> String   
>   toType :: String -> String
> 
> Could someone please demonstrate how to use MakeIdentifiers reasonably
> e.g. for the above testDB? And more general: I cannot find uptodate
> documentation on haskelldb. Is there something around?
> 
> Thanks
> Immanuel
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe


More information about the Haskell-Cafe mailing list