Skip to content

Commit

Permalink
Added Generic and NoThunks instances for RAWState
Browse files Browse the repository at this point in the history
  • Loading branch information
jasagredo committed Nov 22, 2024
1 parent acb5289 commit 9a77766
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions rawlock/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

# Changelog entries

## 0.1.1.0 -- 2024-11-22

* Added `Generic` and `NoThunks` instance for `RAWState`.

## 0.1.0.0 -- 2024-10-22

* First version. Released on an unsuspecting world.
2 changes: 1 addition & 1 deletion rawlock/src/Control/RAWLock.hs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ data RAWState = RAWState {
waitingReaders :: !Readers
, waitingAppenders :: !Appenders
, waitingWriters :: !Writers
} deriving Show
} deriving (Show, Generic, NoThunks)

noWriters :: Poisonable RAWState -> Bool
noWriters (Healthy (RAWState _ _ w)) = w == 0
Expand Down

0 comments on commit 9a77766

Please sign in to comment.