Skip to content

Commit

Permalink
Prepare 0.4.0.0 release (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
chshersh authored Aug 3, 2021
1 parent 573c39c commit 420608b
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 20 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,28 @@ jobs:
- "8.8.4"
- "8.10.5"
- "9.0.1"
exclude:
- os: macOS-latest
ghc: 8.10.5
- 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: 8.10.5
- os: windows-latest
ghc: 8.8.4
- os: windows-latest
ghc: 8.6.5
- os: windows-latest
ghc: 8.4.4
- os: windows-latest
ghc: 8.2.2

steps:
- uses: actions/checkout@v2.3.4
Expand Down
33 changes: 33 additions & 0 deletions .headroom.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## This is the configuration file for Headroom.
## See https://github.com/vaclavsvejcar/headroom for more details.
version: 0.4.0.0

run-mode: replace

source-paths:
- src/

excluded-paths: []

template-paths:
- https://raw.githubusercontent.com/kowainik/org/main/headroom-templates/haskell.mustache

variables:
author: Kowainik
email: xrom.xkov@gmail.com
_haskell_module_copyright: "(c) {{ _current_year }} {{ author }}"

license-headers:
haskell:
put-after: ["^{-#"]
margin-bottom-code: 1
margin-top-code: 1
block-comment:
starts-with: ^{- \|
ends-with: (?<!#)-}$

post-process:
update-copyright:
enabled: true
config:
selected-authors-only: ["{{ author }}"]
17 changes: 15 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,22 @@
`typerep-map` uses [PVP Versioning][1].
The changelog is available [on GitHub][2].

## 0.3.3.1 — Aug 2, 2021
## 0.4.0.0 — Aug 3, 2021

* Support GHC-9.0.
* [#109](https://github.com/kowainik/typerep-map/issues/109):
Support GHC-9.0.
* [#30](https://github.com/kowainik/typerep-map/issues/30):
Remove `containers` from dependencies.
* [#94](https://github.com/kowainik/typerep-map/issues/94),
[#99](https://github.com/kowainik/typerep-map/issues/99),
[#100](https://github.com/kowainik/typerep-map/issues/100):
Improve performance of `insert` and `delete`.
* [#95](https://github.com/kowainik/typerep-map/issues/95):
Add `alter`.
* [#96](https://github.com/kowainik/typerep-map/issues/96):
Add `intersection` and `intersectionWith`.
* [#105](https://github.com/kowainik/typerep-map/issues/105):
Add `keysWith` and `toListWith`.

## 0.3.3.0 — Apr 18, 2020

Expand Down
10 changes: 6 additions & 4 deletions src/Data/TMap.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
{-# LANGUAGE Rank2Types #-}

{- |
Copyright: (c) 2017-2020 Kowainik
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <xrom.xkov@gmail.com>
Module : Data.TMap
Copyright : (c) 2017-2021 Kowainik
SPDX-License-Identifier : MPL-2.0
Maintainer : Kowainik <xrom.xkov@gmail.com>
Stability : Stable
Portability : Portable
'TMap' is a heterogeneous data structure similar in its essence to
'Data.Map.Map' with types as keys, where each value has the type of its key.
Expand All @@ -21,7 +24,6 @@ Here is an example of a 'TMap' with a comparison to 'Data.Map.Map':
The runtime representation of 'TMap' is an array, not a tree. This makes
'lookup' significantly more efficient.
-}

module Data.TMap
Expand Down
12 changes: 8 additions & 4 deletions src/Data/TypeRepMap.hs
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{-# LANGUAGE NoImplicitPrelude #-}

{- |
Copyright: (c) 2017-2020 Kowainik
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <xrom.xkov@gmail.com>
Module : Data.TypeRepMap
Copyright : (c) 2017-2021 Kowainik
SPDX-License-Identifier : MPL-2.0
Maintainer : Kowainik <xrom.xkov@gmail.com>
Stability : Stable
Portability : Portable
A version of 'Data.TMap.TMap' parametrized by an interpretation @f@. This
sort of parametrization may be familiar to users of @vinyl@ records.
Expand Down Expand Up @@ -44,7 +47,8 @@ type instance FType "border-width" = Double
"border-color" -> F (rgb 148 0 211)
"border-width" -> F 0.5
@
--}
-}

module Data.TypeRepMap
( -- * Map type
TypeRepMap()
Expand Down
9 changes: 6 additions & 3 deletions src/Data/TypeRepMap/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@
-- {-# OPTIONS_GHC -ddump-simpl -dsuppress-idinfo -dsuppress-coercions -dsuppress-type-applications -dsuppress-uniques -dsuppress-module-prefixes #-}

{- |
Copyright: (c) 2017-2020 Kowainik
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <xrom.xkov@gmail.com>
Module : Data.TypeRepMap.Internal
Copyright : (c) 2017-2021 Kowainik
SPDX-License-Identifier : MPL-2.0
Maintainer : Kowainik <xrom.xkov@gmail.com>
Stability : Stable
Portability : Portable
Internal API for 'TypeRepMap' and operations on it. The functions here do
not have any stability guarantees and can change between minor versions.
Expand Down
12 changes: 5 additions & 7 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.3.3.0
version: 0.4.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,15 +23,15 @@ license: MPL-2.0
license-file: LICENSE
author: Veronika Romashkina, Vladislav Zavialov, Dmitrii Kovanikov
maintainer: Kowainik <xrom.xkov@gmail.com>
copyright: 2017-2020 Kowainik
copyright: 2017-2021 Kowainik
category: Data, Data Structures, Types
build-type: Simple
extra-doc-files: README.md
, CHANGELOG.md
tested-with: GHC == 8.2.2
, GHC == 8.4.4
, GHC == 8.6.5
, GHC == 8.8.3
, GHC == 8.8.4
, GHC == 8.10.5
, GHC == 9.0.1

Expand All @@ -54,10 +54,8 @@ common common-options
-Widentities
-Wincomplete-uni-patterns
-Wincomplete-record-updates
if impl(ghc >= 8.0)
ghc-options: -Wredundant-constraints
if impl(ghc >= 8.2)
ghc-options: -fhide-source-paths
-Wredundant-constraints
-fhide-source-paths
if impl(ghc >= 8.4)
ghc-options: -Wmissing-export-lists
-Wpartial-fields
Expand Down

0 comments on commit 420608b

Please sign in to comment.