@@ -76,7 +76,7 @@ import qualified Data.IntMap as IntMap
7676
7777#if !(MIN_VERSION_base(4,16,0))
7878import Data.Semigroup (Option (.. ))
79- #endif
79+ #endif
8080
8181import Data.These
8282import Data.These.Combinators
@@ -95,7 +95,7 @@ oops = error . ("Data.Align: internal error: " ++)
9595-- The laws of 'align' and 'zip' resemble lattice laws.
9696-- There is a plenty of laws, but they are simply satisfied.
9797--
98- -- And an addition property if @f@ is 'Foldable',
98+ -- And an additional property if @f@ is 'Foldable',
9999-- which tries to enforce 'align'-feel:
100100-- neither values are duplicated nor lost.
101101--
@@ -139,16 +139,6 @@ oops = error . ("Data.Align: internal error: " ++)
139139-- ≡ mapMaybe justHere (toList (align x y))
140140-- @
141141--
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- --
152142class Functor f => Semialign f where
153143 -- | Analogous to @'zip'@, combines two structures by taking the union of
154144 -- their shapes and using @'These'@ to hold the elements.
0 commit comments