finite-field-0.8.0: Finite Fields

Portabilitynon-portable (ScopedTypeVariables, MultiParamTypeClasses, DeriveDataTypeable, TemplateHaskell, BangPatterns)
Stabilityprovisional
Maintainermasahiro.sakai@gmail.com
Safe HaskellNone

Data.FiniteField.PrimeField

Contents

Description

Finite field of prime order p, Fp = Z/pZ.

References:

Synopsis

Documentation

data PrimeField p Source

Finite field of prime order p, Fp = Z/pZ.

NB: Primality of p is assumed, but not checked.

Template haskell utilities

Here is usage example for primeField:

 a :: $(primeField 15485867)
 a = 1

primeField :: Integer -> TypeQSource

Create a PrimeField type