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.

  1. (..:) :: FromJSON b => Setter' a b -> Text -> Object -> Parser (a -> a)

    configuration-tools Configuration.Utils.ConfigFile

    A variant of the setProperty that uses the default parseJSON method from the FromJSON instance to parse the value of the property. Its usage pattern mimics the usage pattern of the .: operator from the aeson library.

    data Auth = Auth
    { _user ∷ !String
    , _pwd ∷ !String
    }
    
    user ∷ Functor f ⇒ (String → f String) → Auth → f Auth
    user f s = (\u → s { _user = u }) <$> f (_user s)
    
    pwd ∷ Functor f ⇒ (String → f String) → Auth → f Auth
    pwd f s = (\p → s { _pwd = p }) <$> f (_pwd s)
    
    -- or with lenses and TemplateHaskell just:
    -- $(makeLenses ''Auth)
    
    instance FromJSON (Auth → Auth) where
    parseJSON = withObject "Auth" $ \o → id
    <$< user ..: "user" % o
    <*< pwd ..: "pwd" % o
    

  2. (.:) :: FromField a => NamedRecord -> ByteString -> Parser a

    csv-conduit Data.CSV.Conduit.Conversion

    Alias for lookup.

  3. (@:) :: Quote a => Id -> a -> (Id, Term)

    ede Text.EDE.Filters

    No documentation available.

  4. (@:) :: Quote a => Id -> a -> (Id, Term)

    ede Text.EDE.Internal.Filters

    No documentation available.

  5. (==:) :: (a -> b -> c -> d) -> a -> b

    extrapolate Test.Extrapolate.TypeBinding

    No documentation available.

  6. (!:) :: a -> T n a -> T (Succ n) a

    fixed-length Data.FixedLength

    No documentation available.

  7. (.:.) :: forall effect (m :: Type -> Type) (effects :: [(Type -> Type) -> Type]) . effect m -> Effects effects m -> Effects (effect ': effects) m

    free-vl Control.Monad.Free.VanLaarhovenE

    Helper combinator for creating values of 'Effects effects m'

  8. ($:) :: (a -> b) -> (a ::: p) -> b ::: p

    gdp Data.Refined

    Given a value and a proof, apply a function to the value but leave the proof unchanged.

  9. (.:) :: FromJSON a => Object -> Key -> Parser a

    github GitHub.Internal.Prelude

    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.

  10. (.:?) :: FromJSON a => Object -> Key -> Parser (Maybe a)

    github GitHub.Internal.Prelude

    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.

Page 96 of many | Previous | Next