Hoogle Search
Within LTS Haskell 24.63 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
bifor :: (Bitraversable t, Applicative f) => t a b -> (a -> f c) -> (b -> f d) -> f (t c d)relude Relude.Foldable.Reexport bifor is bitraverse with the structure as the first argument. For a version that ignores the results, see bifor_.
Examples
Basic usage:>>> bifor (Left []) listToMaybe (find even) Nothing
>>> bifor (Left [1, 2, 3]) listToMaybe (find even) Just (Left 1)
>>> bifor (Right [4, 5]) listToMaybe (find even) Just (Right 4)
>>> bifor ([1, 2, 3], [4, 5]) listToMaybe (find even) Just (1,4)
>>> bifor ([], [4, 5]) listToMaybe (find even) Nothing
bifor_ :: (Bifoldable t, Applicative f) => t a b -> (a -> f c) -> (b -> f d) -> f ()relude Relude.Foldable.Reexport As bitraverse_, but with the structure as the primary argument. For a version that doesn't ignore the results, see bifor.
Examples
Basic usage:>>> bifor_ ("Hello", True) print (print . show) "Hello" "True">>> bifor_ (Right True) print (print . show) "True"
>>> bifor_ (Left "Hello") print (print . show) "Hello"
infoRegisteredNames :: ProcessInfo -> [String]distributed-process Control.Distributed.Process No documentation available.
uforward :: Message -> ProcessId -> Process ()distributed-process Control.Distributed.Process Forward a raw Message to the given ProcessId. Unlike forward, this function is insensitive to reconnect. It will try to send the message regardless of the history of connection failures between the nodes.
infoRegisteredNames :: ProcessInfo -> [String]distributed-process Control.Distributed.Process.Internal.Primitives No documentation available.
uforward :: Message -> ProcessId -> Process ()distributed-process Control.Distributed.Process.Internal.Primitives Forward a raw Message to the given ProcessId. Unlike forward, this function is insensitive to reconnect. It will try to send the message regardless of the history of connection failures between the nodes.
infoRegisteredNames :: ProcessInfo -> [String]distributed-process Control.Distributed.Process.Internal.Types No documentation available.
BeforeNonBlank :: Doc a -> Doc adoclayout Text.DocLayout Doc that renders only before nonblank.
beforeNonBlank :: Doc a -> Doc adoclayout Text.DocLayout beforeNonBlank d conditionally includes d unless it is followed by blank space.
-
fmt Fmt.Internal.Template No documentation available.