HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulenumeric-prelude-0.4.4Haskell98

MathObj.Permutation.CycleList.Check

  • 2 types
  • 8 values
newtypenewtype Cycle i
#

We shall make a little bit of a hack here, enabling us to use additive or multiplicative syntax for groups as we wish by simply instantiating Num with both operations corresponding to the group operation of the permutation group we're studying

There are quite a few way we could represent elements of permutation groups: the images in a row, a list of the cycles, et.c. All of these differ highly in how complex various operations end up being.

Constructors

Instances3Eq, Read, Show
  • Eq i => Eq (Cycle i)Defined in numeric-prelude-0.4.4 · MathObj.Permutation.CycleList.Check
  • Read i => Read (Cycle i)Defined in numeric-prelude-0.4.4 · MathObj.Permutation.CycleList.Check
  • Show i => Show (Cycle i)Defined in numeric-prelude-0.4.4 · MathObj.Permutation.CycleList.Check
datadata T i
#

Constructors

Instances5Eq, Ord, Show, C
  • C TDefined in numeric-prelude-0.4.4 · MathObj.Permutation.CycleList.Check
  • Ix i => Eq (T i)Defined in numeric-prelude-0.4.4 · MathObj.Permutation.CycleList.Check

    These instances may need more work They involve converting a permutation to a table.

  • Ix i => Ord (T i)Defined in numeric-prelude-0.4.4 · MathObj.Permutation.CycleList.Check
  • Show i => Show (T i)Defined in numeric-prelude-0.4.4 · MathObj.Permutation.CycleList.Check
  • Ix i => C (T i)Defined in numeric-prelude-0.4.4 · MathObj.Permutation.CycleList.Check
valuefromCycles :: (i, i) -> [[i]] -> T i
#

Does not check whether the input values are in range.