lean4-htt/tests/lean/coeM.lean.expected.out
Kyle Miller 321ef5b956
fix: make Lean.Internal.liftCoeM and Lean.Internal.coeM unfold (#3404)
The elaboration function `Lean.Meta.coerceMonadLift?` inserts these
coercion helper functions into a term and tries to unfolded them with
`expandCoe`, but because that function only unfolds up to
reducible-and-instance transparency, these functions were not being
unfolded. The fix here is to give them the `@[reducible]` attribute.
2024-02-27 22:17:46 +00:00

6 lines
106 B
Text

do
let a ← liftM m
pure a.val : ReaderT Int IO Nat
do
let a ← m
pure a.val : EIO IO.Error Nat