Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Language.Hasmtlib.Lens
Contents
Synopsis
- somePlate :: forall t f. (KnownSMTSort t, Applicative f) => (Expr t -> f (Expr t)) -> forall s. KnownSMTSort s => Expr s -> f (Expr s)
Documentation
somePlate :: forall t f. (KnownSMTSort t, Applicative f) => (Expr t -> f (Expr t)) -> forall s. KnownSMTSort s => Expr s -> f (Expr s) Source #
Apply the plate
-function f
for given Expr
expr
if possible.
Otherwise try to apply f
for the children of expr
.
**Caution for quantified expressions:** 'plate-function' f
will only be applied if quantification already has taken place.(&&)
Therefore make sure quantify
has been run before.
Otherwise the quantified expression and therefore all it's sub-expressions will not have f
applied.