lol-0.3.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 * q i, C i, C r) => Reflects * q r Source 
(KnownNat a, C i) => Reflects Nat a i Source 
(Prime p, C i) => Reflects PrimeBin p i Source 
(PPow pp, C i) => Reflects PrimePower pp i Source 
(Fact m, C i) => Reflects Factored m i Source