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.
readPackageDbForGhc :: FilePath -> IO [DbUnitInfo]ghc-boot GHC.Unit.Database Read the part of the package DB that GHC is interested in.
-
ghc-boot GHC.Unit.Database Read the part of the package DB that ghc-pkg is interested in Note that the Binary instance for ghc-pkg's representation of packages is not defined in this package. This is because ghc-pkg uses Cabal types (and Binary instances for these) which this package does not depend on. If we open the package db in read only mode, we get its contents. Otherwise we additionally receive a PackageDbLock that represents a lock on the database, so that we can safely update it later.
readFileBS :: MonadIO m => FilePath -> m ByteStringrelude Relude.File Lifted version of readFile.
readFileLBS :: MonadIO m => FilePath -> m LByteStringrelude Relude.File Lifted version of readFile.
readFileLText :: MonadIO m => FilePath -> m LTextrelude Relude.File Warning: readFileLText depends on the system's locale settings and can throw unexpected exceptions.Use readFileLBS instead.
readFileText :: MonadIO m => FilePath -> m Textrelude Relude.File Warning: readFileText depends on the system's locale settings and can throw unexpected exceptions.Use readFileBS instead.
readMVar :: MonadIO m => MVar a -> m arelude Relude.Lifted.Concurrent -
relude Relude.Lifted.Concurrent This is a combination of takeTMVar and putTMVar; ie. it takes the value from the TMVar, puts it back, and also returns it.
-
relude Relude.Lifted.Concurrent Return the current value stored in a TVar.
readTVarIO :: MonadIO m => TVar a -> m arelude Relude.Lifted.Concurrent Lifted to MonadIO version of readTVarIO.