[Haskell-cafe] mysql (hsql-mysql-1.7) on Linux with GHC 8.3 - cabal
anton.tayanovskyy at gmail.com
Thu Oct 2 10:37:49 EDT 2008
I had some difficulty building hsql and hsql-mysql (native driver)
packages under GHC 8.3 on Fedora 9. Namely, they do not install with
cabal install, because of a few API changes. Is this considered all
right as GHC 8.3 is still experimental, or should the packages be
updated? If so, can somebody please do it. I love when things just
work with cabal install!
The problem looks very basic -- just some Cabal file
incompatibilities. However I am not experienced with the Cabal build
process, so I'll just write what I did to get it to work on my
platform, maybe it will help someone.
== hsql.cabal ==
author: Krasimir Angelov <ka2_mail at yahoo.com>
description: Simple library for database access from Haskell.
build-depends: base, old-time
extensions: ForeignFunctionInterface, TypeSynonymInstances, CPP,
== hsql-mysql.cabal ==
author: Krasimir Angelov <kr.angelov at gmail.com>
description: MySQL driver for HSQL.
build-depends: base, hsql, Cabal, old-time
extensions: ForeignFunctionInterface, CPP
include-dirs: Database/HSQL, /usr/include/mysql
== hsql-mysql*/Setup.lhs ==
main = defaultMain
Of course this hsql-mysql.cabal should not mention Fedora-specific
locations as /usr/lib/mysql and /usr/include/mysql but I don't know
how to make that generic. The original version had a big custom
Setup.lhs file which wouldn't compile with the new Cabal and which I
couldn't tweak myself.
More information about the Haskell-Cafe