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.
-
base GHC.Base No documentation available.
compactContainsAny# :: a -> State# RealWorld -> (# State# RealWorld, Int# #)base GHC.Base Returns 1# if the object is in any CNF at all, 0# otherwise.
many :: Alternative f => f a -> f [a]base GHC.Base 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.-
base GHC.Exts No documentation available.
compactContainsAny# :: a -> State# RealWorld -> (# State# RealWorld, Int# #)base GHC.Exts Returns 1# if the object is in any CNF at all, 0# otherwise.
catchAny :: IO a -> (forall e . Exception e => e -> IO a) -> IO abase GHC.IO Catch any Exception type in the IO monad. Note that this function is strict in the action. That is, catchAny undefined b == _|_. See for details.
chooseAny :: Random a => Gen aQuickCheck Test.QuickCheck Generates a random element over the natural range of a.
chooseAny :: Random a => Gen aQuickCheck Test.QuickCheck.Gen Generates a random element over the natural range of a.
addGregorianYearsClip :: Integer -> Day -> Daytime Data.Time.Calendar 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 Data.Time.Calendar 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.