Codec.bend checks
raw source on the hub · import hhefesto-json@1.0.0.0/Codec.bend as Codec
2 imports
import Base import ./Json.bend as J
Types
type js.P source · line 18 · raw
@-A:Data -> @-B:Data -> Data
two values, a Data pair (Bend's & pairs are Types)
js.P@-A:Data -> @-B:Data -> @a:A -> @b:B -> js.P<A, B>
type js.Sh source · line 21 · raw
Data
js.SBooljs.Sh
js.SNatjs.Sh
js.SNumjs.Sh
js.STextjs.Sh
js.SAnyjs.Sh
js.SList@t:js.Sh -> js.Sh
js.SMaybe@t:js.Sh -> js.Sh
js.SPair@a:js.Sh -> @b:js.Sh -> js.Sh
js.SField@k:String -> @t:js.Sh -> @rest:js.Sh -> js.Sh
js.SEndjs.Sh
js.SSum@c1:String -> @a:js.Sh -> @c2:String -> @b:js.Sh -> js.Sh
Definitions
def js.Val source · line 35 · raw
@s:js.Sh -> Data
The type a shape describes
def js.field source · line 61 · raw
@+k:String -> @v:0xd8afce72fe33721bc84d5535590f151d/Json.js.Json -> @o:0xd8afce72fe33721bc84d5535590f151d/Json.js.Json -> 0xd8afce72fe33721bc84d5535590f151d/Json.js.Json
a field before the object of the rest
def js.cons source · line 69 · raw
@x:0xd8afce72fe33721bc84d5535590f151d/Json.js.Json -> @a:0xd8afce72fe33721bc84d5535590f151d/Json.js.Json -> 0xd8afce72fe33721bc84d5535590f151d/Json.js.Json
a value before the array of the rest
def js.to source · line 77 · raw
@+s:js.Sh -> @v:js.Val(s) -> 0xd8afce72fe33721bc84d5535590f151d/Json.js.Json
A value's JSON
def js.get.m source · line 111 · raw
@m:Maybe<&2, 0xd8afce72fe33721bc84d5535590f151d/Json.js.Json> -> @+k:String -> Maybe<&2, 0xd8afce72fe33721bc84d5535590f151d/Json.js.Json>
def js.from.cons source · line 118 · raw
@-A:Data -> @x:Maybe<&2, A> -> @xs:Maybe<&2, List<&2, A>> -> Maybe<&2, List<&2, A>>
def js.from.pair source · line 125 · raw
@-A:Data -> @-B:Data -> @x:Maybe<&2, A> -> @y:Maybe<&2, B> -> Maybe<&2, js.P<A, B>>
def js.from.some source · line 132 · raw
@-A:Data -> @x:Maybe<&2, A> -> Maybe<&2, Maybe<&2, A>>
def js.from.inl source · line 139 · raw
@-A:Data -> @-B:Data -> @x:Maybe<&2, A> -> Maybe<&2, Either<&2, &2, A, B>>
def js.from.inr source · line 146 · raw
@-A:Data -> @-B:Data -> @x:Maybe<&2, B> -> Maybe<&2, Either<&2, &2, A, B>>
def js.from.sum source · line 153 · raw
@one:Bool -> @two:Bool -> @-A:Data -> @-B:Data -> @x:Maybe<&2, A> -> @y:Maybe<&2, B> -> Maybe<&2, Either<&2, &2, A, B>>
def js.tag source · line 162 · raw
@m:Maybe<&2, 0xd8afce72fe33721bc84d5535590f151d/Json.js.Json> -> String
def js.from source · line 170 · raw
@+s:js.Sh -> @+m:Maybe<&2, 0xd8afce72fe33721bc84d5535590f151d/Json.js.Json> -> Maybe<&2, js.Val(s)>
A value read back from JSON that may be missing (an object's field)
def js.decode source · line 205 · raw
@+s:js.Sh -> @t:String -> Maybe<&2, js.Val(s)>
text read as a value of a shape
def js.encode source · line 208 · raw
@+s:js.Sh -> @v:js.Val(s) -> String