Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
deepseq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rinat Striungis
deepseq
Commits
fe6994ed
Commit
fe6994ed
authored
5 years ago
by
Josef Svenningsson
Committed by
Ryan Scott
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add GNFData instance for unboxed types (#45)
parent
a2d507af
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Control/DeepSeq.hs
+7
-0
7 additions, 0 deletions
Control/DeepSeq.hs
changelog.md
+5
-0
5 additions, 0 deletions
changelog.md
with
12 additions
and
0 deletions
Control/DeepSeq.hs
+
7
−
0
View file @
fe6994ed
...
...
@@ -179,6 +179,13 @@ instance GNFData arity a => GNFData arity (M1 i c a) where
grnf
args
=
grnf
args
.
unM1
{-# INLINEABLE grnf #-}
#
if
__GLASGOW_HASKELL__
>=
800
-- @since 1.4.5.0
instance
GNFData
arity
(
URec
a
)
where
grnf
_
=
rwhnf
{-# INLINEABLE grnf #-}
#
endif
instance
(
GNFData
arity
a
,
GNFData
arity
b
)
=>
GNFData
arity
(
a
:*:
b
)
where
grnf
args
(
x
:*:
y
)
=
grnf
args
x
`
seq
`
grnf
args
y
{-# INLINEABLE grnf #-}
...
...
This diff is collapsed.
Click to expand it.
changelog.md
+
5
−
0
View file @
fe6994ed
# Changelog for [`deepseq` package](http://hackage.haskell.org/package/deepseq)
## 1.4.5.0
*
Add
`GNFData`
for URec
This will enable deriving NFData instances for unboxed types
## 1.4.4.0 *Sep 2018*
*
Bundled with GHC 8.6.1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment