Compare commits
No commits in common. "2a92e3e8b0fda4cca47cb3a8b83352e0dc322f62" and "62c41d1d3654379d8b345e1d34da3662bda47e85" have entirely different histories.
2a92e3e8b0
...
62c41d1d36
@ -1,7 +1,7 @@
|
|||||||
{-# LANGUAGE PatternSynonyms #-}
|
{-# LANGUAGE PatternSynonyms #-}
|
||||||
|
|
||||||
module Effects.Log (
|
module Effects.Log (
|
||||||
Severity (.., I, D, W, E),
|
Severity (..),
|
||||||
runLog,
|
runLog,
|
||||||
runLogWithQsem,
|
runLogWithQsem,
|
||||||
stderrLogger,
|
stderrLogger,
|
||||||
@ -9,6 +9,10 @@ module Effects.Log (
|
|||||||
addTime,
|
addTime,
|
||||||
Log,
|
Log,
|
||||||
log,
|
log,
|
||||||
|
pattern I,
|
||||||
|
pattern D,
|
||||||
|
pattern W,
|
||||||
|
pattern E,
|
||||||
LogData (..),
|
LogData (..),
|
||||||
) where
|
) where
|
||||||
|
|
||||||
|
|||||||
@ -22,22 +22,7 @@ data Time :: Effect where
|
|||||||
CurrentTimeT :: Time m Text
|
CurrentTimeT :: Time m Text
|
||||||
BenchFunction :: m a -> Time m (Timespan, a)
|
BenchFunction :: m a -> Time m (Timespan, a)
|
||||||
|
|
||||||
makeEffect_ ''Time
|
makeEffect ''Time
|
||||||
|
|
||||||
currentTime ::
|
|
||||||
Time :> es =>
|
|
||||||
-- | Returns current time
|
|
||||||
Eff es C.Time
|
|
||||||
|
|
||||||
currentTimeB ::
|
|
||||||
Time :> es =>
|
|
||||||
-- | Returns current time
|
|
||||||
Eff es T.Builder
|
|
||||||
|
|
||||||
currentTimeT ::
|
|
||||||
Time :> es =>
|
|
||||||
-- | Returns current time
|
|
||||||
Eff es Text
|
|
||||||
|
|
||||||
runTimeEff ::
|
runTimeEff ::
|
||||||
(IOE :> es) =>
|
(IOE :> es) =>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user