lol-0.5.0.1: 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.

Minimal complete definition

value

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 # 

Methods

value :: Tagged q r i Source #

(KnownNat a, C i) => Reflects Nat a i Source # 

Methods

value :: Tagged a i i Source #

(Prime p, C i) => Reflects PrimeBin p i Source # 

Methods

value :: Tagged p i i Source #

(PPow pp, C i) => Reflects PrimePower pp i Source # 

Methods

value :: Tagged pp i i Source #

(Fact m, C i) => Reflects Factored m i Source # 

Methods

value :: Tagged m i i Source #