Skip to content

Commit

Permalink
Set infixr of 'deepseq' to be consistent with 'seq' (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnbastiaan authored Jul 19, 2020
1 parent 4cb6085 commit f87570c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Control/DeepSeq.hs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ instance (NFData1 f, GNFData One g) => GNFData One (f :.: g) where
grnf args = liftRnf (grnf args) . unComp1

infixr 0 $!!
infixr 0 `deepseq`

-- | 'deepseq': fully evaluates the first argument, before returning the
-- second.
Expand Down
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

* Add `GNFData` for URec
This will enable deriving NFData instances for unboxed types
* Set `infixr 0` for `deepseq`
Makes infix use of 'deepseq' parse the same way as infix use of 'seq'

## 1.4.4.0 *Sep 2018*

Expand Down

1 comment on commit f87570c

@phadej
Copy link
Contributor

@phadej phadej commented on f87570c Jan 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm uneasy about this. This is technically a breaking change.

Please sign in to comment.