Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions effectful-core/src/Effectful/Internal/Monad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,15 @@ instance MonadFix (Eff es) where
----------------------------------------
-- NonDet

-- | Provide the ability to use the 'Alternative' and 'MonadPlus' instance for
-- 'Eff'.
--
-- @since 2.2.0.0
{-| Provide the ability to use the 'Alternative' and 'MonadPlus' instance for
'Eff'.

'NonDet' does not backtrack. Formally, it obeys the "left-catch" law for 'MonadPlus',
rather than the "left-distribution" law. This means that it behaves more like 'Maybe'
than '[]'.

@since 2.2.0.0
-}
data NonDet :: Effect where
Empty :: NonDet m a
(:<|>:) :: m a -> m a -> NonDet m a
Expand Down
Loading