Skip to content

Commit 7b662c0

Browse files
committed
Re-export SGR
1 parent b5901b4 commit 7b662c0

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

src/Control/Monad/Log/Colors.hs

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
{-# options_ghc -Wall #-}
2-
module Control.Monad.Log.Colors where
2+
module Control.Monad.Log.Colors
3+
( wrapSGRCode
4+
, emergency
5+
, alert
6+
, critical
7+
, err
8+
, warning
9+
, notice
10+
, info
11+
, debug
12+
, trace
13+
, severitySgr
14+
, colorizeWith
15+
, colorize
16+
, renderWithColor
17+
, SGR(..)
18+
)
19+
where
320

421
import Control.Monad.Log
522
import Data.String
@@ -69,7 +86,7 @@ colorizeWith f (WithSeverity sev msg) =
6986
WithSeverity sev $ wrapSGRCode (f sev) msg
7087

7188
-- | Color based on severity with the default mapping of severity to SGR styles
72-
colorize
89+
colorize
7390
:: (Monoid msg, IsString msg)
7491
=> WithSeverity msg
7592
-> WithSeverity msg

0 commit comments

Comments
 (0)