From b68fcd2522f9bd049b3e2e13ebf18c1d5a3f1de0 Mon Sep 17 00:00:00 2001 From: Diogo Biazus Date: Sat, 21 May 2016 13:31:39 -0400 Subject: [PATCH] Replace lens dependency for microlens --- postgrest.cabal | 12 ++++++------ src/PostgREST/Auth.hs | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/postgrest.cabal b/postgrest.cabal index c8edd70f4..1c8c2dc6d 100644 --- a/postgrest.cabal +++ b/postgrest.cabal @@ -40,8 +40,8 @@ executable postgrest , http-types , interpolatedstring-perl6 , jwt - , lens >=3.8 && < 5.0 - , lens-aeson >= 1.0.0.0 && < 1.1.0.0 + , microlens >= 0.4.2 && < 0.5 + , microlens-aeson >= 2.1.1 && < 2.2 , mtl , optparse-applicative >= 0.11 && < 0.13 , parsec @@ -84,8 +84,8 @@ library , http-types , interpolatedstring-perl6 , jwt - , lens - , lens-aeson + , microlens + , microlens-aeson , mtl , optparse-applicative , parsec @@ -158,8 +158,8 @@ Test-Suite spec , http-types , interpolatedstring-perl6 , jwt - , lens - , lens-aeson + , microlens + , microlens-aeson , monad-control , mtl , optparse-applicative diff --git a/src/PostgREST/Auth.hs b/src/PostgREST/Auth.hs index d422b4a7d..ceaa53d93 100644 --- a/src/PostgREST/Auth.hs +++ b/src/PostgREST/Auth.hs @@ -18,9 +18,9 @@ module PostgREST.Auth ( , tokenJWT ) where -import Control.Lens +import Lens.Micro +import Lens.Micro.Aeson import Data.Aeson (Value (..), parseJSON, toJSON) -import Data.Aeson.Lens import Data.Aeson.Types (parseMaybe, emptyObject, emptyArray) import qualified Data.ByteString as BS import qualified Data.Vector as V