Skip to content

Commit 420608b

Browse files
authored
Prepare 0.4.0.0 release (#111)
1 parent 573c39c commit 420608b

File tree

7 files changed

+94
-20
lines changed

7 files changed

+94
-20
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,28 @@ jobs:
2525
- "8.8.4"
2626
- "8.10.5"
2727
- "9.0.1"
28+
exclude:
29+
- os: macOS-latest
30+
ghc: 8.10.5
31+
- os: macOS-latest
32+
ghc: 8.8.4
33+
- os: macOS-latest
34+
ghc: 8.6.5
35+
- os: macOS-latest
36+
ghc: 8.4.4
37+
- os: macOS-latest
38+
ghc: 8.2.2
2839

40+
- os: windows-latest
41+
ghc: 8.10.5
42+
- os: windows-latest
43+
ghc: 8.8.4
44+
- os: windows-latest
45+
ghc: 8.6.5
46+
- os: windows-latest
47+
ghc: 8.4.4
48+
- os: windows-latest
49+
ghc: 8.2.2
2950

3051
steps:
3152
- uses: actions/[email protected]

.headroom.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## This is the configuration file for Headroom.
2+
## See https://github.com/vaclavsvejcar/headroom for more details.
3+
version: 0.4.0.0
4+
5+
run-mode: replace
6+
7+
source-paths:
8+
- src/
9+
10+
excluded-paths: []
11+
12+
template-paths:
13+
- https://raw.githubusercontent.com/kowainik/org/main/headroom-templates/haskell.mustache
14+
15+
variables:
16+
author: Kowainik
17+
18+
_haskell_module_copyright: "(c) {{ _current_year }} {{ author }}"
19+
20+
license-headers:
21+
haskell:
22+
put-after: ["^{-#"]
23+
margin-bottom-code: 1
24+
margin-top-code: 1
25+
block-comment:
26+
starts-with: ^{- \|
27+
ends-with: (?<!#)-}$
28+
29+
post-process:
30+
update-copyright:
31+
enabled: true
32+
config:
33+
selected-authors-only: ["{{ author }}"]

CHANGELOG.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,22 @@
33
`typerep-map` uses [PVP Versioning][1].
44
The changelog is available [on GitHub][2].
55

6-
## 0.3.3.1 — Aug 2, 2021
6+
## 0.4.0.0 — Aug 3, 2021
77

8-
* Support GHC-9.0.
8+
* [#109](https://github.com/kowainik/typerep-map/issues/109):
9+
Support GHC-9.0.
10+
* [#30](https://github.com/kowainik/typerep-map/issues/30):
11+
Remove `containers` from dependencies.
12+
* [#94](https://github.com/kowainik/typerep-map/issues/94),
13+
[#99](https://github.com/kowainik/typerep-map/issues/99),
14+
[#100](https://github.com/kowainik/typerep-map/issues/100):
15+
Improve performance of `insert` and `delete`.
16+
* [#95](https://github.com/kowainik/typerep-map/issues/95):
17+
Add `alter`.
18+
* [#96](https://github.com/kowainik/typerep-map/issues/96):
19+
Add `intersection` and `intersectionWith`.
20+
* [#105](https://github.com/kowainik/typerep-map/issues/105):
21+
Add `keysWith` and `toListWith`.
922

1023
## 0.3.3.0 — Apr 18, 2020
1124

src/Data/TMap.hs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
{-# LANGUAGE Rank2Types #-}
33

44
{- |
5-
Copyright: (c) 2017-2020 Kowainik
6-
SPDX-License-Identifier: MPL-2.0
7-
Maintainer: Kowainik <[email protected]>
5+
Module : Data.TMap
6+
Copyright : (c) 2017-2021 Kowainik
7+
SPDX-License-Identifier : MPL-2.0
8+
Maintainer : Kowainik <[email protected]>
9+
Stability : Stable
10+
Portability : Portable
811
912
'TMap' is a heterogeneous data structure similar in its essence to
1013
'Data.Map.Map' with types as keys, where each value has the type of its key.
@@ -21,7 +24,6 @@ Here is an example of a 'TMap' with a comparison to 'Data.Map.Map':
2124
2225
The runtime representation of 'TMap' is an array, not a tree. This makes
2326
'lookup' significantly more efficient.
24-
2527
-}
2628

2729
module Data.TMap

src/Data/TypeRepMap.hs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{-# LANGUAGE NoImplicitPrelude #-}
22

33
{- |
4-
Copyright: (c) 2017-2020 Kowainik
5-
SPDX-License-Identifier: MPL-2.0
6-
Maintainer: Kowainik <[email protected]>
4+
Module : Data.TypeRepMap
5+
Copyright : (c) 2017-2021 Kowainik
6+
SPDX-License-Identifier : MPL-2.0
7+
Maintainer : Kowainik <[email protected]>
8+
Stability : Stable
9+
Portability : Portable
710
811
A version of 'Data.TMap.TMap' parametrized by an interpretation @f@. This
912
sort of parametrization may be familiar to users of @vinyl@ records.
@@ -44,7 +47,8 @@ type instance FType "border-width" = Double
4447
"border-color" -> F (rgb 148 0 211)
4548
"border-width" -> F 0.5
4649
@
47-
--}
50+
-}
51+
4852
module Data.TypeRepMap
4953
( -- * Map type
5054
TypeRepMap()

src/Data/TypeRepMap/Internal.hs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@
2020
-- {-# OPTIONS_GHC -ddump-simpl -dsuppress-idinfo -dsuppress-coercions -dsuppress-type-applications -dsuppress-uniques -dsuppress-module-prefixes #-}
2121

2222
{- |
23-
Copyright: (c) 2017-2020 Kowainik
24-
SPDX-License-Identifier: MPL-2.0
25-
Maintainer: Kowainik <[email protected]>
23+
Module : Data.TypeRepMap.Internal
24+
Copyright : (c) 2017-2021 Kowainik
25+
SPDX-License-Identifier : MPL-2.0
26+
Maintainer : Kowainik <[email protected]>
27+
Stability : Stable
28+
Portability : Portable
2629
2730
Internal API for 'TypeRepMap' and operations on it. The functions here do
2831
not have any stability guarantees and can change between minor versions.

typerep-map.cabal

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 2.4
22
name: typerep-map
3-
version: 0.3.3.0
3+
version: 0.4.0.0
44
synopsis: Efficient implementation of a dependent map with types as keys
55
description:
66
A dependent map from type representations to values of these types.
@@ -23,15 +23,15 @@ license: MPL-2.0
2323
license-file: LICENSE
2424
author: Veronika Romashkina, Vladislav Zavialov, Dmitrii Kovanikov
2525
maintainer: Kowainik <[email protected]>
26-
copyright: 2017-2020 Kowainik
26+
copyright: 2017-2021 Kowainik
2727
category: Data, Data Structures, Types
2828
build-type: Simple
2929
extra-doc-files: README.md
3030
, CHANGELOG.md
3131
tested-with: GHC == 8.2.2
3232
, GHC == 8.4.4
3333
, GHC == 8.6.5
34-
, GHC == 8.8.3
34+
, GHC == 8.8.4
3535
, GHC == 8.10.5
3636
, GHC == 9.0.1
3737

@@ -54,10 +54,8 @@ common common-options
5454
-Widentities
5555
-Wincomplete-uni-patterns
5656
-Wincomplete-record-updates
57-
if impl(ghc >= 8.0)
58-
ghc-options: -Wredundant-constraints
59-
if impl(ghc >= 8.2)
60-
ghc-options: -fhide-source-paths
57+
-Wredundant-constraints
58+
-fhide-source-paths
6159
if impl(ghc >= 8.4)
6260
ghc-options: -Wmissing-export-lists
6361
-Wpartial-fields

0 commit comments

Comments
 (0)