Closed wochinge closed 9 years ago
Thanks for the report. Is this a regression from the new snaplet-sqlite-simple-0.4.8.3 version, ie. was it working before?
The snaplet-sqlite-simple example app was building fine on GHC 7.6.3 on Travis: https://travis-ci.org/nurpax/snaplet-sqlite-simple/builds/66760603.
Did you try building in a clean sandbox? Have you recently updated with "cabal update"?
I suppose either the snaplet code doesn't (anymore) build on GHC 7.8 or later, or you have some different versions of some dependent libraries. Do you see any notable library version differences if you compare your locally installed versions against the ones picked up in https://travis-ci.org/nurpax/snaplet-sqlite-simple/builds/66760603?
Are you able to reproduce this in an isolated gist? Would be easier for me to take a look.
Hi,
It worked before I updated to 0.4.8.3 aside from some strange random server time outs. But that's a different topic :) I used a clean sandbox and I updated cabel in order to get snaplet-sqlite-simple 0.4.8.3. My dependencies are a bit different. So I am using the latest snap (0.14.0.5), but I have to use snap core 0.9.6.3 instead of 0.9.7.0 because of this issue: https://github.com/snapframework/snap-core/issues/228. Also I am using the newer version 0.4.9.0 of sqlite-simple (instead of 0.4.8.0).
Edit: I am also using MonadCatchIO-transformers-0.3.1.3.
I tried to create a small gist of my problem: https://gist.github.com/wochinge/f84dc4f8fa8672827443
Thanks for your help!
Hi @wochinge, I think the problem is in your use of monads-tf
package for monad transformers. If I switch that package to mtl
, your gist builds fine.
diff --git a/test.cabal b/test.cabal
index 7dea39a..990ca63 100644
--- a/test.cabal
+++ b/test.cabal
@@ -25,7 +25,7 @@ library
exposed-modules: Application
build-depends:
base,
- monads-tf,
+ mtl,
snap == 0.14.0.5,
blaze-builder,
snap-core == 0.9.6.3,
I've never actually come across monads-tf
whereas mtl
seems to be pretty common. The mtl
package is one of the dependencies for snap
so it seems like it's a pretty safe bet to use the same in apps too.
I have no idea why this build problem arose in the context of my snaplet-sqlite-simple
update though. :)
Thank you very much! It works now! Then nothing stops me from upgrading :-) I guess I added the dependeny a bit too fast when cabal complained ;)
Hi there,
I am trying the new version 0.4.8.3 and I'm getting an error while I am building my project. The error is located for the HasSqlite instance. I added the import "Control.Monad.State" as it is shown in the example project, but cabal throws the error
My code is the following:
Cabal-version: 1.18.05 using 1.18.1.3 of Cabal library GHC: 7.8.3