Skip to content

Commit

Permalink
Support Haddock's shaded inline code with rounded corners
Browse files Browse the repository at this point in the history
With background shading the rounded corners between two immediately
consecutive inline code spans would be visible. Merges these
inline code spans into a single one to avoid this.
  • Loading branch information
Topsii committed Jan 16, 2025
1 parent b1de045 commit 02c977e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Control/Foldl.hs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ import qualified Data.Semigroupoid
value of type __b__.
-}
data Fold a b
-- | @Fold @ @ step @ @ initial @ @ extract@
-- | @Fold step initial extract@.
= forall x. Fold (x -> a -> x) x (x -> b)

instance Functor (Fold a) where
Expand Down Expand Up @@ -403,7 +403,7 @@ instance Floating b => Floating (Fold a b) where
results in a monadic value of type __m b__.
-}
data FoldM m a b =
-- | @FoldM @ @ step @ @ initial @ @ extract@
-- | @FoldM step initial extract@.
forall x . FoldM (x -> a -> m x) (m x) (x -> m b)

instance Functor m => Functor (FoldM m a) where
Expand Down
2 changes: 1 addition & 1 deletion src/Control/Foldl/NonEmpty.hs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ data Fold1 a b = Fold1 (a -> Fold a b)
step function as the first argument and the initial accumulator as the
second argument, whereas @Fold1_@ takes them in swapped order:
@Fold1_ @ @ initial @ @ step @ @ extract@
@Fold1_ initial step extract@.
While @Fold@ resembles 'Prelude.foldl', @Fold1_@ resembles
'Data.Foldable1.foldlMap1'.
Expand Down

0 comments on commit 02c977e

Please sign in to comment.