Skip to content

Commit

Permalink
Add dataCast1 definition for HashMap
Browse files Browse the repository at this point in the history
  • Loading branch information
treeowl committed Dec 22, 2021
1 parent e0c4181 commit bd165b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.2.17.0]

* Define `dataCast1` for `HashMap`.

## [0.2.16.0]

* [Increase maximum branching factor from 16 to 32](https://github.com/haskell-unordered-containers/unordered-containers/pull/317)
Expand Down
1 change: 1 addition & 0 deletions Data/HashMap/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ instance (Data k, Data v, Eq k, Hashable k) => Data (HashMap k v) where
1 -> k (z fromList)
_ -> error "gunfold"
dataTypeOf _ = hashMapDataType
dataCast1 f = gcast1 f
dataCast2 f = gcast2 f

fromListConstr :: Constr
Expand Down

0 comments on commit bd165b0

Please sign in to comment.