Hoogle Search
Within LTS Haskell 24.48 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
ProtocolEntry :: ProtocolName -> [ProtocolName] -> ProtocolNumber -> ProtocolEntrynetwork-bsd Network.BSD No documentation available.
-
network-bsd Network.BSD No documentation available.
-
network-bsd Network.BSD Protocol number.
pattern
Pseudo_AF_HDRCMPLT :: Familynetwork-bsd Network.BSD Used by BPF to not rewrite hdrs in iface output
pattern
Pseudo_AF_KEY :: Familynetwork-bsd Network.BSD Internal key-management function
pattern
Pseudo_AF_PIP :: Familynetwork-bsd Network.BSD Help Identify PIP packets
pattern
Pseudo_AF_RTIP :: Familynetwork-bsd Network.BSD Help Identify RTIP packets
pattern
Pseudo_AF_XTP :: Familynetwork-bsd Network.BSD eXpress Transfer Protocol (no AF)
module Control.Applicative.
Permutations This module is a generalization of the package parsec-permutation authored by Samuel Hoffstaetter: https://hackage.haskell.org/package/parsec-permutation This module also takes inspiration from the algorithm is described in: Parsing Permutation Phrases, by Arthur Baars, Andres Löh and Doaitse Swierstra. Published as a functional pearl at the Haskell Workshop 2001: https://www.cs.ox.ac.uk/jeremy.gibbons/wg21/meeting56/loeh-paper.pdf From these two works we derive a flexible and general method for parsing permutations over an Applicative structure. Quite useful in conjunction with "Free" constructions of Applicatives, Monads, etc. Other permutation parsing libraries tend towards using special "almost applicative" combinators for construction which denies the library user the ability to lift and unlift permutation parsing into any Applicative computational context. We redefine these combinators as convenience operators here alongside the equivalent Applicative instance. For example, suppose we want to parse a permutation of: an optional string of a's, the character b and an optional c. Using a standard parsing library combinator char (e.g. ReadP) this can be described using the Applicative instance by:
test = runPermutation $ (,,) <$> toPermutationWithDefault "" (some (char 'a')) <*> toPermutation (char 'b') <*> toPermutationWithDefault '_' (char 'c')
data
Permutation (m :: Type -> Type) aparser-combinators Control.Applicative.Permutations An Applicative wrapper-type for constructing permutation parsers.