Skip to content

Commit

Permalink
fix: signatures of <#> and <#!> forcing String error context
Browse files Browse the repository at this point in the history
In particular this meant the operators didn't work with Maybe.
  • Loading branch information
lrworth committed Nov 9, 2023
1 parent 96479bd commit 87c1e1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Control/Monad/Fail/Hoist.hs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ infixl 8 <%!#>
-- ('<#>') :: 'MonadFail' m => 'Either' a b -> String -> m b
-- @
(<#>)
:: HoistFail m t String
:: HoistFail m t e
=> t a
-> String
-> m a
Expand All @@ -205,7 +205,7 @@ infixl 8 <#>
-- ('<!#>') :: 'MonadFail m => 'ExceptT' a m b -> String -> 'ExceptT' a m b
-- @
(<!#>)
:: HoistFail m t String
:: HoistFail m t e
=> m (t a)
-> String
-> m a
Expand Down

0 comments on commit 87c1e1f

Please sign in to comment.