Hoogle Search
Within LTS Haskell 24.51 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
(
.: ) :: (c -> d) -> (a -> b -> c) -> a -> b -> dcomposition Data.Composition Compose two functions. f .: g is similar to f . g except that g will be fed two arguments instead of one before handing its result to f. This function is defined as
(f .: g) x y = f (g x y)
Example usage:concatMap :: (a -> [b]) -> [a] -> [b] concatMap = concat .: map
Notice how two arguments (the function and the list) will be given to map before the result is passed to concat. This is equivalent to:concatMap f xs = concat (map f xs)
(
.:. ) :: (d -> e) -> (a -> b -> c -> d) -> a -> b -> c -> ecomposition Data.Composition One compact pattern for composition operators is to "count the dots after the first one", which begins with the common .:, and proceeds by first appending another . and then replacing it with :
(
.:: ) :: (d -> e) -> (a1 -> a2 -> b -> c -> d) -> a1 -> a2 -> b -> c -> ecomposition Data.Composition No documentation available.
(
.::. ) :: (d -> e) -> (a1 -> a2 -> a3 -> b -> c -> d) -> a1 -> a2 -> a3 -> b -> c -> ecomposition Data.Composition No documentation available.
(
.::: ) :: (d -> e) -> (a1 -> a2 -> a3 -> a4 -> b -> c -> d) -> a1 -> a2 -> a3 -> a4 -> b -> c -> ecomposition Data.Composition No documentation available.
-
composition Data.Composition No documentation available.
-
composition Data.Composition No documentation available.
-
composition Data.Composition No documentation available.
-
conduino Data.Conduino The main operator for chaining pipes together. pipe1 .| pipe2 will connect the output of pipe1 to the input of pipe2. Running a pipe will draw from pipe2, and if pipe2 ever asks for input (with await or something similar), it will block until pipe1 outputs something (or signals termination). The structure of a full pipeline usually looks like:
runPipe $ someSource .| somePipe .| someOtherPipe .| someSink
Where you route a source into a series of pipes, which eventually ends up at a sink. runPipe will then produce the result of that sink. (
.:: ) :: (Alternative f, Applicative f) => Lens' a b -> f b -> f (a -> a)configuration-tools Configuration.Utils.CommandLine An operator for applying a setter to an option parser that yields a value. Example usage:
data Auth = Auth { _user ∷ !String , _pwd ∷ !String } user ∷ Functor f ⇒ (String → f String) → Auth → f Auth user f s = (\u → s { _user = u }) <$> f (_user s) pwd ∷ Functor f ⇒ (String → f String) → Auth → f Auth pwd f s = (\p → s { _pwd = p }) <$> f (_pwd s) -- or with lenses and TemplateHaskell just: -- $(makeLenses ''Auth) pAuth ∷ MParser Auth pAuth = id <$< user .:: strOption % long "user" ⊕ short 'u' ⊕ help "user name" <*< pwd .:: strOption % long "pwd" ⊕ help "password for user"