Skip to content

Commit

Permalink
Simplify NFData instances
Browse files Browse the repository at this point in the history
  • Loading branch information
patperry committed Apr 21, 2013
1 parent c798831 commit 05cbde7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/Data/Summary/Bool.hs
Expand Up @@ -53,8 +53,8 @@ instance Monoid Summary where
mempty = empty
mappend = union

instance NFData Summary where
rnf s = s `seq` ()
instance NFData Summary


-- | Get a summary of a list of values.
summary :: [Bool] -> Summary
Expand Down
4 changes: 2 additions & 2 deletions lib/Data/Summary/Double.hs
Expand Up @@ -57,8 +57,8 @@ instance Monoid Summary where
mempty = empty
mappend = union

instance NFData Summary where
rnf s = s `seq` ()
instance NFData Summary


-- | Get a summary of a list of values.
summary :: [Double] -> Summary
Expand Down

0 comments on commit 05cbde7

Please sign in to comment.