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.
unsafeAdjust :: (a -> a) -> Int -> SmallArray a -> SmallArray aprimitive-extras PrimitiveExtras.SmallArray No documentation available.
unsafeAdjustWithSize :: (a -> a) -> Int -> Int -> SmallArray a -> SmallArray aprimitive-extras PrimitiveExtras.SmallArray No documentation available.
-
reflex-dom-core Reflex.Dom.Builder.Static No documentation available.
-
reflex-dom-core Reflex.Dom.Builder.Static No documentation available.
-
registry Data.Registry.Internal.Dot We need to process the node descriptions - we add quotes arountd the text - we remove quotes (") inside the text - we escape newlines
-
row-types Data.Row A pattern for variants; can be used to both destruct a variant when in a pattern position or construct one in an expression position.
-
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