This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Std | |
| -- FIXME -- surely something like this is in Std? | |
| def Option.except {m α e} [Pure m] [MonadExcept e m] (self: Option α) (err : e): m α := | |
| match self with | |
| | .none => throw err | |
| | .some v => pure v | |
| -- STATE, INSTRUCTIONS, LABELS |