Hoogle Search
Within LTS Haskell 24.39 (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)rio RIO.Prelude 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 ()rio RIO.Prelude 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"
pattern
BeforeCommonEra :: Integer -> Yearrio RIO.Time Also known as Before Christ. Note that Year 1 = 1 CE, and the previous Year 0 = 1 BCE. CommonEra and BeforeCommonEra form a COMPLETE set.
iso8601DateFormat :: Maybe String -> Stringrio RIO.Time Construct format string according to ISO-8601. The Maybe String argument allows to supply an optional time specification. E.g.:
iso8601DateFormat Nothing == "%Y-%m-%d" -- i.e. YYYY-MM-DD iso8601DateFormat (Just "%H:%M:%S") == "%Y-%m-%dT%H:%M:%S" -- i.e. YYYY-MM-DDTHH:MM:SS
-
rio RIO.Time Format string according to RFC822.
unsafeFromForeignPtr :: Storable a => ForeignPtr a -> Int -> Int -> Vector ario RIO.Vector.Storable.Unsafe No documentation available.
unsafeFromForeignPtr0 :: ForeignPtr a -> Int -> Vector ario RIO.Vector.Storable.Unsafe No documentation available.
unsafeToForeignPtr :: Vector a -> (ForeignPtr a, Int, Int)rio RIO.Vector.Storable.Unsafe No documentation available.
unsafeToForeignPtr0 :: Vector a -> (ForeignPtr a, Int)rio RIO.Vector.Storable.Unsafe No documentation available.
SDForall :: [String] -> String -> [SimpleDoc] -> SimpleDocshakespeare Text.Hamlet.RT No documentation available.