We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7874960 commit 4ac38abCopy full SHA for 4ac38ab
effectful-core/src/Effectful/Internal/Monad.hs
@@ -338,6 +338,10 @@ instance MonadFix (Eff es) where
338
-- | Provide the ability to use the 'Alternative' and 'MonadPlus' instance for
339
-- 'Eff'.
340
--
341
+-- /Note:/ 'NonDet' does not backtrack. Formally, it obeys the "left-catch" law
342
+-- for 'MonadPlus', rather than the "left-distribution" law. This means that it
343
+-- behaves more like 'Maybe' than @[]@.
344
+--
345
-- @since 2.2.0.0
346
data NonDet :: Effect where
347
Empty :: NonDet m a
0 commit comments