Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
bf75f422
Commit
bf75f422
authored
Dec 16, 2015
by
Ben Gamari
🐢
Browse files
Add NFData instances
parent
850863e5
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/Builder.hs
View file @
bf75f422
...
...
@@ -111,3 +111,4 @@ fixAbsolutePathOnWindows path = do
-- Instances for storing in the Shake database
instance
Binary
Builder
instance
Hashable
Builder
instance
NFData
Builder
src/Package.hs
View file @
bf75f422
...
...
@@ -49,3 +49,4 @@ instance Ord Package where
instance
Binary
Package
instance
Hashable
Package
where
hashWithSalt
salt
=
hashWithSalt
salt
.
show
instance
NFData
Package
src/Stage.hs
View file @
bf75f422
...
...
@@ -13,3 +13,4 @@ instance Show Stage where
-- Instances for storing in the Shake database
instance
Binary
Stage
instance
Hashable
Stage
instance
NFData
Stage
src/Way.hs
View file @
bf75f422
...
...
@@ -169,3 +169,6 @@ instance Binary Way where
instance
Hashable
Way
where
hashWithSalt
salt
=
hashWithSalt
salt
.
show
instance
NFData
Way
where
rnf
(
Way
s
)
=
s
`
seq
`
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment