Closed
Description
Trying to check my development Type-preserving compilation via dependently typed syntax (SPLS March 2023) with the current standard library, I get a failure for a trivial reason:
The module IO.Primitive doesn't export the following:
return
when scope checking the declaration
open import IO.Primitive public using (return; _>>=_)
In this state, I see no easy way to make my development work with both std-lib 1.7.1/2 and 2.0.
An easy fix would be to restore return
to this module with the alias return = pure
which could maybe be coming with a deprecation warning.
(Though in my view there is no consensus in the FP community that return
is a bad word and pure
the good word. Esp. when the return
statement is the last of my function, it makes perfectly sense to say return result
rather than pure result
).
Ref: https://github.com/agda/agda-stdlib/blame/master/src/IO/Primitive.agda