HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduleoptics-extra-0.4.2.1Haskell2010

Data.HashSet.Optics

This module defines optics for constructing and manipulating finite HashSets.

Synopsis
valuesetOf
  1. :: (Is k A_Fold, Eq a, Hashable a)
  2. => Optic' k is s a
  3. -> s
  4. -> HashSet a

Construct a HashSet from a fold.

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