Imitate the structure of IOErrorType in Haskell: https://hackage.haskell.org/package/base-4.12.0.0/docs/System-IO-Error.html#t:IOErrorType
- alreadyExists: Option String → UInt32 → String → IO.Error
- otherError: UInt32 → String → IO.Error
- resourceBusy: UInt32 → String → IO.Error
- resourceVanished: UInt32 → String → IO.Error
- unsupportedOperation: UInt32 → String → IO.Error
- hardwareFault: UInt32 → String → IO.Error
- unsatisfiedConstraints: UInt32 → String → IO.Error
- illegalOperation: UInt32 → String → IO.Error
- protocolError: UInt32 → String → IO.Error
- timeExpired: UInt32 → String → IO.Error
- interrupted: String → UInt32 → String → IO.Error
- noFileOrDirectory: String → UInt32 → String → IO.Error
- invalidArgument: Option String → UInt32 → String → IO.Error
- permissionDenied: Option String → UInt32 → String → IO.Error
- resourceExhausted: Option String → UInt32 → String → IO.Error
- inappropriateType: Option String → UInt32 → String → IO.Error
- noSuchThing: Option String → UInt32 → String → IO.Error
- unexpectedEof: IO.Error
- userError: String → IO.Error
Instances For
Equations
- IO.instInhabitedError = { default := IO.Error.alreadyExists default default default }
@[export lean_mk_io_user_error]
Equations
Instances For
Equations
- instCoeStringError = { coe := IO.userError }
@[export lean_mk_io_error_already_exists_file]
Equations
Instances For
@[export lean_mk_io_error_inappropriate_type_file]
Equations
Instances For
@[export lean_mk_io_error_no_such_thing_file]
Equations
Instances For
@[export lean_mk_io_error_permission_denied_file]
Equations
Instances For
@[export lean_mk_io_error_unsupported_operation]
Instances For
@[export lean_mk_io_error_resource_exhausted]
Equations
Instances For
@[export lean_mk_io_error_already_exists]
Equations
Instances For
@[export lean_mk_io_error_inappropriate_type]
Equations
Instances For
@[export lean_mk_io_error_no_such_thing]
Equations
Instances For
@[export lean_mk_io_error_resource_vanished]
Instances For
@[export lean_mk_io_error_resource_busy]
Instances For
@[export lean_mk_io_error_invalid_argument]
Instances For
@[export lean_mk_io_error_other_error]
Instances For
@[export lean_mk_io_error_permission_denied]
Equations
Instances For
@[export lean_mk_io_error_hardware_fault]
Instances For
@[export lean_mk_io_error_unsatisfied_constraints]
Instances For
@[export lean_mk_io_error_illegal_operation]
Instances For
@[export lean_mk_io_error_protocol_error]
Instances For
@[export lean_mk_io_error_time_expired]
Instances For
Equations
- One or more equations did not get rendered due to their size.
- IO.Error.fopenErrorToString gist fn code none = IO.Error.downCaseFirst✝ gist ++ " (error code: " ++ toString code ++ ")\n file: " ++ fn
Instances For
Equations
- IO.Error.instToString = { toString := IO.Error.toString }