Skip to content

Commit

Permalink
More doc nits
Browse files Browse the repository at this point in the history
  • Loading branch information
JackKelly-Bellroy committed May 6, 2024
1 parent c33e303 commit 3162877
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Control/Monad/Error/Hoist.hs
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ hoistErrorM e m = m >>= hoistError e
-- operator handles values that are already "in a monad".
--
-- * The additional @%@ in @('<%?>')@ and @('<%!?>')@ means the
-- operator takes a function argument, which is applies to the error
-- operator takes a function argument, which it applies to the error
-- from the partiality type. (The mnemonic is that @%@ sometimes
-- means "mod", and we use "mod" as a shorthand for "modify". It's a
-- means "mod", and we abuse "mod" as a shorthand for "modify". It's a
-- long bow, but @lens@ uses the same mnemonic.)

-- | A flipped synonym for 'hoistError'.
Expand Down
2 changes: 1 addition & 1 deletion src/Control/Monad/Fail/Hoist.hs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ hoistFailM'
-> m a
hoistFailM' = hoistFailM id

-- | A flipped synonym for 'hoistFail'. Mnemonic: @#@ looks a bit like @F@
-- | A flipped synonym for 'hoistFail'. Mnemonic: @#@ looks a bit like @F@.
--
-- @
-- ('<%#>') :: 'MonadFail' m => 'Maybe' a -> (() -> e) -> m a
Expand Down

0 comments on commit 3162877

Please sign in to comment.