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

Support ghc-9.10. #41

Merged
merged 1 commit into from
May 21, 2024
Merged
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
19 changes: 12 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,17 @@ jobs:
- '8.10.7'
- '9.0.2'
- '9.2.8'
- '9.4.7'
- '9.6.3'
- '9.8.1'
- '9.4.8'
- '9.6.5'
- '9.8.2'
- '9.10.1'
exclude:
- os: macOS-latest
ghc: 9.6.3
ghc: 9.8.2
- os: macOS-latest
ghc: 9.4.7
ghc: 9.6.5
- os: macOS-latest
ghc: 9.4.8
- os: macOS-latest
ghc: 9.2.8
- os: macOS-latest
Expand All @@ -51,9 +54,11 @@ jobs:
ghc: 8.2.2

- os: windows-latest
ghc: 9.6.3
ghc: 9.8.2
- os: windows-latest
ghc: 9.6.5
- os: windows-latest
ghc: 9.4.7
ghc: 9.4.8
- os: windows-latest
ghc: 9.2.8
- os: windows-latest
Expand Down
11 changes: 6 additions & 5 deletions co-log-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ license: MPL-2.0
license-file: LICENSE
author: Dmitrii Kovanikov
maintainer: Kowainik <[email protected]>
copyright: 2018-2020 Kowainik, 2021-2023 Co-Log
copyright: 2018-2020 Kowainik, 2021-2024 Co-Log
category: Logging, Contravariant, Comonad
build-type: Simple
stability: stable
Expand All @@ -40,16 +40,17 @@ tested-with: GHC == 8.2.2
GHC == 8.10.7
GHC == 9.0.2
GHC == 9.2.8
GHC == 9.4.7
GHC == 9.6.3
GHC == 9.8.1
GHC == 9.4.8
GHC == 9.6.5
GHC == 9.8.2
GHC == 9.10.1

source-repository head
type: git
location: https://github.com/co-log/co-log-core.git

common common-options
build-depends: base >= 4.10.1.0 && < 4.20
build-depends: base >= 4.10.1.0 && < 4.21

ghc-options: -Wall
-Wcompat
Expand Down
2 changes: 1 addition & 1 deletion src/Colog/Core.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{- |
Module : Colog.Core
Copyright : (c) 2018-2020 Kowainik, 2021-2023 Co-Log
Copyright : (c) 2018-2020 Kowainik, 2021-2024 Co-Log
SPDX-License-Identifier : MPL-2.0
Maintainer : Co-Log <[email protected]>
Stability : Stable
Expand Down
2 changes: 1 addition & 1 deletion src/Colog/Core/Action.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{- |
Module : Colog.Core.Action
Copyright : (c) 2018-2020 Kowainik, 2021-2023 Co-Log
Copyright : (c) 2018-2020 Kowainik, 2021-2024 Co-Log
SPDX-License-Identifier : MPL-2.0
Maintainer : Co-Log <[email protected]>
Stability : Stable
Expand Down Expand Up @@ -71,7 +71,7 @@
import Data.Foldable (fold, for_, traverse_)
import Data.Kind (Constraint)
import Data.List.NonEmpty (NonEmpty (..))
import Data.Monoid (Monoid (..))

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.0.2

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.0.2

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.0.2

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.8.2

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.8.2

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.8.2

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.10.1

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.10.1

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.10.1

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.4.8

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.4.8

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.4.8

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.2.8

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.2.8

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.2.8

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.10.7

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.10.7

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.10.7

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.6.5

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.6.5

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.6.5

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / windows-latest / ghc 9.10.1

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / windows-latest / ghc 9.10.1

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / windows-latest / ghc 9.10.1

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / macOS-latest / ghc 9.10.1

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / macOS-latest / ghc 9.10.1

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / macOS-latest / ghc 9.10.1

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.8.4

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.8.4

The import of ‘Data.Monoid’ is redundant

Check warning on line 74 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.8.4

The import of ‘Data.Monoid’ is redundant
import Data.Semigroup (Semigroup (..), stimesMonoid)
import Data.Void (Void, absurd)
import GHC.TypeLits (ErrorMessage (..), TypeError)
Expand Down Expand Up @@ -194,7 +194,7 @@
* (>$) :: b -> LogAction m b -> LogAction m a
...


Check warning on line 197 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.4.4

• Redundant constraint: UnrepresentableClass

Check warning on line 197 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.4.4

• Redundant constraint: UnrepresentableClass

Check warning on line 197 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.4.4

• Redundant constraint: UnrepresentableClass

Check warning on line 197 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.2.2

• Redundant constraint: UnrepresentableClass

Check warning on line 197 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.2.2

• Redundant constraint: UnrepresentableClass

Check warning on line 197 in src/Colog/Core/Action.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.2.2

• Redundant constraint: UnrepresentableClass
#else

>>> fmap show logStringStdout
Expand Down
2 changes: 1 addition & 1 deletion src/Colog/Core/Class.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{- |
Module : Colog.Core.Class
Copyright : (c) 2018-2020 Kowainik, 2021-2023 Co-Log
Copyright : (c) 2018-2020 Kowainik, 2021-2024 Co-Log
SPDX-License-Identifier : MPL-2.0
Maintainer : Co-Log <[email protected]>
Stability : Stable
Expand Down
2 changes: 1 addition & 1 deletion src/Colog/Core/IO.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{- |
Module : Colog.Core.IO
Copyright : (c) 2018-2020 Kowainik, 2021-2023 Co-Log
Copyright : (c) 2018-2020 Kowainik, 2021-2024 Co-Log
SPDX-License-Identifier : MPL-2.0
Maintainer : Co-Log <[email protected]>
Stability : Stable
Expand Down Expand Up @@ -35,7 +35,7 @@

import Colog.Core.Action (LogAction (..))
import Control.Monad.IO.Class (MonadIO, liftIO)
import Data.Semigroup ((<>))

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.0.2

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.0.2

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.0.2

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.8.2

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.8.2

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.8.2

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.10.1

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.10.1

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.10.1

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.4.8

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.4.8

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.4.8

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.2.8

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.2.8

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.2.8

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.10.7

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.10.7

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.10.7

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.6.5

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.6.5

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 9.6.5

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / windows-latest / ghc 9.10.1

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / windows-latest / ghc 9.10.1

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / windows-latest / ghc 9.10.1

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / macOS-latest / ghc 9.10.1

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / macOS-latest / ghc 9.10.1

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / macOS-latest / ghc 9.10.1

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.8.4

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.8.4

The import of ‘Data.Semigroup’ is redundant

Check warning on line 38 in src/Colog/Core/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.8.4

The import of ‘Data.Semigroup’ is redundant
import System.IO (Handle, IOMode (AppendMode), hFlush, hPrint,
hPutStrLn, stderr, withFile)

Expand Down
2 changes: 1 addition & 1 deletion src/Colog/Core/Severity.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{- |
Module : Colog.Core.Severity
Copyright : (c) 2018-2020 Kowainik, 2021-2023 Co-Log
Copyright : (c) 2018-2020 Kowainik, 2021-2024 Co-Log
SPDX-License-Identifier : MPL-2.0
Maintainer : Co-Log <[email protected]>
Stability : Stable
Expand Down Expand Up @@ -127,7 +127,7 @@
@since 0.3.1.0
-}
data WithSeverity msg = WithSeverity { getMsg :: msg , getSeverity :: Severity }
deriving stock (Show, Eq, Ord, Functor, Foldable, Traversable)

Check failure on line 130 in src/Colog/Core/Severity.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.4.4

• Can't make a derived instance of

Check failure on line 130 in src/Colog/Core/Severity.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.4.4

• Can't make a derived instance of

Check failure on line 130 in src/Colog/Core/Severity.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.4.4

• Can't make a derived instance of

Check failure on line 130 in src/Colog/Core/Severity.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.2.2

• Can't make a derived instance of

Check failure on line 130 in src/Colog/Core/Severity.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.10.7

• Can't make a derived instance of

Check failure on line 130 in src/Colog/Core/Severity.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.10.7

• Can't make a derived instance of

Check failure on line 130 in src/Colog/Core/Severity.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.10.7

• Can't make a derived instance of

Check failure on line 130 in src/Colog/Core/Severity.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.6.5

• Can't make a derived instance of

Check failure on line 130 in src/Colog/Core/Severity.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.6.5

• Can't make a derived instance of

Check failure on line 130 in src/Colog/Core/Severity.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.6.5

• Can't make a derived instance of

Check failure on line 130 in src/Colog/Core/Severity.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.8.4

• Can't make a derived instance of

Check failure on line 130 in src/Colog/Core/Severity.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.8.4

• Can't make a derived instance of

Check failure on line 130 in src/Colog/Core/Severity.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest / ghc 8.8.4

• Can't make a derived instance of

{- | Map the given function over the severity of a 'WithSeverity'.

Expand Down
Loading