Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Haskell DB recommendations? [closed]

There is a lot of databases, but I feel something different needed for Haskell. Like Erlang has it's own DB, Mnesia. Please recommend some good DBs for Haskell.

like image 940
eonil Avatar asked Feb 13 '11 12:02

eonil


3 Answers

There are various frameworks for Haskell available, HDBC being the most popular.

HDBC is the database abstraction library, which allows you to use many popular databases, even Oracle or DB2. See Chapter 21. Using Databases in Real World Haskell.

like image 62
YasirA Avatar answered Nov 06 '22 11:11

YasirA


I would advise you to choose the database depending on the type of data you want to store in it, rather than the language your system is implemented in.

Of course, this presupposes that bindings for the database exist in the language.

like image 32
Nickolay Kolev Avatar answered Nov 06 '22 12:11

Nickolay Kolev


Since the question mentions Mnesia, I'll mention Haskell's equivalent: AcidState. It's a fast and flexible nosql database written in Haskell that has support for representation of native and user-defined Haskell types (that link shows you some quick how-tos, including implementing a hello-world blog).

There's more recent documentation on their wiki, and I've personally used it here in the implementation of a small web app.

like image 7
Inaimathi Avatar answered Nov 06 '22 11:11

Inaimathi