Hoogle Search
Within LTS Haskell 24.70 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
amqp Network.AMQP.Types describes whether a channel was closed by user-request (Normal) or by an AMQP exception (Abnormal)
class Monad m =>
ExplSet (m :: Type -> Type) sapecs Apecs.Core Stores that can be written.
explSet :: ExplSet m s => s -> Int -> Elem s -> m ()apecs Apecs.Core Writes a component to the store.
-
arithmoi Math.NumberTheory.ArithmeticFunctions.Inverse Helper to extract a set of preimages for inverseTotient or inverseSigma.
inverseTotient :: (Semiring b, Integral a, Euclidean a, UniqueFactorisation a) => (a -> b) -> a -> barithmoi 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
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
-
arithmoi Math.NumberTheory.Primes.IntSet A set of Prime integers.
isProperSubsetOf :: PrimeIntSet -> PrimeIntSet -> Boolarithmoi Math.NumberTheory.Primes.IntSet Check whether the first argument is a proper subset of the second one.
isSubsetOf :: PrimeIntSet -> PrimeIntSet -> Boolarithmoi Math.NumberTheory.Primes.IntSet Check whether the first argument is a subset of the second one.
unPrimeIntSet :: PrimeIntSet -> IntSetarithmoi Math.NumberTheory.Primes.IntSet Convert to a set of integers.