genericserialize-0.1: Serialization library using Data.Generics

Data.Generics.Serialization.SExp

Description

This module implements serialization to/from a subset of R5RS s-expressions. Several limitations currently exist:

  • Vectors are not recognized or generated.
  • (Quasi)quote notation is not supported.
  • Constructor names are parsed case-sensitively.

Synopsis

Documentation

sexpSerialize :: (Data a, MonadWStream m Char) => a -> m ()Source

Serialize an arbitrary value to an s-expression.

sexpDeserialize :: (Data a, MonadRStream m Char) => m aSource

Deserialize an arbitrary value from an s-expression.