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

[#53] Support for GHC 9.2 #54

Merged
merged 3 commits into from
Oct 7, 2022
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
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
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,20 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
cabal: ["3.4"]
cabal: ["3.8"]
ghc:
- "8.2.2"
- "8.4.4"
- "8.6.5"
- "8.8.4"
- "8.10.4"
- "9.0.1"
- "8.10.7"
- "9.0.2"
- "9.2.4"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: haskell/actions/setup@v1
- uses: haskell/actions/setup@v2
id: setup-haskell-cabal
name: Setup Haskell
with:
Expand All @@ -42,7 +43,7 @@ jobs:
run: |
cabal freeze

- uses: actions/cache@v2.1.3
- uses: actions/cache@v3
name: Cache ~/.cabal/store
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
Expand Down
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
`slist` uses [PVP Versioning][1].
The changelog is available [on GitHub][2].

## 0.2.0.1 – Oct 7, 2022

* [#53](https://github.com/kowainik/slist/issues/53):
Support GHC-9.2.
* Upgrade `hedgehog` dependency.

## 0.2.0.0 — Mar 18, 2021

* [#45](https://github.com/kowainik/slist/issues/45):
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# slist

[![GitHub CI](https://github.com/kowainik/slist/workflows/CI/badge.svg)](https://github.com/kowainik/slist/actions)
[![Build status](https://img.shields.io/travis/kowainik/slist.svg?logo=travis)](https://travis-ci.org/kowainik/slist)
[![Hackage](https://img.shields.io/hackage/v/slist.svg?logo=haskell)](https://hackage.haskell.org/package/slist)
[![Stackage LTS](http://stackage.org/package/slist/badge/lts)](http://stackage.org/lts/package/slist)
[![Stackage Nightly](http://stackage.org/package/slist/badge/nightly)](http://stackage.org/nightly/package/slist)
[![MPL-2.0 license](https://img.shields.io/badge/license-MPL--2.0-blue.svg)](LICENSE)

> ⚠️ Caution: this is a very opinionated library. There is no intention to replace the standard list data type.
Expand Down
13 changes: 7 additions & 6 deletions slist.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.4
name: slist
version: 0.2.0.0
version: 0.2.0.1
synopsis: Sized list
description: This package implements @Slist@ data structure that stores the size
of the list along with the list itself.
Expand All @@ -11,7 +11,7 @@ license-file: LICENSE
author: Veronika Romashkina
maintainer: Kowainik <xrom.xkov@gmail.com>
copyright: 2019-2020 Veronika Romashkina
2020-2021 Kowainik
2020-2022 Kowainik
category: Data Structures, List
build-type: Simple
extra-doc-files: README.md
Expand All @@ -20,15 +20,16 @@ tested-with: GHC == 8.2.2
, GHC == 8.4.4
, GHC == 8.6.5
, GHC == 8.8.4
, GHC == 8.10.4
, GHC == 9.0.1
, GHC == 8.10.7
, GHC == 9.0.2
, GHC == 9.2.4

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

common common-options
build-depends: base >= 4.10.1.0 && < 4.16
build-depends: base >= 4.10.1.0 && < 4.17

ghc-options: -Wall
-Wincomplete-uni-patterns
Expand Down Expand Up @@ -86,7 +87,7 @@ test-suite slist-test
main-is: Spec.hs
other-modules: Test.Slist.Size
build-depends: slist
, hedgehog ^>= 1.0
, hedgehog >= 1.0 && < 1.3
, hspec
, hspec-hedgehog ^>= 0.0.1
ghc-options: -threaded
Expand Down
2 changes: 1 addition & 1 deletion src/Slist.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{- |
Copyright: (c) 2019-2020 Veronika Romashkina
(c) 2020-2021 Kowainik
(c) 2020-2022 Kowainik
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <xrom.xkov@gmail.com>
Stability: Stable
Expand Down
2 changes: 1 addition & 1 deletion src/Slist/Containers.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{- |
Copyright: (c) 2021 Kowainik
Copyright: (c) 2021-2022 Kowainik
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <xrom.xkov@gmail.com>
Stability: Stable
Expand Down
2 changes: 1 addition & 1 deletion src/Slist/Maybe.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{-# LANGUAGE BangPatterns #-}

{- |
Copyright: (c) 2021 Kowainik
Copyright: (c) 2021-2022 Kowainik
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <xrom.xkov@gmail.com>
Stability: Stable
Expand Down
6 changes: 3 additions & 3 deletions src/Slist/Size.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{- |
Copyright: (c) 2019-2020 Veronika Romashkina
(c) 2020-2021 Kowainik
(c) 2020-2022 Kowainik
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <xrom.xkov@gmail.com>
Stability: Stable
Expand Down Expand Up @@ -64,8 +64,8 @@ instance Num Size where
{-# INLINE (+) #-}

(-) :: Size -> Size -> Size
Infinity - _ = Infinity
_ - Infinity = Infinity
Infinity - _ = Infinity
_ - Infinity = Infinity
(Size x) - (Size y) = Size (x - y)
{-# INLINE (-) #-}

Expand Down
2 changes: 1 addition & 1 deletion src/Slist/Type.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{-# LANGUAGE TypeFamilies #-}

{- |
Copyright: (c) 2021 Kowainik
Copyright: (c) 2021-2022 Kowainik
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <xrom.xkov@gmail.com>
Stability: Stable
Expand Down
1 change: 0 additions & 1 deletion stack.yaml

This file was deleted.