Skip to content

Commit

Permalink
[#70] Support GHC-9.4 (#71)
Browse files Browse the repository at this point in the history
* [#70] Support GHC-9.4

Resolves #70

* [#70] Update CI

Resolves #70

* Update to GHC-9.4.4

* Drop support of GHC-8.4

* Update version number
  • Loading branch information
vrom911 committed Mar 1, 2023
1 parent b657930 commit 9636efc
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @chshersh @vrom911
* @vrom911
22 changes: 12 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,41 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
cabal: ["3.6.2.0"]
cabal: ["3.8"]
ghc:
- "8.4.4"
- "8.6.5"
- "8.8.4"
- "8.10.7"
- "9.0.2"
- "9.2.2"
- "9.2.7"
- "9.4.4"
exclude:
- os: macOS-latest
ghc: 9.2.7
- os: macOS-latest
ghc: 9.0.2
- os: macOS-latest
ghc: 8.10.7
- os: macOS-latest
ghc: 8.8.4
- os: macOS-latest
ghc: 8.6.5
- os: macOS-latest
ghc: 8.4.4
- os: macOS-latest
ghc: 8.2.2

- os: windows-latest
ghc: 9.2.7
- os: windows-latest
ghc: 9.0.2
- os: windows-latest
ghc: 8.10.7
- os: windows-latest
ghc: 8.8.4
- os: windows-latest
ghc: 8.6.5
- os: windows-latest
ghc: 8.4.4

steps:
- uses: actions/checkout@v3

- uses: haskell/actions/setup@v2.3
- uses: haskell/actions/setup@v2
id: setup-haskell-cabal
name: Setup Haskell
with:
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
`validation-selective` uses [PVP Versioning][1].
The changelog is available [on GitHub][2].

## 0.2.0.0 — Mar 1, 2023

* [#62](https://github.com/kowainik/validation-selective/issues/62):
Support GHC-9.4.
* Allow `hedgehog-1.2`.
* Allow `selective-0.6`.
* Allow `doctest-0.21`.
* Remove support for GHC-8.4 (due to `selective-0.6`, which dropped support for
the earlier GHCs).

## 0.1.0.2 — Jun 11, 2021

* [#62](https://github.com/kowainik/validation-selective/issues/62):
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ popular validation packages in the Haskell ecosystem:
## How to use

`validation-selective` is compatible with the latest GHC compiler
versions starting from `8.4.4`.
versions starting from `8.6`.

In order to start using `validation-selective` in your project, you
will need to set it up with the three easy steps:
Expand Down
6 changes: 3 additions & 3 deletions src/Validation.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{- |
Copyright: (c) 2014 Chris Allen, Edward Kmett
(c) 2018-2022 Kowainik
(c) 2018-2023 Kowainik
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <xrom.xkov@gmail.com>
Stability: Stable
Expand Down Expand Up @@ -408,7 +408,7 @@ __Examples__
>>> mempty :: Validation String [Bool]
Success []
-}
instance (Semigroup e, Semigroup a, Monoid a) => Monoid (Validation e a) where
instance (Semigroup e, Monoid a) => Monoid (Validation e a) where
mempty :: Validation e a
mempty = Success mempty
{-# INLINE mempty #-}
Expand Down Expand Up @@ -639,7 +639,7 @@ Failure ["WRONG","FAIL"]
>>> failure2 <|> success2
Success [15]
-}
instance (Semigroup e, Monoid e) => Alternative (Validation e) where
instance (Monoid e) => Alternative (Validation e) where
empty :: Validation e a
empty = Failure mempty
{-# INLINE empty #-}
Expand Down
Empty file added src/Validation.o-boot
Empty file.
2 changes: 1 addition & 1 deletion src/Validation/Combinators.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{- |
Copyright: (c) 2020-2022 Kowainik
Copyright: (c) 2020-2023 Kowainik
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <xrom.xkov@gmail.com>
Stability: Stable
Expand Down
24 changes: 11 additions & 13 deletions validation-selective.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.4
name: validation-selective
version: 0.1.0.2
version: 0.2.0.0
synopsis: Lighweight pure data validation based on Applicative and Selective functors
description:
Lighweight pure data validation based on Applicative and Selective
Expand All @@ -20,35 +20,33 @@ license: MPL-2.0
license-file: LICENSE
author: Dmitrii Kovanikov, Veronika Romashkina
maintainer: Kowainik <xrom.xkov@gmail.com>
copyright: 2020-2022 Kowainik
copyright: 2020-2023 Kowainik
category: Validation, Selective, Data
build-type: Simple
extra-doc-files: README.md
CHANGELOG.md
tested-with: GHC == 8.4.4
GHC == 8.6.5
tested-with: GHC == 8.6.5
GHC == 8.8.4
GHC == 8.10.7
GHC == 9.0.2
GHC == 9.2.2
GHC == 9.2.7
GHC == 9.4.4

source-repository head
type: git
location: https://github.com/kowainik/validation-selective.git

common common-options
build-depends: base >= 4.11 && < 4.17
build-depends: base >= 4.12 && < 4.18

ghc-options: -Wall
-Wcompat
-Widentities
-Wincomplete-uni-patterns
-Wincomplete-record-updates
-Wredundant-constraints
if impl(ghc >= 8.2)
ghc-options: -fhide-source-paths
if impl(ghc >= 8.4)
ghc-options: -Wmissing-export-lists
-fhide-source-paths
-Wmissing-export-lists
-Wpartial-fields
if impl(ghc >= 8.8)
ghc-options: -Wmissing-deriving-strategies
Expand Down Expand Up @@ -82,7 +80,7 @@ library
exposed-modules: Validation
Validation.Combinators
build-depends: deepseq ^>= 1.4.3.0
, selective >= 0.3 && < 0.6
, selective >= 0.3 && < 0.7

test-suite validation-selective-test
import: common-options
Expand All @@ -93,7 +91,7 @@ test-suite validation-selective-test
Test.Laws
Test.Properties
build-depends: validation-selective
, hedgehog >= 1.0 && < 1.2
, hedgehog >= 1.0 && < 1.3
, hspec >= 2.7.1 && < 2.11
, hspec-hedgehog ^>= 0.0.1.1
, selective
Expand All @@ -107,5 +105,5 @@ test-suite validation-selective-doctest
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Doctest.hs
build-depends: doctest >= 0.16 && < 0.21
build-depends: doctest >= 0.16 && < 0.22
ghc-options: -threaded

0 comments on commit 9636efc

Please sign in to comment.