Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class AsInteger a where
- class Monoid g => CyclicGroup g where
- sumG :: (Foldable t, CyclicGroup g) => t g -> g
- class FromX a where
- yFromX :: a -> LargestY -> Maybe a
- isLargestY :: a -> Bool
- class Validate a where
- isValidElement :: a -> Bool
Documentation
class Monoid g => CyclicGroup g where Source #
order :: Proxy g -> Integer Source #
expn :: AsInteger e => g -> e -> g Source #
random :: MonadRandom m => g -> m g Source #
Instances
CyclicGroup GT Source # | |
CyclicGroup G2 Source # | |
CyclicGroup G1 Source # | |
sumG :: (Foldable t, CyclicGroup g) => t g -> g Source #
Sum all the elements of some container according to its group structure.
class Validate a where Source #
isValidElement :: a -> Bool Source #
Instances
Validate GT Source # | |
Defined in Pairing.Group isValidElement :: GT -> Bool Source # | |
Validate G2 Source # | |
Defined in Pairing.Group isValidElement :: G2 -> Bool Source # | |
Validate G1 Source # | |
Defined in Pairing.Group isValidElement :: G1 -> Bool Source # |