Skip to content

Commit

Permalink
[#117] Support GHC 9.2 (#119)
Browse files Browse the repository at this point in the history
Resolves #117
  • Loading branch information
chshersh authored Feb 15, 2022
1 parent f453452 commit 41838d2
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 20 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "GA"
include: "scope"
labels:
- "CI"
- "dependencies"
27 changes: 18 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: CI

on:
workflow_dispatch:
pull_request:
types: [synchronize, opened, reopened]
push:
Expand All @@ -9,25 +10,27 @@ on:
# additionally run once per week (At 00:00 on Sunday) to maintain cache
- cron: '0 0 * * 0'


jobs:
cabal:
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
cabal: ["3.4"]
cabal: ["3.6.2.0"]
ghc:
- "8.2.2"
- "8.4.4"
- "8.6.5"
- "8.8.4"
- "8.10.5"
- "9.0.1"
- "8.10.7"
- "9.0.2"
- "9.2.1"
exclude:
- os: macOS-latest
ghc: 8.10.5
ghc: 9.0.2
- os: macOS-latest
ghc: 8.10.7
- os: macOS-latest
ghc: 8.8.4
- os: macOS-latest
Expand All @@ -38,7 +41,9 @@ jobs:
ghc: 8.2.2

- os: windows-latest
ghc: 8.10.5
ghc: 9.0.2
- os: windows-latest
ghc: 8.10.7
- os: windows-latest
ghc: 8.8.4
- os: windows-latest
Expand All @@ -49,9 +54,9 @@ jobs:
ghc: 8.2.2

steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v2

- uses: haskell/actions/setup@v1.2.3
- uses: haskell/actions/setup@v1.2
id: setup-haskell-cabal
name: Setup Haskell
with:
Expand All @@ -66,7 +71,7 @@ jobs:
run: |
cabal freeze
- uses: actions/cache@v2.1.6
- uses: actions/cache@v2
name: Cache ~/.cabal/store
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
Expand All @@ -83,3 +88,7 @@ jobs:
- name: Test
run: |
cabal test all
- name: Documentation
run: |
cabal haddock
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
`typerep-map` uses [PVP Versioning][1].
The changelog is available [on GitHub][2].

## 0.5.0.0 — Feb 15, 2022

* [#117](https://github.com/kowainik/typerep-map/issues/117):
Support GHC-9.2
* [#112](https://github.com/kowainik/typerep-map/issues/112):
Change `TypeRepMap` parameter role to `representational`.

## 0.4.0.0 — Aug 3, 2021

* [#109](https://github.com/kowainik/typerep-map/issues/109):
Expand Down
2 changes: 1 addition & 1 deletion src/Data/TMap.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{- |
Module : Data.TMap
Copyright : (c) 2017-2021 Kowainik
Copyright : (c) 2017-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/Data/TypeRepMap.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{- |
Module : Data.TypeRepMap
Copyright : (c) 2017-2021 Kowainik
Copyright : (c) 2017-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/Data/TypeRepMap/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

{- |
Module : Data.TypeRepMap.Internal
Copyright : (c) 2017-2021 Kowainik
Copyright : (c) 2017-2022 Kowainik
SPDX-License-Identifier : MPL-2.0
Maintainer : Kowainik <xrom.xkov@gmail.com>
Stability : Stable
Expand Down
17 changes: 9 additions & 8 deletions typerep-map.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.4
name: typerep-map
version: 0.4.0.0
version: 0.5.0.0
synopsis: Efficient implementation of a dependent map with types as keys
description:
A dependent map from type representations to values of these types.
Expand All @@ -23,7 +23,7 @@ license: MPL-2.0
license-file: LICENSE
author: Veronika Romashkina, Vladislav Zavialov, Dmitrii Kovanikov
maintainer: Kowainik <xrom.xkov@gmail.com>
copyright: 2017-2021 Kowainik
copyright: 2017-2022 Kowainik
category: Data, Data Structures, Types
build-type: Simple
extra-doc-files: README.md
Expand All @@ -32,15 +32,16 @@ tested-with: GHC == 8.2.2
, GHC == 8.4.4
, GHC == 8.6.5
, GHC == 8.8.4
, GHC == 8.10.5
, GHC == 9.0.1
, GHC == 8.10.7
, GHC == 9.0.2
, GHC == 9.2.1

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

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

default-language: Haskell2010
default-extensions: BangPatterns
Expand Down Expand Up @@ -72,7 +73,7 @@ library
Data.TypeRepMap
Data.TypeRepMap.Internal

build-depends: ghc-prim >= 0.5.1.1 && < 0.8
build-depends: ghc-prim >= 0.5.1.1 && < 0.9
, primitive ^>= 0.7.0
, deepseq ^>= 1.4

Expand Down Expand Up @@ -100,8 +101,8 @@ test-suite typerep-map-test
, Test.TypeRep.VectorOpt

build-depends: ghc-typelits-knownnat >= 0.4.2 && < 0.8
, hedgehog ^>= 1.0
, hspec >= 2.7.1 && < 2.9
, hedgehog >= 1.0 && < 1.2
, hspec >= 2.7.1 && < 2.10
, hspec-hedgehog ^>= 0.0.1
, typerep-map
, typerep-extra-impls
Expand Down

0 comments on commit 41838d2

Please sign in to comment.