Skip to content

Commit 5ba75bf

Browse files
authoredFeb 19, 2024··
Merge pull request #194 from ncfavier/fix-semialign-doc
Fix Semialign doc
2 parents 7b9951b + f9c8b7c commit 5ba75bf

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed
 

‎semialign/src/Data/Semialign/Internal.hs

+2-12
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ import qualified Data.IntMap as IntMap
7676

7777
#if !(MIN_VERSION_base(4,16,0))
7878
import Data.Semigroup (Option (..))
79-
#endif
79+
#endif
8080

8181
import Data.These
8282
import 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-
--
152142
class 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

Comments
 (0)
Please sign in to comment.