Hoogle Search

Within LTS Haskell 24.50 (ghc-9.10.3)

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

  1. readFile' :: MonadIO m => FilePath -> m String

    relude Relude.Lifted.File

    Warning: readFile' depends on the system's locale settings and can throw unexpected exceptions.Use readFileBS or readFileLBS instead.

  2. readIORef :: MonadIO m => IORef a -> m a

    relude Relude.Lifted.IORef

    Lifted version of readIORef.

    >>> ref <- newIORef 42
    
    >>> readIORef ref
    42
    

  3. reader :: MonadReader r m => (r -> a) -> m a

    relude Relude.Monad.Reexport

    Retrieves a function of the current environment.

  4. readEither :: Read a => String -> Either Text a

    relude Relude.String.Conversion

    Version of readEither that returns Text in case of the parse error.

    >>> readEither @Int "123"
    Right 123
    
    >>> readEither @Int "aa"
    Left "Prelude.read: no parse"
    

  5. readMaybe :: Read a => String -> Maybe a

    relude Relude.String.Reexport

    Parse a string using the Read instance. Succeeds if there is exactly one valid result.

    >>> readMaybe "123" :: Maybe Int
    Just 123
    
    >>> readMaybe "hello" :: Maybe Int
    Nothing
    

  6. reads :: Read a => ReadS a

    relude Relude.String.Reexport

    equivalent to readsPrec with a precedence of 0.

  7. readMVar :: StrictMVar a -> IO a

    distributed-process Control.Distributed.Process.Internal.StrictMVar

    No documentation available.

  8. readTQueue :: TQueue a -> STM a

    distributed-process Control.Distributed.Process.Internal.WeakTQueue

    Read the next value from the TQueue.

  9. readLogRecord :: IsReadableLogRecord r => r -> IO ImmutableLogRecord

    hs-opentelemetry-api OpenTelemetry.Internal.Logs.Types

    Reads the current state of the LogRecord from its internal IORef. The implementation mirrors readIORef.

  10. readLogRecordAttributeLimits :: IsReadWriteLogRecord r => r -> AttributeLimits

    hs-opentelemetry-api OpenTelemetry.Internal.Logs.Types

    Reads the attribute limits from the LoggerProvider that emitted the LogRecord. These are needed to add more attributes.

Page 131 of many | Previous | Next