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. setSentPacketsBufferSize :: Int -> EndpointConfig -> EndpointConfig

    reliable-io Reliable.IO

    Sets the maximum number of packets for which to store sent packet info. This number reflects the largest number of packets we expect to be in flight at any given time, in order to properly ack them upon receipt of some other endpoint's packets. Also useful for properly computing bandwidth of the endpoint. Default value is 256.

  2. setRichEnv :: RichEnv -> Environment -> IO ()

    richenv RichEnv

    Sets the environment variables available for the current process abiding to the RichEnv rules.

  3. setRichEnvFromCurrent :: RichEnv -> IO ()

    richenv RichEnv

    Sets the environment variables available for the current process by checking the current environment variables and applying the RichEnv rules.

    setRichEnvFromCurrent re = getEnvironment >>= setRichEnv re . toEnvironment
    

  4. setOption :: String -> String -> TypeCheck var a -> TypeCheck var a

    rzk Rzk.TypeCheck

    No documentation available.

  5. setVariance :: Covariance -> TypeCheck var a -> TypeCheck var a

    rzk Rzk.TypeCheck

    No documentation available.

  6. setVersion :: SafeJSON a => Value -> Value

    safe-json Data.SafeJSON

    CAUTION: Only use this function if you know what you're doing. The version will be set top-level, without inspection of the Value! (cf. removeVersion) In some rare cases, you might want to interpret a versionless Value as a certain type/version. setVersion allows you to (unsafely) insert a version field. If possible, it is advised to use a FromJSON instance instead. (One that doesn't also use safeFromJSON in its methods!) This might be needed when data sent to an API endpoint doesn't need to implement SafeJSON standards. E.g. in the case of endpoints for third parties or customers.

    USAGE:
    
    {-# LANGUAGE TypeApplications #-}
    data Test = Test String
    instance SafeJSON Test where ...
    
    >>> val = String "test" :: Value
    String "test"
    >>> encode val
    ""test""
    >>> encode $ setVersion @Test val
    "{"~v":0,"~d":"test"}"
    >>> parseMaybe safeFromJSON $ setVersion @Test val
    Just (Test "test")
    

  7. setVersion' :: SafeJSON a => Version a -> Value -> Value

    safe-json Data.SafeJSON

    Same as setVersion, but requires a Version parameter.

    >>> encode $ setVersion' (version :: Version Test) val
    "{\"~v\":0,\"~d\":\"test\"}"
    

  8. setWindowFullScreen :: (WebDriverMonad m context, MonadReader context m, WebDriver m) => m ()

    sandwich-webdriver Test.Sandwich.WebDriver.Windows

    Fullscreen the browser window.

  9. setWindowLeftSide :: (WebDriverMonad m context, MonadReader context m, WebDriver m) => m ()

    sandwich-webdriver Test.Sandwich.WebDriver.Windows

    Position the window on the left 50% of the screen.

  10. setWindowRightSide :: (WebDriverMonad m context, MonadReader context m, WebDriver m) => m ()

    sandwich-webdriver Test.Sandwich.WebDriver.Windows

    Position the window on the right 50% of the screen.

Page 836 of many | Previous | Next