Skip to content

Add example to readme of automatic decoding into simple record types #48

Closed
@chexxor

Description

@chexxor

I heard this library now has automatic decoding into a plain record type, like simple-json is known for.
#46

It would be nice to see in the README that this library has this functionality, and to see an example of how to use it.

I guess it would be used something like this:

testDecode :: Maybe { a :: Int, b :: String }
testDecode = decodeJson """ { a: 123, b: "xyz" } """

Metadata

Metadata

Labels

type: documentationImprovements or additions to documentation.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions