summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--snaplet-hasql.cabal4
-rw-r--r--src/Snap/Snaplet/Auth/Backends/Hasql.hs2
-rw-r--r--src/Snap/Snaplet/Hasql.hs1
3 files changed, 3 insertions, 4 deletions
diff --git a/snaplet-hasql.cabal b/snaplet-hasql.cabal
index b60da7e..b7f4ede 100644
--- a/snaplet-hasql.cabal
+++ b/snaplet-hasql.cabal
@@ -1,5 +1,5 @@
name: snaplet-hasql
-version: 1.0.1
+version: 1.0.2
synopsis: A Hasql snaplet
license: MIT
license-file: LICENSE
@@ -24,7 +24,7 @@ library
Snap.Snaplet.Auth.Backends.Hasql
other-modules: Paths_snaplet_hasql
build-depends: base >=4.7 && <5.0,
- lens,
+ lens >= 4.0 && < 5.0,
mtl >=2.2,
hasql >=0.7,
hasql-backend >= 0.4,
diff --git a/src/Snap/Snaplet/Auth/Backends/Hasql.hs b/src/Snap/Snaplet/Auth/Backends/Hasql.hs
index e16bfda..fd187c4 100644
--- a/src/Snap/Snaplet/Auth/Backends/Hasql.hs
+++ b/src/Snap/Snaplet/Auth/Backends/Hasql.hs
@@ -46,7 +46,6 @@ import Control.Monad.Trans
import Data.Aeson
import Data.ByteString (ByteString)
import qualified Data.ByteString as B
-import Data.Foldable (fold)
import Data.Text (Text)
import qualified Data.Text as T
import qualified Data.Text.Encoding as T
@@ -56,7 +55,6 @@ import GHC.Generics
import Hasql
import Hasql.Backend (CxError, CxTx, CxValue, TxError)
import Paths_snaplet_hasql
-import Prelude
import Snap
import Snap.Snaplet.Auth
import Snap.Snaplet.Session
diff --git a/src/Snap/Snaplet/Hasql.hs b/src/Snap/Snaplet/Hasql.hs
index 27b86b7..04a7fd6 100644
--- a/src/Snap/Snaplet/Hasql.hs
+++ b/src/Snap/Snaplet/Hasql.hs
@@ -12,6 +12,7 @@ module Snap.Snaplet.Hasql
, session'
, module H
) where
+import Control.Applicative
import Control.Lens
import Control.Monad.Reader
import qualified Data.Configurator as C