@@ -76,7 +76,7 @@ import qualified Data.IntMap as IntMap
76
76
77
77
#if !(MIN_VERSION_base(4,16,0))
78
78
import Data.Semigroup (Option (.. ))
79
- #endif
79
+ #endif
80
80
81
81
import Data.These
82
82
import Data.These.Combinators
@@ -95,7 +95,7 @@ oops = error . ("Data.Align: internal error: " ++)
95
95
-- The laws of 'align' and 'zip' resemble lattice laws.
96
96
-- There is a plenty of laws, but they are simply satisfied.
97
97
--
98
- -- And an addition property if @f@ is 'Foldable',
98
+ -- And an additional property if @f@ is 'Foldable',
99
99
-- which tries to enforce 'align'-feel:
100
100
-- neither values are duplicated nor lost.
101
101
--
@@ -139,16 +139,6 @@ oops = error . ("Data.Align: internal error: " ++)
139
139
-- ≡ mapMaybe justHere (toList (align x y))
140
140
-- @
141
141
--
142
- --
143
- -- And an addition property if @f@ is 'Foldable',
144
- -- which tries to enforce 'align'-feel:
145
- -- neither values are duplicated nor lost.
146
- --
147
- -- @
148
- -- toList x = toListOf (folded . here) (align x y)
149
- -- = mapMaybe justHere (toList (align x y))
150
- -- @
151
- --
152
142
class Functor f => Semialign f where
153
143
-- | Analogous to @'zip'@, combines two structures by taking the union of
154
144
-- their shapes and using @'These'@ to hold the elements.
0 commit comments