Hoogle Search

Within LTS Haskell 24.68 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. setUnique :: Uniquable a => a -> Unique -> a

    clash-lib Clash.Unique

    No documentation available.

  2. setLogAction :: HasLog env msg m => LogAction m msg -> env -> env

    co-log Colog.Monad

    Sets LogAction to the given one inside the environment.

  3. set_tuple_element :: (IsSource a1, IsRegister a2) => a1 -> a2 -> Int -> Op

    codec-beam Codec.Beam.Instructions

    Update the element at position of the tuple in register with the new source element.

  4. setProperty :: Setter' a b -> Text -> (Value -> Parser b) -> Object -> Parser (a -> a)

    configuration-tools Configuration.Utils.ConfigFile

    A JSON Value parser for a property of a given Object that updates a setter with the parsed value.

    data Auth = Auth
    { _userId ∷ !Int
    , _pwd ∷ !String
    }
    
    userId ∷ Functor f ⇒ (Int → f Int) → Auth → f Auth
    userId f s = (\u → s { _userId = u }) <$> f (_userId 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
    <$< setProperty user "user" p o
    <*< setProperty pwd "pwd" parseJSON o
    where
    p = withText "user" $ \case
    "alice" → pure (0 ∷ Int)
    "bob" → pure 1
    e → fail $ "unrecognized user " ⊕ e
    

  5. setApplicationState :: τ -> Program τ ()

    core-program Core.Program.Execute

    Update the user supplied top-level application state.

    let settings' = settings { answer = 42 }
    setApplicationState settings'
    

  6. setProgramName :: Rope -> Program τ ()

    core-program Core.Program.Execute

    Override the program name used for logging, etc. At least, that was the idea. Nothing makes use of this at the moment. :/

  7. setVerbosityLevel :: Verbosity -> Program τ ()

    core-program Core.Program.Execute

    Change the verbosity level of the program's logging output. This changes whether info and the debug family of functions emit to the logging stream; they do not affect writeing to the terminal on the standard output stream.

  8. setAuthentication :: [Authenticator] -> Settings -> Settings

    cql-io Database.CQL.IO

    Set the supported authentication mechanisms. When a Cassandra server requests authentication on a connection, it specifies the requested AuthMechanism. The client Authenticator is chosen based that name. If no authenticator with a matching name is configured, an AuthenticationError is thrown.

  9. setCompression :: Compression -> Settings -> Settings

    cql-io Database.CQL.IO

    Set the compression to use for frame body compression.

  10. setConnectTimeout :: NominalDiffTime -> Settings -> Settings

    cql-io Database.CQL.IO

    Set the connect timeout of a connection.

Page 772 of many | Previous | Next