Module

Data.Argonaut.Encode.Generic

#EncodeRep

class EncodeRep r  where

Members

Instances

#EncodeLiteral

class EncodeLiteral r  where

Members

Instances

#encodeRep

encodeRep :: forall r. EncodeRep r => r -> Json

#genericEncodeJson

genericEncodeJson :: forall a r. Generic a r => EncodeRep r => a -> Json

Encode any Generic data structure into Json.

#genericEncodeJsonWith

genericEncodeJsonWith :: forall a r. Generic a r => EncodeRep r => Encoding -> a -> Json

Encode any Generic data structure into Json. Takes a record for encoding settings.

#encodeLiteralSum

encodeLiteralSum :: forall a r. Generic a r => EncodeLiteral r => a -> Json

A function for encoding Generic sum types using string literal representations.

#encodeLiteralSumWithTransform

encodeLiteralSumWithTransform :: forall a r. Generic a r => EncodeLiteral r => (String -> String) -> a -> Json

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

Modules