Hoogle Search

Within LTS Haskell 24.32 (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. 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.

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

    relude Relude.Lifted.IORef

    Lifted version of readIORef.

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

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

    relude Relude.Monad.Reexport

    Retrieves a function of the current environment.

  5. 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"
    

  6. 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
    

  7. reads :: Read a => ReadS a

    relude Relude.String.Reexport

    equivalent to readsPrec with a precedence of 0.

  8. readCertificateStore :: FilePath -> IO (Maybe CertificateStore)

    crypton-x509-store Data.X509.CertificateStore

    Create certificate store by reading certificates from file or directory This function can be used to read multiple certificates from either single file (multiple PEM formatted certificates concanated) or directory (one certificate per file, file names are hashes from certificate).

  9. readCertificates :: FilePath -> IO [SignedCertificate]

    crypton-x509-store Data.X509.CertificateStore

    No documentation available.

  10. readKeyFile :: FilePath -> IO [PrivKey]

    crypton-x509-store Data.X509.File

    return all the private keys that were successfully read from a file.

Page 131 of many | Previous | Next