Hoogle Search

Within LTS Haskell 24.68 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. resourceMapL :: HasResourceMap env => Lens' env ResourceMap

    rio-orphans RIO.Orphans

    No documentation available.

  2. withResourceMap :: MonadUnliftIO m => (ResourceMap -> m a) -> m a

    rio-orphans RIO.Orphans

    Perform an action with a ResourceMap

  3. eraseToHashMap :: forall c (r :: Row Type) s b . (IsString s, Eq s, Hashable s, Forall r c) => (forall a . c a => a -> b) -> Rec r -> HashMap s b

    row-types Data.Row.Records

    Turns a record into a HashMap from values representing the labels to the values of the record.

  4. fromDynamicMap :: forall (r :: Row Type) . (AllUniqueLabels r, Forall r (Typeable :: Type -> Constraint)) => HashMap Text Dynamic -> Maybe (Rec r)

    row-types Data.Row.Records

    Produces a Rec from a HashMap of Dynamics.

  5. toDynamicMap :: forall (r :: Row Type) . Forall r (Typeable :: Type -> Constraint) => Rec r -> HashMap Text Dynamic

    row-types Data.Row.Records

    Converts a Rec into a HashMap of Dynamics.

  6. bimap :: (SymVal a, SymVal b, SymVal c, SymVal d) => (SBV a -> SBV b) -> (SBV c -> SBV d) -> SEither a c -> SEither b d

    sbv Data.SBV.Either

    Map over both sides of a symbolic Either at the same time

    >>> let f = uninterpret "f" :: SInteger -> SInteger
    
    >>> let g = uninterpret "g" :: SInteger -> SInteger
    
    >>> prove $ \x -> fromLeft (bimap f g (sLeft x)) .== f x
    Q.E.D.
    
    >>> prove $ \x -> fromRight (bimap f g (sRight x)) .== g x
    Q.E.D.
    

  7. SBVMap :: Kind -> Kind -> SMTLambda -> SeqOp

    sbv Data.SBV.Internals

    map a b fun. Where fun :: a -> b, and map :: (a -> b) -> [a] -> [b]

  8. concatMap :: (SymVal a, SymVal b) => (SBV a -> SList b) -> SList a -> SList b

    sbv Data.SBV.List

    concatMap f xs maps f over elements and concats the result.

  9. drop_map :: IO Proof

    sbv Documentation.SBV.Examples.KnuckleDragger.Lists

    drop n (map f xs) == map f (drop n xs)
    
    >>> drop_map
    Lemma: drop_cons                        Q.E.D.
    Lemma: drop_cons                        Q.E.D.
    Lemma: drop_map.n <= 0                  Q.E.D.
    Inductive lemma: drop_map.n > 0
    Step: Base                            Q.E.D.
    Step: 1                               Q.E.D.
    Step: 2                               Q.E.D.
    Step: 3                               Q.E.D.
    Step: 4                               Q.E.D.
    Result:                               Q.E.D.
    Lemma: drop_map
    Step: 1                               Q.E.D.
    Step: 2                               Q.E.D.
    Step: 3                               Q.E.D.
    Step: 4                               Q.E.D.
    Result:                               Q.E.D.
    [Proven] drop_map
    

  10. foldrMapFusion :: IO Proof

    sbv Documentation.SBV.Examples.KnuckleDragger.Lists

    foldr f a . map g = foldr (f . g) a
    
    We have:
    >>> foldrMapFusion
    Inductive lemma: foldrMapFusion
    Step: Base                            Q.E.D.
    Step: 1                               Q.E.D.
    Step: 2                               Q.E.D.
    Step: 3                               Q.E.D.
    Step: 4                               Q.E.D.
    Result:                               Q.E.D.
    [Proven] foldrMapFusion
    

Page 1083 of many | Previous | Next