wai-cryptocookie-0.0.1: Encrypted cookies for WAI
Safe HaskellNone
LanguageGHC2021

Wai.CryptoCookie.Encoding

Description

You will need to import this module if you are planning to define or use a Encoding other than the defaults provided by this library.

Synopsis

Documentation

data Encoding a Source #

How to encode and decode a value of type a into a ByteString.

Constructors

Encoding 

Fields

aeson :: (FromJSON a, ToJSON a) => Encoding a Source #

Encode and decode use ToJSON and FromJSON from the aeson library.

binary :: Binary a => Encoding a Source #

Encode and decode use Binary from the binary library.