Hoogle Search
Within LTS Haskell 24.45 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
one-liner Generics.OneLiner.Binary dimapForget :: Profunctor p => (a % 1 -> b) -> (c % 1 -> d) -> p b c -> p a done-liner Generics.OneLiner.Classes No documentation available.
-
optics-extra Data.HashMap.Optics Construct a hash map from an IxFold. The construction is left-biased (see union), i.e. the first occurrences of keys in the fold or traversal order are preferred.
>>> toMapOf ifolded ["hello", "world"] fromList [(0,"hello"),(1,"world")]
>>> toMapOf (folded % ifolded) [('a',"alpha"),('b', "beta")] fromList [('a',"alpha"),('b',"beta")]>>> toMapOf (folded % ifolded) [('a', "hello"), ('b', "world"), ('a', "dummy")] fromList [('a',"hello"),('b',"world")] setmapped :: (Eq b, Hashable b) => Setter (HashSet a) (HashSet b) a boptics-extra Data.HashSet.Optics This Setter can be used to change the type of a HashSet by mapping the elements to new values. Sadly, you can't create a valid Traversal for a HashSet, but you can manipulate it by reading using folded and reindexing it via setmapped.
>>> over setmapped (+1) (HashSet.fromList [1,2,3,4]) fromList [2,3,4,5]
ifoldMap :: (FoldableWithIndex i f, Monoid m) => (i -> a -> m) -> f a -> moptics-extra Optics.Indexed Fold a container by mapping value to an arbitrary Monoid with access to the index i. When you don't need access to the index then foldMap is more flexible in what it accepts.
foldMap ≡ ifoldMap . const
ifoldMap' :: (FoldableWithIndex i f, Monoid m) => (i -> a -> m) -> f a -> moptics-extra Optics.Indexed A variant of ifoldMap that is strict in the accumulator. When you don't need access to the index then foldMap' is more flexible in what it accepts.
foldMap' ≡ ifoldMap' . const
imap :: FunctorWithIndex i f => (i -> a -> b) -> f a -> f boptics-extra Optics.Indexed Map with access to the index.
optionType_map :: Ord k => Char -> Char -> OptionType k -> OptionType v -> OptionType (Map k v)options Options Store an option as a Map, using other option types for the keys and values The item separator is used to separate key/value pairs from each other. It should be a character that will not occur within either the keys or values. The value separator is used to separate the key from the value. It should be a character that will not occur within the keys. It may occur within the values. Duplicate keys in the input are permitted. The final value for each key is stored.
hStore_hashMap :: HashMap Text (Maybe Text) -> Encodingpostgresql-binary PostgreSQL.Binary.Encoding HSTORE encoder from HashMap.
hStore_map :: Map Text (Maybe Text) -> Encodingpostgresql-binary PostgreSQL.Binary.Encoding HSTORE encoder from Map.