Skip to content
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

Where does the database come from? #6

Closed
drozzy opened this issue Aug 5, 2012 · 1 comment
Closed

Where does the database come from? #6

drozzy opened this issue Aug 5, 2012 · 1 comment

Comments

@drozzy
Copy link
Contributor

drozzy commented Aug 5, 2012

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...

@Palmik
Copy link
Owner

Palmik commented Aug 6, 2012

Hi, it comes from the module Application, it's a lens generated by the makeLens ''App. I will make the imports qualified with the transition (of the example) to snap 0.9.

@Palmik Palmik closed this as completed Aug 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants