Hoogle Search
Within LTS Haskell 24.38 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
row-types Data.Row.Variants A pattern for variants; can be used to both destruct a variant when in a pattern position or construct one in an expression position.
fromJust :: SymVal a => SMaybe a -> SBV asbv Data.SBV.Maybe Return the value of an optional value. The behavior is undefined if passed Nothing, i.e., it can return any value. Compare to fromMaybe.
>>> fromJust (sJust (literal 'a')) 'a' :: SChar >>> prove $ \x -> fromJust (sJust x) .== (x :: SChar) Q.E.D. >>> sat $ \x -> x .== (fromJust sNothing :: SChar) Satisfiable. Model: s0 = 'A' :: Char
Note how we get a satisfying assignment in the last case: The behavior is unspecified, thus the SMT solver picks whatever satisfies the constraints, if there is one.isJust :: SymVal a => SMaybe a -> SBoolsbv Data.SBV.Maybe Check if the symbolic value is not nothing.
>>> isJust (sNothing :: SMaybe Integer) False >>> isJust (sJust (literal "yep")) True >>> prove $ \x -> isJust (sJust (x :: SInteger)) Q.E.D.
sJust :: SymVal a => SBV a -> SMaybe asbv Data.SBV.Maybe Construct an SMaybe a from an SBV a.
>>> sJust (3 :: SInteger) Just 3 :: SMaybe Integer
weekendJustOver :: IO OptimizeResultsbv Documentation.SBV.Examples.Optimization.Enumerate Using optimization, find the first day after the weekend. We have:
>>> weekendJustOver Optimal model: weekendJustOver = Mon :: Day DayAsWord8(first-day) = 0 :: Word8 first-day = Mon :: Day
-
simple-pango Graphics.Pango.Basic.LayoutObjects.PangoLayout No documentation available.
-
simple-pango Graphics.Pango.Basic.LayoutObjects.PangoLayout.Internal No documentation available.
-
streamly-core Streamly.Internal.Data.Maybe.Strict Extract the element out of a Just' and throws an error if its argument is Nothing'.
-
streamly-core Streamly.Internal.Data.Maybe.Strict Returns True iff its argument is of the form "Just' _".
-
tasty-sugar Test.Tasty.Sugar Given a Parameter Name and a boolean that indicates valid/not-valid for a Parameter Value, update the expectations in the Sweets to treat the parameter as a ranged value. This provides the functionality described by the rangedParam function and is intended for use via the sweetAdjuster field of the CUBE structure.