Skip to content

Commit 30d2795

Browse files
committed
Add stability warnings to internal modules
…brazenly copied from containers.
1 parent 428bd8f commit 30d2795

File tree

6 files changed

+86
-3
lines changed

6 files changed

+86
-3
lines changed

Data/HashMap/Internal.hs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@
1111
#endif
1212
{-# OPTIONS_GHC -fno-full-laziness -funbox-strict-fields #-}
1313

14+
-- | = WARNING
15+
--
16+
-- This module is considered __internal__.
17+
--
18+
-- The Package Versioning Policy __does not apply__.
19+
--
20+
-- The contents of this module may change __in any way whatsoever__
21+
-- and __without any warning__ between minor versions of this package.
22+
--
23+
-- Authors importing this module are expected to track development
24+
-- closely.
25+
1426
module Data.HashMap.Internal
1527
(
1628
HashMap(..)

Data/HashMap/Internal/Array.hs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
{-# LANGUAGE BangPatterns, CPP, MagicHash, Rank2Types, UnboxedTuples, ScopedTypeVariables #-}
22
{-# OPTIONS_GHC -fno-full-laziness -funbox-strict-fields #-}
33

4-
-- | Zero based arrays.
4+
-- | = WARNING
5+
--
6+
-- This module is considered __internal__.
7+
--
8+
-- The Package Versioning Policy __does not apply__.
9+
--
10+
-- The contents of this module may change __in any way whatsoever__
11+
-- and __without any warning__ between minor versions of this package.
12+
--
13+
-- Authors importing this module are expected to track development
14+
-- closely.
15+
--
16+
-- = Description
17+
--
18+
-- Zero based arrays.
519
--
620
-- Note that no bounds checking are performed.
721
module Data.HashMap.Internal.Array

Data/HashMap/Internal/List.hs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
{-# LANGUAGE ScopedTypeVariables #-}
22
{-# OPTIONS_GHC -fno-full-laziness -funbox-strict-fields #-}
3-
-- | Extra list functions
3+
4+
-- | = WARNING
5+
--
6+
-- This module is considered __internal__.
7+
--
8+
-- The Package Versioning Policy __does not apply__.
9+
--
10+
-- The contents of this module may change __in any way whatsoever__
11+
-- and __without any warning__ between minor versions of this package.
12+
--
13+
-- Authors importing this module are expected to track development
14+
-- closely.
15+
--
16+
-- = Description
17+
--
18+
-- Extra list functions
419
--
520
-- In separate module to aid testing.
621
module Data.HashMap.Internal.List

Data/HashMap/Internal/Strict.hs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@
1111
-- Stability : provisional
1212
-- Portability : portable
1313
--
14+
-- = WARNING
15+
--
16+
-- This module is considered __internal__.
17+
--
18+
-- The Package Versioning Policy __does not apply__.
19+
--
20+
-- The contents of this module may change __in any way whatsoever__
21+
-- and __without any warning__ between minor versions of this package.
22+
--
23+
-- Authors importing this module are expected to track development
24+
-- closely.
25+
--
26+
-- = Description
27+
--
1428
-- A map from /hashable/ keys to values. A map cannot contain
1529
-- duplicate keys; each key can map to at most one value. A 'HashMap'
1630
-- makes no guarantees as to the order of its elements.

Data/HashMap/Internal/Unsafe.hs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,21 @@
44
{-# LANGUAGE MagicHash, Rank2Types, UnboxedTuples #-}
55
#endif
66

7-
-- | This module exports a workaround for this bug:
7+
-- | = WARNING
8+
--
9+
-- This module is considered __internal__.
10+
--
11+
-- The Package Versioning Policy __does not apply__.
12+
--
13+
-- The contents of this module may change __in any way whatsoever__
14+
-- and __without any warning__ between minor versions of this package.
15+
--
16+
-- Authors importing this module are expected to track development
17+
-- closely.
18+
--
19+
-- = Description
20+
--
21+
-- This module exports a workaround for this bug:
822
--
923
-- http://hackage.haskell.org/trac/ghc/ticket/5916
1024
--

Data/HashSet/Internal.hs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@
1616
-- Stability : provisional
1717
-- Portability : portable
1818
--
19+
-- = WARNING
20+
--
21+
-- This module is considered __internal__.
22+
--
23+
-- The Package Versioning Policy __does not apply__.
24+
--
25+
-- The contents of this module may change __in any way whatsoever__
26+
-- and __without any warning__ between minor versions of this package.
27+
--
28+
-- Authors importing this module are expected to track development
29+
-- closely.
30+
--
31+
-- = Description
32+
--
1933
-- A set of /hashable/ values. A set cannot contain duplicate items.
2034
-- A 'HashSet' makes no guarantees as to the order of its elements.
2135
--

0 commit comments

Comments
 (0)