Hoogle Search

Within LTS Haskell 24.69 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. data CloseType

    amqp Network.AMQP.Types

    describes whether a channel was closed by user-request (Normal) or by an AMQP exception (Abnormal)

  2. class Monad m => ExplSet (m :: Type -> Type) s

    apecs Apecs.Core

    Stores that can be written.

  3. explSet :: ExplSet m s => s -> Int -> Elem s -> m ()

    apecs Apecs.Core

    Writes a component to the store.

  4. asSetOfPreimages :: (Ord a, Semiring a) => (forall b . Semiring b => (a -> b) -> a -> b) -> a -> Set a

    arithmoi Math.NumberTheory.ArithmeticFunctions.Inverse

    Helper to extract a set of preimages for inverseTotient or inverseSigma.

  5. inverseTotient :: (Semiring b, Integral a, Euclidean a, UniqueFactorisation a) => (a -> b) -> a -> b

    arithmoi Math.NumberTheory.ArithmeticFunctions.Inverse

    The inverse for totient function. The return value is parameterized by a Semiring, which allows various applications by providing different (multiplicative) embeddings. E. g., list all preimages (see a helper asSetOfPreimages):

    >>> import qualified Data.Set as S
    
    >>> import Data.Semigroup
    
    >>> S.mapMonotonic getProduct (inverseTotient (S.singleton . Product) 120)
    fromList [143,155,175,183,225,231,244,248,286,308,310,350,366,372,396,450,462]
    
    Count preimages:
    >>> inverseTotient (const 1) 120
    17
    
    Sum preimages:
    >>> inverseTotient id 120
    4904
    
    Find minimal and maximal preimages:
    >>> unMinWord (inverseTotient MinWord 120)
    143
    
    >>> unMaxWord (inverseTotient MaxWord 120)
    462
    

  6. module Math.NumberTheory.Primes.IntSet

    A newtype wrapper around IntSet. This module is intended to be imported qualified, e. g.,

    import Math.NumberTheory.Primes.IntSet (PrimeIntSet)
    import qualified Math.NumberTheory.Primes.IntSet as PrimeIntSet
    

  7. data PrimeIntSet

    arithmoi Math.NumberTheory.Primes.IntSet

    A set of Prime integers.

  8. isProperSubsetOf :: PrimeIntSet -> PrimeIntSet -> Bool

    arithmoi Math.NumberTheory.Primes.IntSet

    Check whether the first argument is a proper subset of the second one.

  9. isSubsetOf :: PrimeIntSet -> PrimeIntSet -> Bool

    arithmoi Math.NumberTheory.Primes.IntSet

    Check whether the first argument is a subset of the second one.

  10. unPrimeIntSet :: PrimeIntSet -> IntSet

    arithmoi Math.NumberTheory.Primes.IntSet

    Convert to a set of integers.

Page 1545 of many | Previous | Next