[Haskell-beginners] "reusable" data in Haskell

John Velman velman at cox.net
Thu Dec 3 22:52:49 EST 2009


In prolog, one can create a database of facts and predicates, which,
depending on the prolog (AFAIK) can be 'compiled' and loaded quickly.

How does one do something comparable in Haskell?

I guess I have in mind something like a function that accesses the data
with a key.  And ideally, the data should itself be able to contain
functions.

I know there is a hash table library, and interfaces to databases like
postgresql.  If using hash table, is there a way to 'pickle' the hash
table, and unpickle it?

I'd be happy to have some pointers to someplace that this has been done (or
some documentation on how to do it.

Thanks,

John Velman


More information about the Beginners mailing list