From eec3269c5aa0b3de3212a5ae69056a1c7a797097 Mon Sep 17 00:00:00 2001 From: Toralf Wittner Date: Wed, 30 Apr 2014 01:01:22 +0200 Subject: [PATCH] Be cabal 1.10 compatible. --- src/System/Logger.hs | 4 ++-- tinylog.cabal | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/System/Logger.hs b/src/System/Logger.hs index 6b33989..074a411 100644 --- a/src/System/Logger.hs +++ b/src/System/Logger.hs @@ -137,13 +137,13 @@ readNote m s = case reads s of [(a, "")] -> a _ -> error m --- | Logs a message with the given level if greater of equal to the +-- | Logs a message with the given level if greater or equal to the -- logger's threshold. log :: MonadIO m => Logger -> Level -> (Msg -> Msg) -> m () log g l m = unless (level g > l) . liftIO $ putMsg g l m {-# INLINE log #-} --- | Abbreviation for 'log' using the corresponding log level. +-- | Abbreviation of 'log' using the corresponding log level. trace, debug, info, warn, err, fatal :: MonadIO m => Logger -> (Msg -> Msg) -> m () trace g = log g Trace debug g = log g Debug diff --git a/tinylog.cabal b/tinylog.cabal index ef2cb62..1216ff3 100644 --- a/tinylog.cabal +++ b/tinylog.cabal @@ -4,11 +4,11 @@ synopsis: Simplistic logging using fast-logger. author: Toralf Wittner maintainer: Toralf Wittner copyright: (c) 2014 Toralf Wittner -license: MPL-2.0 +license: OtherLicense license-file: LICENSE category: System build-type: Simple -cabal-version: >= 1.20 +cabal-version: >= 1.10 description: Trivial logger on top of fast-logger. @@ -30,9 +30,9 @@ library build-depends: base == 4.* - , bytestring >= 0.10 - , date-cache >= 0.3 - , fast-logger >= 2.1.4 && < 2.2 - , text >= 0.11 && < 1.2 + , bytestring >= 0.10.4 && < 0.11 + , date-cache >= 0.3 && < 0.4 + , fast-logger >= 2.1.4 && < 2.2 + , text >= 0.11 && < 1.2 , transformers >= 0.3 - , unix-time >= 0.1 + , unix-time >= 0.1 && < 0.3 -- GitLab