Where does the database come from? #6

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

Comments

Projects
None yet
2 participants
@drozzy
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

This comment has been minimized.

Show comment Hide comment
@Palmik

Palmik Aug 6, 2012

Owner

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.

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 Aug 6, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment