Hoogle Search
Within LTS Haskell 24.34 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
Compute and verify checksums of ISBN, IBAN, etc. Compute and verify checksums of various identifiers, such as IBAN, ISBN, EAN, Germany's Citizen Card. Related package: isbn
checksum :: String -> Exceptional String Intchecksum Math.Checksum.EAN checksum "400638129240" == Success 5
checksum :: String -> String -> Exceptional String Intchecksum Math.Checksum.IBAN checksum "DE" "210501700012345678" == Success 68
checksum :: String -> Exceptional String Intchecksum Math.Checksum.ISBN checksum "346811124" == Success 10
type
Consumer i (m :: Type -> Type) r = forall o . () => ConduitT i o m rclassy-prelude-yesod ClassyPrelude.Yesod A component which consumes a stream of input values and produces a final result, regardless of the output stream. A Consumer is a generalization of a Sink, and can be used as either a Sink or a Conduit. Since 1.0.0
asum :: (Foldable t, Alternative f) => t (f a) -> f aclassy-prelude-yesod ClassyPrelude.Yesod The sum of a collection of actions using (<|>), generalizing concat. asum is just like msum, but generalised to Alternative.
Examples
Basic usage:>>> asum [Just "Hello", Nothing, Just "World"] Just "Hello"
asumC :: forall (m :: Type -> Type) f a o . (Monad m, Alternative f) => ConduitT (f a) o m (f a)classy-prelude-yesod ClassyPrelude.Yesod Alternatively combine all values in the stream.
isEntitySum :: EntityDef -> Boolclassy-prelude-yesod ClassyPrelude.Yesod No documentation available.
osum :: (MonoFoldable mono, Num (Element mono)) => mono -> Element monoclassy-prelude-yesod ClassyPrelude.Yesod osum computes the sum of the numbers of a monomorphic container.
toConsumer :: forall (m :: Type -> Type) a b o . Monad m => ConduitT a Void m b -> ConduitT a o m bclassy-prelude-yesod ClassyPrelude.Yesod