palmik / snaplet-mongodb-minimalistic Goto Github PK
View Code? Open in Web Editor NEWMinimalistic MongoDB Snaplet.
Home Page: http://hackage.haskell.org/package/snaplet-mongodb-minimalistic
License: BSD 3-Clause "New" or "Revised" License
Minimalistic MongoDB Snaplet.
Home Page: http://hackage.haskell.org/package/snaplet-mongodb-minimalistic
License: BSD 3-Clause "New" or "Revised" License
Building this package fails with
can't find source for Snap/Snaplet/MongoDB/Internal in src
After removing
Other-modules:
Snap.Snaplet.MongoDB.Internal
from the cabal file, I could build the package.
Cannot install snaplet-mongodb-minimalistic because I get a build error:
$ cabal install
Resolving dependencies...
Configuring mongoDB-1.2.0...
Building mongoDB-1.2.0...
Preprocessing library mongoDB-1.2.0...
ย
Database\MongoDB\Admin.hs:34:8:
Could not find module `Data.UString'
Perhaps you meant Data.String (from base)
Use -v to see a list of the files searched for.
cabal.exe: Error: some packages failed to install:
my-website-0.2 depends on mongoDB-1.2.0 which failed to install.
mongoDB-1.2.0 failed during the building phase. The exception was:
ExitFailure 1
snaplet-mongodb-minimalistic-0.0.6.4 depends on mongoDB-1.2.0 which failed to
install.
Any tips?
your cabal file still references the old version of snap
In the example1 Site.hs:
https://github.com/Palmik/snaplet-mongodb-minimalistic/blob/master/examples/example1/src/Site.hs
on the line:
d <- nestSnaplet "database" database $ mongoDBInit 10 (host "127.0.0.1") "Snaplet-MongoDB"
where does the database
keyword come from? Any chance of using explicit imports? Much appreciated...
lens >= 3.7 && < 3.11
does not work with the current GHC 7.8 release (base-4.4.0.0
).
Current version of snap depends on base >= 4.4 && < 5
.
Needs to be bumped lens >= 4.0
.
Doing cabal install
gives the following error:
$ cabal install
Resolving dependencies...
cabal.exe: Could not resolve dependencies:
trying: snaplet-mongodb-minimalistic-example1-0.0.1 (user goal)
trying: mongoDB-1.3.0/installed-137... (dependency of
snaplet-mongodb-minimalistic-example1-0.0.1)
trying: transformers-base-0.4.1/installed-9d4... (dependency of
mongoDB-1.3.0/installed-137...)
next goal: snap-server (dependency of
snaplet-mongodb-minimalistic-example1-0.0.1)
rejecting: snap-server-0.9.0/installed-5b0..., 0.9.0, 0.8.1.1, 0.8.1, 0.8.0.1,
0.8.0 (conflict: snaplet-mongodb-minimalistic-example1 => snap-server==0.7.)
rejecting: snap-server-0.7.0.1 (conflict: transformers-base =>
transformers==0.3.0.0/installed-e82..., snap-server => transformers>=0.2 &&
<0.3)
rejecting: snap-server-0.7 (conflict: mongoDB =>
array==0.4.0.0/installed-3cf..., snap-server => array>=0.2 && <0.4)
rejecting: snap-server-0.6.0.1, 0.6.0, 0.5.5, 0.5.4, 0.5.3.1, 0.5.3, 0.5.2,
0.5.1.4, 0.5.1.3, 0.5.1.2, 0.5.1.1, 0.5.1, 0.5.0, 0.4.3, 0.4.2, 0.4.1,
0.4.0.2, 0.4.0.1, 0.4.0, 0.3.1.1, 0.3.1, 0.3.0, 0.2.16.2, 0.2.16.1, 0.2.16,
0.2.15.1, 0.2.15, 0.2.14.1, 0.2.14, 0.2.13.3, 0.2.13.2, 0.2.13.1, 0.2.13,
0.2.12, 0.2.11, 0.2.10.2, 0.2.10.1, 0.2.10, 0.2.9, 0.2.8.1, 0.2.8, 0.2.7.2,
0.2.7.1, 0.2.7, 0.2.6, 0.2.5, 0.2.4, 0.2.2, 0.2.1, 0.1.4, 0.1.3, 0.1.2, 0.1.1
(conflict: snaplet-mongodb-minimalistic-example1 => snap-server==0.7.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.