Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
toMaybe :: Bool -> a -> Maybe autility-ht Data.Maybe.HT Returns Just if the precondition is fulfilled. prop> b x -> (guard b >> x) == (toMaybe b =<< (x::Maybe Char))
-
servant Servant.Types.SourceT Filter values.
>>> toList $ mapMaybe (\x -> if odd x then Just x else Nothing) (source [0..10]) :: [Int] [1,3,5,7,9]
>>> mapMaybe (\x -> if odd x then Just x else Nothing) (source [0..2]) :: SourceT Identity Int fromStepT (Effect (Identity (Skip (Yield 1 (Skip Stop)))))
Illustrates why we need Skip. -
servant Servant.Types.SourceT No documentation available.
parseMaybe :: (a -> Parser b) -> a -> Maybe byaml Data.Yaml genMaybe :: Gen a -> Gen (Maybe a)genvalidity Data.GenValidity.Utils No documentation available.
shrinkMaybe :: (a -> [a]) -> Maybe a -> [Maybe a]genvalidity Data.GenValidity.Utils Lift a shrinker function into a maybe
isClassOpId_maybe :: Id -> Maybe Classghc GHC No documentation available.
synTyConDefn_maybe :: TyCon -> Maybe ([TyVar], Type)ghc GHC Extract the TyVars bound by a vanilla type synonym and the corresponding (unsubstituted) right hand side.
synTyConRhs_maybe :: TyCon -> Maybe Typeghc GHC Extract the information pertaining to the right hand side of a type synonym (type) declaration.
tyConClass_maybe :: TyCon -> Maybe Classghc GHC If this TyCon is that for a class instance, return the class it is for. Otherwise returns Nothing