Hoogle Search

Within LTS Haskell 24.64 (ghc-9.10.3)

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

  1. getVars :: MonadCGI m => m [(String, String)]

    cgi Network.CGI

    Get all CGI environment variables and their values.

  2. modifyTVar :: MonadSTM stm => TVar stm a -> (a -> a) -> stm ()

    concurrency Control.Concurrent.Classy.STM.TVar

    Mutate the contents of a TVar. This is non-strict.

  3. modifyTVar' :: MonadSTM stm => TVar stm a -> (a -> a) -> stm ()

    concurrency Control.Concurrent.Classy.STM.TVar

    Mutate the contents of a TVar strictly.

  4. newTVar :: MonadSTM stm => a -> stm (TVar stm a)

    concurrency Control.Concurrent.Classy.STM.TVar

    Create a new TVar containing the given value.

    newTVar = newTVarN ""
    

  5. newTVarN :: MonadSTM stm => String -> a -> stm (TVar stm a)

    concurrency Control.Concurrent.Classy.STM.TVar

    Create a new TVar containing the given value, but it is given a name which may be used to present more useful debugging information. If an empty name is given, a counter starting from 0 is used. If names conflict, successive TVars with the same name are given a numeric suffix, counting up from 1.

    newTVarN _ = newTVar
    

  6. readTVar :: MonadSTM stm => TVar stm a -> stm a

    concurrency Control.Concurrent.Classy.STM.TVar

    Return the current value stored in a TVar.

  7. readTVarConc :: MonadConc m => TVar (STM m) a -> m a

    concurrency Control.Concurrent.Classy.STM.TVar

    Read the current value stored in a TVar. This may be implemented differently for speed.

    readTVarConc = atomically . readTVar
    

  8. stateTVar :: MonadSTM stm => TVar stm s -> (s -> (a, s)) -> stm a

    concurrency Control.Concurrent.Classy.STM.TVar

    Like modifyTVar' but the function is a simple state transition that can return a side value which is passed on as the result of the STM.

  9. swapTVar :: MonadSTM stm => TVar stm a -> a -> stm a

    concurrency Control.Concurrent.Classy.STM.TVar

    Swap the contents of a TVar, returning the old value.

  10. writeTVar :: MonadSTM stm => TVar stm a -> a -> stm ()

    concurrency Control.Concurrent.Classy.STM.TVar

    Write the supplied value into the TVar.

Page 29 of many | Previous | Next