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.
(
.:? ) :: Pinchable a => Value TStruct -> Int16 -> Parser (Maybe a)pinch Pinch.Internal.Pinchable Given a field ID and a Value TStruct, get the optional value stored in the struct under the given field ID. The value returned is Nothing if it was absent or the wrong type. The lookup fails only if the value retrieved fails to unpinch.
(
.: ) :: FromField a => NamedRecord -> ByteString -> Parser apipes-csv Pipes.Csv Alias for lookup.
(
.:++ ) :: PushR n m => RangeR n (m - 1) a -> a -> RangeR n m aranged-list Data.List.Range To push an optional element.
>>> :set -XDataKinds >>> samplePushR = NilR :++ 'h' :+ 'e' :+ 'l' :+ 'l' :: RangeR 3 7 Char >>> samplePushR .:++ 'o' ((((NilR :++ 'h') :++ 'e') :+ 'l') :+ 'l') :+ 'o' >>> :type samplePushR .:++ 'o' samplePushR .:++ 'o' :: RangeR 3 8 Char
(
.:.. ) :: PushL n m => a -> RangeL n (m - 1) a -> RangeL n m aranged-list Data.List.Range To push an optional element.
>>> :set -XDataKinds >>> samplePushL = 'e' :. 'l' :. 'l' :. 'o' :.. NilL :: RangeL 3 7 Char >>> 'h' .:.. samplePushL 'h' :. ('e' :. ('l' :. ('l' :.. ('o' :.. NilL)))) >>> :type 'h' .:.. samplePushL 'h' .:.. samplePushL :: RangeL 3 8 Char(
.: ) :: FromJSON a => Object -> Key -> Parser asafe-json Data.Aeson.Safe Retrieve the value associated with the given key of an Object. The result is empty if the key is not present or the value cannot be converted to the desired type. This accessor is appropriate if the key and value must be present in an object for it to be valid. If the key and value are optional, use .:? instead.
(
.:! ) :: FromJSON a => Object -> Key -> Parser (Maybe a)safe-json Data.Aeson.Safe Retrieve the value associated with the given key of an Object. The result is Nothing if the key is not present or empty if the value cannot be converted to the desired type. This differs from .:? by attempting to parse Null the same as any other JSON value, instead of interpreting it as Nothing.
(
.:!= ) :: FromJSON a => Object -> Key -> Parser asafe-json Data.Aeson.Safe Retrieve the value associated with the given key of an Object. If the key is not present and the omittedField is Just x for some x, the result will be that x. This differs from .:?= by attempting to parse Null the same as any other JSON value, instead of using omittedField when it's Just.
(
.:? ) :: FromJSON a => Object -> Key -> Parser (Maybe a)safe-json Data.Aeson.Safe Retrieve the value associated with the given key of an Object. The result is Nothing if the key is not present or if its value is Null, or empty if the value cannot be converted to the desired type. This accessor is most useful if the key and value can be absent from an object without affecting its validity. If the key and value are mandatory, use .: instead.
(
.:?= ) :: FromJSON a => Object -> Key -> Parser asafe-json Data.Aeson.Safe Retrieve the value associated with the given key of an Object. If the key is not present or the field is null and the omittedField is Just x for some x, the result will be that x.
(
.:$ ) :: SafeJSON a => Object -> Key -> Parser asafe-json Data.SafeJSON Similar to .:, but uses safeFromJSON instead of parseJSON to parse the value in the given field.