-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use haskelldb
as a library?
#34
Comments
I suspect haskelldb is effectively unmaintained. You might like to try a library I wrote instead: Opaleye. |
I’m not keeping it up to date with GHC myself but glad to accept a PR. |
From what I understand the latest changes have it fixed? Based on diff $ git diff v2.2.4 -- src/Database/HaskellDB/BoundedList.hs
diff --git a/src/Database/HaskellDB/BoundedList.hs b/src/Database/HaskellDB/BoundedList.hs
index 63d05ee..846f68a 100644
--- a/src/Database/HaskellDB/BoundedList.hs
+++ b/src/Database/HaskellDB/BoundedList.hs
@@ -86,7 +86,6 @@ class Size n where
size :: n -> Int
class (Size a, Size b) => Less a b
-
class (Size a, Size b) => LessEq a b
instance (Size a) => LessEq a a
instance (Size a, Size b, Less a b) => LessEq a b
@@ -101,1277 +100,1277 @@ instance Less N0 N1
data N2 = N2
instance Size N2 where size _ = 2
instance Less N1 N2
-instance Less a N1 => Less a N2
+instance (Size a, Less a N1) => Less a N2
data N3 = N3
instance Size N3 where size _ = 3
instance Less N2 N3 So all it needs is to add a tag and publish it? |
Btw can you generate queries for other databases (MySQL, Redshift) besides PostgreSQL? |
After running
cabal init
I tried adding
haskelldb
to.cabal
file, e.g.But cannot
cabal build
The text was updated successfully, but these errors were encountered: