Skip to content

Commit

Permalink
Merge pull request #194 from ncfavier/fix-semialign-doc
Browse files Browse the repository at this point in the history
Fix Semialign doc
  • Loading branch information
phadej authored Feb 19, 2024
2 parents 7b9951b + f9c8b7c commit 5ba75bf
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions semialign/src/Data/Semialign/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ import qualified Data.IntMap as IntMap

#if !(MIN_VERSION_base(4,16,0))
import Data.Semigroup (Option (..))
#endif
#endif

import Data.These
import Data.These.Combinators
Expand All @@ -95,7 +95,7 @@ oops = error . ("Data.Align: internal error: " ++)
-- The laws of 'align' and 'zip' resemble lattice laws.
-- There is a plenty of laws, but they are simply satisfied.
--
-- And an addition property if @f@ is 'Foldable',
-- And an additional property if @f@ is 'Foldable',
-- which tries to enforce 'align'-feel:
-- neither values are duplicated nor lost.
--
Expand Down Expand Up @@ -139,16 +139,6 @@ oops = error . ("Data.Align: internal error: " ++)
-- ≡ mapMaybe justHere (toList (align x y))
-- @
--
--
-- And an addition property if @f@ is 'Foldable',
-- which tries to enforce 'align'-feel:
-- neither values are duplicated nor lost.
--
-- @
-- toList x = toListOf (folded . here) (align x y)
-- = mapMaybe justHere (toList (align x y))
-- @
--
class Functor f => Semialign f where
-- | Analogous to @'zip'@, combines two structures by taking the union of
-- their shapes and using @'These'@ to hold the elements.
Expand Down

0 comments on commit 5ba75bf

Please sign in to comment.