Hoogle Search

Within LTS Haskell 24.34 (ghc-9.10.3)

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

  1. setOf :: forall k (is :: IxList) s . Is k A_Fold => Optic' k is s Int -> s -> IntSet

    optics-core Data.IntSet.Optics

    Construct an IntSet from a fold.

    >>> setOf folded [1,2,3,4]
    fromList [1,2,3,4]
    
    >>> setOf (folded % _2) [("hello",1),("world",2),("!!!",3)]
    fromList [1,2,3]
    

  2. setmapped :: Setter' IntSet Int

    optics-core Data.IntSet.Optics

    This Setter can be used to change the type of a IntSet by mapping the elements to new values. Sadly, you can't create a valid Traversal for an IntSet, but you can manipulate it by reading using folded and reindexing it via setmapped.

    >>> over setmapped (+1) (IntSet.fromList [1,2,3,4])
    fromList [2,3,4,5]
    

  3. setOf :: forall k a (is :: IxList) s . (Is k A_Fold, Ord a) => Optic' k is s a -> s -> Set a

    optics-core Data.Set.Optics

    Construct a set from a fold.

    >>> setOf folded ["hello","world"]
    fromList ["hello","world"]
    
    >>> setOf (folded % _2) [("hello",1),("world",2),("!!!",3)]
    fromList [1,2,3]
    

  4. setmapped :: Ord b => Setter (Set a) (Set b) a b

    optics-core Data.Set.Optics

    This Setter can be used to change the type of a Set by mapping the elements to new values. Sadly, you can't create a valid Traversal for a Set, but you can manipulate it by reading using folded and reindexing it via setmapped.

    >>> over setmapped (+1) (Set.fromList [1,2,3,4])
    fromList [2,3,4,5]
    

  5. set' :: forall k (is :: IxList) s t a b . Is k A_Setter => Optic k is s t a b -> b -> s -> t

    optics-core Optics.Setter

    Apply a setter, strictly. TODO DOC: what exactly is the strictness property?

  6. sets :: ((a -> b) -> s -> t) -> Setter s t a b

    optics-core Optics.Setter

    Build a setter from a function to modify the element(s), which must respect the well-formedness laws.

  7. setChildGroup :: GroupID -> ProcessConfig stdin stdout stderr -> ProcessConfig stdin stdout stderr

    typed-process System.Process.Typed

    Set the child process's group ID with the POSIX setgid syscall, does nothing on non-POSIX. See child_group. Default: False

  8. setChildGroupInherit :: ProcessConfig stdin stdout stderr -> ProcessConfig stdin stdout stderr

    typed-process System.Process.Typed

    Inherit the group from the parent process.

  9. setChildUser :: UserID -> ProcessConfig stdin stdout stderr -> ProcessConfig stdin stdout stderr

    typed-process System.Process.Typed

    Set the child process's user ID with the POSIX setuid syscall, does nothing on non-POSIX. See child_user. Default: False

  10. setChildUserInherit :: ProcessConfig stdin stdout stderr -> ProcessConfig stdin stdout stderr

    typed-process System.Process.Typed

    Inherit the user from the parent process.

Page 224 of many | Previous | Next