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. readLogRecordInstrumentationScope :: IsReadableLogRecord r => r -> InstrumentationLibrary

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

    Reads the InstrumentationScope from the Logger that emitted the LogRecord

  2. readLogRecordResource :: IsReadableLogRecord r => r -> MaterializedResources

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

    Reads the Resource from the LoggerProvider that emitted the LogRecord

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

    hs-opentelemetry-api OpenTelemetry.Logs.Core

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

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

    hs-opentelemetry-api OpenTelemetry.Logs.Core

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

  5. readLogRecordInstrumentationScope :: IsReadableLogRecord r => r -> InstrumentationLibrary

    hs-opentelemetry-api OpenTelemetry.Logs.Core

    Reads the InstrumentationScope from the Logger that emitted the LogRecord

  6. readLogRecordResource :: IsReadableLogRecord r => r -> MaterializedResources

    hs-opentelemetry-api OpenTelemetry.Logs.Core

    Reads the Resource from the LoggerProvider that emitted the LogRecord

  7. readFileDeserialise :: Serialise a => FilePath -> IO a

    serialise Codec.Serialise

    Read the specified file (internally, by reading a ByteString) and attempt to decode it into a Haskell value using deserialise (the type of which is determined by the choice of the result type). Throws: DeserialiseFailure if the file fails to deserialise properly.

  8. readFileDeserialise :: Serialise a => FilePath -> IO a

    serialise Codec.Serialise.IO

    Read the specified file (internally, by reading a ByteString) and attempt to decode it into a Haskell value using deserialise (the type of which is determined by the choice of the result type). Throws: DeserialiseFailure if the file fails to deserialise properly.

  9. readFile :: FilePath -> (Stream (Of String) IO () -> IO a) -> IO a

    streaming Streaming.Prelude

    Read the lines of a file, using a function of the type: 'Stream (Of String) IO () -> IO a' to turn the stream into a value of type 'IO a'.

    >>> S.writeFile "lines.txt" $ S.take 2 S.stdinLn
    hello<Enter>
    world<Enter>
    
    >>> S.readFile "lines.txt" S.print
    "hello"
    "world"
    

  10. readLn :: forall (m :: Type -> Type) a . (MonadIO m, Read a) => Stream (Of a) m ()

    streaming Streaming.Prelude

    Read values from stdin, ignoring failed parses.

    >>> :set -XTypeApplications
    
    >>> S.sum $ S.take 2 (S.readLn @IO @Int)
    10<Enter>
    12<Enter>
    22 :> ()
    
    >>> S.toList $ S.take 2 (S.readLn @IO @Int)
    10<Enter>
    1@#$%^&*\<Enter>
    12<Enter>
    [10,12] :> ()
    

Page 132 of many | Previous | Next