lol-0.2.0.0: A library for lattice cryptography.

Safe HaskellNone
LanguageHaskell2010

Crypto.Lol.Reflects

Description

Generic interface for reflecting types to values.

Synopsis

Documentation

class Reflects a i where Source

Reflection without fundep, and with tagged value. Intended only for low-level code; build specialized wrappers around it for specific functionality.

Methods

value :: Tagged a i Source

Reflect the value assiated with the type a.

Instances

Reifies * rei a => Reflects * rei a Source 
(KnownNat a, C i) => Reflects Nat a i Source 
(Prim p, C i) => Reflects Prime p i Source 
(PPow pp, C i) => Reflects PrimePower pp i Source 
(Fact m, C i) => Reflects Factored m i Source