feat(library/init/io): IO.userError
This commit is contained in:
parent
c10a99e96f
commit
d4aab31ada
1 changed files with 3 additions and 0 deletions
|
|
@ -30,6 +30,9 @@ like in https://doc.rust-lang.org/std/IO/enum.ErrorKind.html
|
|||
@[derive HasToString Inhabited]
|
||||
def IO.error := String
|
||||
|
||||
def IO.userError (s : String) : IO.error :=
|
||||
s
|
||||
|
||||
abbrev IO : Type → Type := EIO IO.error
|
||||
|
||||
@[extern "lean_io_unsafe"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue