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.
suchThatMaybe :: Gen a -> (a -> Bool) -> Gen (Maybe a)tasty-quickcheck Test.Tasty.QuickCheck Tries to generate a value that satisfies a predicate. If it fails to do so after enough attempts, returns Nothing.
mapMaybePrimArray :: (Prim a, Prim b) => (a -> Maybe b) -> PrimArray a -> PrimArray bprimitive Data.Primitive.PrimArray Map over a primitive array, optionally discarding some elements. This has the same behavior as Data.Maybe.mapMaybe.
-
primitive Data.Primitive.PrimArray Map over the primitive array, keeping the elements for which the applicative predicate provides a Just.
-
primitive Data.Primitive.PrimArray Map over the primitive array, keeping the elements for which the monadic predicate provides a Just.
-
parsec Text.Parsec optionMaybe p tries to apply parser p. If p fails without consuming input, it return Nothing, otherwise it returns Just the value returned by p.
-
parsec Text.Parsec.Combinator optionMaybe p tries to apply parser p. If p fails without consuming input, it return Nothing, otherwise it returns Just the value returned by p.
-
parsec Text.ParserCombinators.Parsec.Combinator optionMaybe p tries to apply parser p. If p fails without consuming input, it return Nothing, otherwise it returns Just the value returned by p.
readDirStreamMaybe :: DirStream -> IO (Maybe FilePath)unix System.Posix.Directory readDirStreamMaybe dp calls readdir to obtain the next directory entry (struct dirent) for the open directory stream dp. It returns the d_name member of that structure wrapped in a Just d_name if an entry was read and Nothing if the end of the directory stream was reached.
readDirStreamMaybe :: DirStream -> IO (Maybe RawFilePath)unix System.Posix.Directory.ByteString readDirStreamMaybe dp calls readdir to obtain the next directory entry (struct dirent) for the open directory stream dp. It returns the d_name member of that structure wrapped in a Just d_name if an entry was read and Nothing if the end of the directory stream was reached.
readDirStreamMaybe :: DirStream -> IO (Maybe PosixPath)unix System.Posix.Directory.PosixPath readDirStreamMaybe dp calls readdir to obtain the next directory entry (struct dirent) for the open directory stream dp. It returns the d_name member of that structure wrapped in a Just d_name if an entry was read and Nothing if the end of the directory stream was reached.