Module

Data.Argonaut.Decode.Generic.Rep

Package
purescript-argonaut-generic
Repository
purescript-contrib/purescript-argonaut-generic

#DecodeRepArgs Source

#DecodeLiteral Source

#decodeRep Source

decodeRep :: forall r. DecodeRep r => Json -> Either String r

#genericDecodeJson Source

genericDecodeJson :: forall r a. Generic a r => DecodeRep r => Json -> Either String a

Decode Json representation of a value which has a Generic type.

#genericDecodeJsonWith Source

genericDecodeJsonWith :: forall r a. Generic a r => DecodeRep r => Encoding -> Json -> Either String a

Decode Json representation of a value which has a Generic type.

#decodeLiteralSum Source

decodeLiteralSum :: forall r a. Generic a r => DecodeLiteral r => Json -> Either String a

A function for decoding Generic sum types using string literal representations

#decodeLiteralSumWithTransform Source

decodeLiteralSumWithTransform :: forall r a. Generic a r => DecodeLiteral r => (String -> String) -> Json -> Either String a

A function for decoding Generic sum types using string literal representations Takes a function for transforming the tag name in encoding