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.Base

Synopsis
classclass Fractional k => FiniteField k where

Type class for finite fields

Methods

  • order :: k -> Integer

    The order is number of elements of a finite field k. It of the form p^n, where p is prime number called the characteristic of the field, and n is a positive integer.

  • char :: k -> Integer

    The characteristic of a field, p.

  • pthRoot :: k -> k

    The inverse of Frobenius endomorphism x ↦ x^p.

  • allValues :: [k]

    All values of a field

Instances1FiniteField