cooked-validators
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cooked.Skeleton.Label

Description

This module exposes the labels that can be used to stamp TxSkel with additional arbitrary pieces of information.

Synopsis

Documentation

type LabelConstrs x = (PrettyCooked x, Show x, Typeable x, Eq x, Ord x) Source #

These are type constraints that must be satisfied by labels

data TxSkelLabel where Source #

Labels are arbitrary information that can be added to skeleton. They are meant to be pretty-printed. The common use case we currently have is to tag skeletons that have been modified by tweaks and automated attacks.

Constructors

TxSkelLabel :: LabelConstrs x => x -> TxSkelLabel 

txSkelLabelTypedP :: LabelConstrs a => Prism' TxSkelLabel a Source #

A prism to create a label and retrieve a typed content