polysemy-1.2.1.0: Higher-order, low-boilerplate, zero-cost free monads.

Polysemy.Internal.CustomErrors.Redefined

Description

This code is copied verbatim from Errors due to limitations in the (GHC 8.6) plugin machinery. See #152 for more info.

Synopsis

# Documentation

type WhenStuck expr b = IfStuck expr b NoErrorFcf Source #

Like IfStuck, but specialized to the case when you don't want to do anything if expr isn't stuck.

type UnlessStuck expr c = IfStuck expr NoError c Source #

Like IfStuck, but leaves no residual constraint when expr is stuck. This can be used to ensure an expression isn't stuck before analyzing it further.