Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHC-9 changes #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions co-log-polysemy-formatting.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ tested-with: GHC == 8.4.4
, GHC == 8.6.5
, GHC == 8.8.4
, GHC == 8.10.1
, GHC == 9.0.1

common deps
build-depends: base >= 4.11.0.0 && < 5
, co-log ^>= 0.4.0.1
, co-log-core ^>= 0.2.1.1
, co-log-polysemy ^>= 0.0.1.1
, formatting ^>= 7.1.0
, polysemy >= 1.3.0.0 && < 1.6
, polysemy >= 1.3.0.0 && < 1.7

-- Warnings list list taken from
-- https://medium.com/mercury-bank/enable-all-the-warnings-a0517bc081c3
Expand Down Expand Up @@ -54,7 +55,7 @@ library
default-language: Haskell2010
build-depends: ansi-terminal ^>= 0.10.3
, text >= 0.11.0.8 && < 1.3
, time >= 1.8.0.2 && < 1.10
, time >= 1.8.0.2 && < 1.13
exposed-modules: Colog.Polysemy.Formatting
Colog.Polysemy.Formatting.Color
Colog.Polysemy.Formatting.LogEnv
Expand Down
2 changes: 1 addition & 1 deletion src/Colog/Polysemy/Formatting.hs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ logError = withFrozenCallStack $ log Error

-- | Log the exception as an error.
logException :: (WithLog r, Exception e) => e -> Sem r ()
logException = withFrozenCallStack . logError string . displayException
logException = (\k -> withFrozenCallStack k) . logError string . displayException

-- | Interpret the 'Log' effect by completely ignoring all log messages.
ignoreLog :: Sem (Log msg ': r) a -> Sem r a
Expand Down