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 ed6591f4f..701ba5f23 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