HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulefinite-field-0.10.0Haskell2010

Data.FiniteField.PrimeField

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

References:

Contents
  1. Template haskell utilities
Synopsis
newtypenewtype PrimeField (p :: Nat)

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

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

Instances11Bounded, Enum, Eq, Fractional, Num, Ord, …

Template haskell utilities

Here is usage example for primeField:

a :: $(primeField 15485867)
a = 1