little-logger 1.0.2 → 3.0.1
raw patch · 2 files changed
Files
- little-logger.cabal +6/−6
- src/LittleLogger.hs +2/−3
little-logger.cabal view
@@ -1,11 +1,11 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.35.2.+-- This file has been generated from package.yaml by hpack version 0.37.0. -- -- see: https://github.com/sol/hpack name: little-logger-version: 1.0.2+version: 3.0.1 synopsis: Basic logging based on monad-logger description: Please see the README on GitHub at <https://github.com/ejconlon/little-logger#readme> category: Logging@@ -39,10 +39,10 @@ ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints -fno-warn-unused-top-binds build-depends: base >=4.12 && <5- , microlens >=0.4 && <1 , monad-logger ==0.3.* , mtl >=2.2 && <3- , text >=1.2 && <2.1+ , optics >=0.4 && <1+ , text >=1.2 && <2.2 , unliftio-core >=0.1.2.0 && <2 default-language: Haskell2010 @@ -63,12 +63,12 @@ base >=4.12 && <5 , directory >=1.3.6.0 && <1.4 , little-logger- , microlens >=0.4 && <1 , monad-logger ==0.3.* , mtl >=2.2 && <3+ , optics >=0.4 && <1 , tasty >=1.2.3 && <2 , tasty-hunit >=0.10.0.2 && <1 , temporary ==1.3.*- , text >=1.2 && <2.1+ , text >=1.2 && <2.2 , unliftio-core >=0.1.2.0 && <2 default-language: Haskell2010
src/LittleLogger.hs view
@@ -53,8 +53,7 @@ import Control.Monad.Reader (MonadReader, ReaderT (..), asks) import Data.Text (Text) import Data.Text.Encoding (decodeUtf8)-import Lens.Micro (Lens')-import Lens.Micro.Extras (view)+import Optics (Lens', equality', view) import System.IO ( BufferMode (LineBuffering) , Handle@@ -114,7 +113,7 @@ logActionL :: Lens' env LogAction instance HasLogAction LogAction where- logActionL = id+ logActionL = equality' type WithLogAction env m = (MonadIO m, MonadReader env m, HasLogAction env)