Reputation: 7374
Im trying to understand how to work with SQL databases using Haskell and HDBC on my Mac.
To get HDBC working with Debian I can use the following setup:
sudo apt-get install sqlite3
sudo apt-get install libghc-hdbc-sqlite3-dev
cabal install HDBC sqlite HDBC-sqlite3
My questions are: How do I get and install libghc-hdbc-sqlite3-dev on a Mac? Why do I need libghc-hdbc-sqlite3-dev? Why can I not use cabal for libghc-hdbc-sqlite3-dev? Why do I need both sqlite and HDBC-sqlite3, is not sqlite a dependency for HDBC-sqlite3 and downloaded automatically?
Upvotes: 1
Views: 140
Reputation: 52039
I'm not sure you need to apt-get install libghc-hdbc-sqlite3-dev
.
Have a look at this page for a manifest of that Debian package. It looks like it just contains a compiled version of the HDBC-sqlite3
Haskell package, and you are already installing that with your cabal install ...
command.
Upvotes: 2