Hoogle Search
Within LTS Haskell 24.46 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
explicit-exception Control.Monad.Exception.Synchronous Repeat an action until an exception occurs. Initialize the result with empty and add new elements using cons (e.g. [] and (:)). The exception handler decides whether the terminating exception is re-raised (Just) or catched (Nothing).
biany :: Bifoldable t => (a -> Bool) -> (b -> Bool) -> t a b -> Boolrio RIO.Prelude Determines whether any element of the structure satisfies its appropriate predicate argument. Empty structures yield False.
Examples
Basic usage:>>> biany even isDigit (27, 't') False
>>> biany even isDigit (27, '8') True
>>> biany even isDigit (26, 't') True
>>> biany even isDigit (Left 27) False
>>> biany even isDigit (Left 26) True
>>> biany even isDigit (BiList [27, 53] ['t', '8']) True
Empty structures yield False:>>> biany even isDigit (BiList [] []) False
many :: Alternative f => f a -> f [a]rio RIO.Prelude Zero or more.
Examples
>>> many (putStr "la") lalalalalalalalala... * goes on forever *
>>> many Nothing Just []
>>> take 5 <$> many (Just 1) * hangs forever *
Note that this function can be used with Parsers based on Applicatives. In that case many parser will attempt to parse parser zero or more times until it fails.addGregorianYearsClip :: Integer -> Day -> Dayrio RIO.Time Add years, matching month and day, with Feb 29th clipped to Feb 28th if necessary. For instance, 2004-02-29 + 2 years = 2006-02-28.
addGregorianYearsRollOver :: Integer -> Day -> Dayrio RIO.Time Add years, matching month and day, with Feb 29th rolled over to Mar 1st if necessary. For instance, 2004-02-29 + 2 years = 2006-03-01.
runAnyE :: AnyE e r -> Either e rerrors Control.Error.Util No documentation available.
waitForAnyKey :: forall (m :: Type -> Type) . (MonadIO m, MonadMask m) => String -> InputT m Boolhaskeline System.Console.Haskeline Waits for one key to be pressed, then returns. Ignores the value of the specific key. Returns True if it successfully accepted one key. Returns False if it encountered the end of input; i.e., an EOF in file-style interaction, or a Ctrl-D in terminal-style interaction. When using file-style interaction, consumes a single character from the input which may be non-printable.
SSL_OP_CISCO_ANYCONNECT :: SSLOptionHsOpenSSL OpenSSL.Session No documentation available.
addGregorianYearsClip :: Integer -> Day -> Daytime-compat Data.Time.Calendar.Compat Add years, matching month and day, with Feb 29th clipped to Feb 28th if necessary. For instance, 2004-02-29 + 2 years = 2006-02-28.
addGregorianYearsRollOver :: Integer -> Day -> Daytime-compat Data.Time.Calendar.Compat Add years, matching month and day, with Feb 29th rolled over to Mar 1st if necessary. For instance, 2004-02-29 + 2 years = 2006-03-01.