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
eca9e861
Commit
eca9e861
authored
10 years ago
by
Herbert Valerio Riedel
Browse files
Options
Downloads
Patches
Plain Diff
Add `NFData` instance for new `Natural` type (#2)
parent
75ce5767
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
+8
-0
8 additions, 0 deletions
Control/DeepSeq.hs
changelog.md
+3
-0
3 additions, 0 deletions
changelog.md
with
11 additions
and
0 deletions
Control/DeepSeq.hs
+
8
−
0
View file @
eca9e861
...
@@ -64,6 +64,9 @@ import Data.Complex
...
@@ -64,6 +64,9 @@ import Data.Complex
import
Data.Array
import
Data.Array
import
Data.Fixed
import
Data.Fixed
import
Data.Version
import
Data.Version
#
if
MIN_VERSION_base
(
4
,
8
,
0
)
import
Numeric.Natural
(
Natural
)
#
endif
#
if
__GLASGOW_HASKELL__
>=
702
#
if
__GLASGOW_HASKELL__
>=
702
import
GHC.Generics
import
GHC.Generics
...
@@ -208,6 +211,11 @@ instance NFData Word16 where rnf !_ = ()
...
@@ -208,6 +211,11 @@ instance NFData Word16 where rnf !_ = ()
instance
NFData
Word32
where
rnf
!
_
=
()
instance
NFData
Word32
where
rnf
!
_
=
()
instance
NFData
Word64
where
rnf
!
_
=
()
instance
NFData
Word64
where
rnf
!
_
=
()
#
if
MIN_VERSION_base
(
4
,
8
,
0
)
-- |/Since: 1.4.0.0/
instance
NFData
Natural
where
rnf
!
_
=
()
#
endif
-- |/Since: 1.3.0.0/
-- |/Since: 1.3.0.0/
instance
NFData
(
Fixed
a
)
where
rnf
!
_
=
()
instance
NFData
(
Fixed
a
)
where
rnf
!
_
=
()
...
...
This diff is collapsed.
Click to expand it.
changelog.md
+
3
−
0
View file @
eca9e861
...
@@ -15,6 +15,9 @@
...
@@ -15,6 +15,9 @@
instance NFData XYZ where rnf x = seq x ()
instance NFData XYZ where rnf x = seq x ()
*
New
`NFData`
instances for
`base`
types:
-
`Numeric.Natural.Natural`
## 1.3.0.2 *Nov 2013*
## 1.3.0.2 *Nov 2013*
*
Bundled with GHC 7.8.1
*
Bundled with GHC 7.8.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