Skip to content

Commit 22e0e40

Browse files
authored
Add missing doc about strictness (#255)
1 parent ed4e3f5 commit 22e0e40

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Data/HashMap/Lazy.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ import Prelude ()
102102
--
103103
-- This module satisfies the following strictness property:
104104
--
105-
-- * Key arguments are evaluated to WHNF
105+
-- * Key arguments are evaluated to WHNF.

Data/HashMap/Strict.hs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,12 @@ module Data.HashMap.Strict
9696
import Data.HashMap.Strict.Base as HM
9797
import qualified Data.HashSet.Base as HS
9898
import Prelude ()
99+
100+
-- $strictness
101+
--
102+
-- This module satisfies the following strictness properties:
103+
--
104+
-- 1. Key arguments are evaluated to WHNF;
105+
--
106+
-- 2. Keys and values are evaluated to WHNF before they are stored in
107+
-- the map.

0 commit comments

Comments
 (0)