Extra ToJson and FromJson instances #
@[instance_reducible]
Equations
- ImportGraph.Lean.Json.instToJsonUInt32_importGraph = { toJson := fun (uint : UInt32) => Lean.Json.num (Lean.JsonNumber.fromNat uint.toNat) }
Instances For
@[instance_reducible]
Equations
- ImportGraph.Lean.Json.instFromJsonUInt32_importGraph = { fromJson? := fun (uint : Lean.Json) => Except.map UInt32.ofNat (Lean.fromJson? uint) }
Instances For
Equations
- One or more equations did not get rendered due to their size.
- ImportGraph.Lean.Json.instToJsonError_importGraph.toJson (IO.Error.otherError a a_1) = Lean.Json.mkObj [("otherError", Lean.Json.mkObj [("osCode", Lean.toJson a), ("details", Lean.toJson a_1)])]
- ImportGraph.Lean.Json.instToJsonError_importGraph.toJson (IO.Error.timeExpired a a_1) = Lean.Json.mkObj [("timeExpired", Lean.Json.mkObj [("osCode", Lean.toJson a), ("details", Lean.toJson a_1)])]
- ImportGraph.Lean.Json.instToJsonError_importGraph.toJson IO.Error.unexpectedEof = Lean.toJson "unexpectedEof"
- ImportGraph.Lean.Json.instToJsonError_importGraph.toJson (IO.Error.userError a) = Lean.Json.mkObj [("userError", Lean.Json.mkObj [("msg", Lean.toJson a)])]
Instances For
@[instance_reducible]
@[instance_reducible]
@[instance_reducible]
Equations
- One or more equations did not get rendered due to their size.