Hoogle Search

Within LTS Haskell 24.69 (ghc-9.10.3)

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

  1. reset :: Connection -> Statement -> IO ()

    persistent-sqlite Database.Sqlite

    No documentation available.

  2. type ASetter s t a b = a -> Identity b -> s -> Identity t

    rio RIO

    ASetter s t a b is something that turns a function modifying a value into a function modifying a structure. If you ignore Identity (as Identity a is the same thing as a), the type is:

    type ASetter s t a b = (a -> b) -> s -> t
    
    The reason Identity is used here is for ASetter to be composable with other types, such as Lens. Technically, if you're writing a library, you shouldn't use this type for setters you are exporting from your library; the right type to use is Setter, but it is not provided by this package (because then it'd have to depend on distributive). It's completely alright, however, to export functions which take an ASetter as an argument.

  3. type ASetter' s a = ASetter s s a a

    rio RIO

    This is a type alias for monomorphic setters which don't change the type of the container (or of the value inside). It's useful more often than the same type in lens, because we can't provide real setters and so it does the job of both ASetter' and Setter'.

  4. module RIO.HashSet

    Set with hashed members. Import as:

    import qualified RIO.HashSet as HS
    

  5. data HashSet a

    rio RIO.HashSet

    A set of values. A set cannot contain duplicate values.

  6. fromSet :: (k -> a) -> Set k -> Map k a

    rio RIO.Map

    Build a map from a set of keys and a function which for each key computes its value.

    fromSet (\k -> replicate k 'a') (Data.Set.fromList [3, 5]) == fromList [(5,"aaaaa"), (3,"aaa")]
    fromSet undefined Data.Set.empty == empty
    

  7. keysSet :: Map k a -> Set k

    rio RIO.Map

    The set of all keys of the map.

    keysSet (fromList [(5,"a"), (3,"b")]) == Data.Set.fromList [3,5]
    keysSet empty == Data.Set.empty
    

  8. data HashSet a

    rio RIO.Prelude.Types

    A set of values. A set cannot contain duplicate values.

  9. data IntSet

    rio RIO.Prelude.Types

    A set of integers.

  10. resetExeCache :: (MonadIO m, MonadReader env m, HasProcessContext env) => m ()

    rio RIO.Process

    Reset the executable cache.

Page 1202 of many | Previous | Next