Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
composition-extra Data.Function.Contravariant.Syntax No documentation available.
(
&: ) :: (b -> b -> c) -> (a -> b) -> a -> a -> ccomposition-prelude Control.Composition Pronounced 'appose'. Synonym for on
(
=: ) :: Projectable d s t => Projection d s t -> Stream t -> Stream dcopilot-language Copilot.Language.Operators.Array Modify the value of a sub-element of a type in a stream of elements of that type.
(
=: ) :: Projectable d s t => Projection d s t -> Stream t -> Stream dcopilot-language Copilot.Language.Operators.Projection Modify the value of a sub-element of a type in a stream of elements of that type.
(
=: ) :: Projectable d s t => Projection d s t -> Stream t -> Stream dcopilot-language Copilot.Language.Operators.Struct Modify the value of a sub-element of a type in a stream of elements of that type.
(
%: ) :: MonadState r m => T r a -> (a -> a) -> m ()data-accessor-mtl Data.Accessor.Monad.MTL.State Infix variant of modify.
(
|: ) :: Formula -> Formula -> Formuladjinn-lib Djinn.LJTFormula No documentation available.
(
.: ) :: OnObject o a => Text -> Parser a -> o ajson-stream Data.JsonStream.Parser Synonym for objectWithKey. The .: operators can be chained.
>>> let json = "{\"key1\": {\"nested-key\": 3}}" >>> parseByteString ("key1" .: "nested-key" .: integer) json :: [Int] > [3]It works both as a standalone parser and as a part of objectOf parser>>> let test = "[{\"name\": \"test1\", \"value\": 1}, {\"name\": \"test2\", \"value\": null}, {\"name\": \"test3\"}]" >>> let person = objectOf $ (,) <$> "name" .: string <*> "value" .: integer .| (-1) >>> let people = arrayOf person >>> parseByteString people test :: [(T.Text, Int)] [("test1",1),("test2",-1),("test3",-1)](
.:? ) :: OnObject o a => Text -> Parser a -> o (Maybe a)json-stream Data.JsonStream.Parser Returns Nothing if value is null or does not exist or match. Otherwise returns Just value.
key .:? val = optional (key .: val)
It could be similarly used in the objectOf parser(
$:: ) :: (a -> b) -> ((a -> b) -> c -> d) -> c -> dpointless-fun Data.Function.Pointless Lift a function for multicomposition. This is like the :: of a type signature.