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.
readAsInt :: Text -> Maybe Intciteproc Citeproc.Types No documentation available.
readForTicket :: MonadDejaFu n => ModelIORef n a -> ThreadId -> n (ModelTicket a)dejafu Test.DejaFu.Conc.Internal.Memory Read from a IORef, returning a Ticket representing the current view of the thread.
-
dejafu Test.DejaFu.Conc.Internal.Memory Read from a MVar, blocking if empty.
readIORef :: MonadDejaFu n => ModelIORef n a -> ThreadId -> n adejafu Test.DejaFu.Conc.Internal.Memory Read from a IORef, returning a newer thread-local non-committed write if there is one.
readIORefGlobal :: MonadDejaFu n => ModelIORef n a -> n adejafu Test.DejaFu.Conc.Internal.Memory Read the global state of a IORef.
readIORefPrim :: MonadDejaFu n => ModelIORef n a -> ThreadId -> n (a, Integer)dejafu Test.DejaFu.Conc.Internal.Memory Read the local state of a IORef.
readRef :: MonadDejaFu m => Ref m a -> m adejafu Test.DejaFu.Types Read the current value in the reference.
readDirectory :: FilePath -> IO (AnchoredDirTree String)directory-tree System.Directory.Tree Build an AnchoredDirTree, given the path to a directory, opening the files using readFile. Uses readDirectoryWith readFile internally and has the effect of traversing the entire directory structure. See readDirectoryWithL for lazy production of a DirTree structure.
readDirectoryWith :: (FilePath -> IO a) -> FilePath -> IO (AnchoredDirTree a)directory-tree System.Directory.Tree Build a DirTree rooted at p and using f to fill the file field of File nodes. The FilePath arguments to f will be the full path to the current file, and will include the root p as a prefix. For example, the following would return a tree of full FilePaths like "../tmp/foo" and "../tmp/bar/baz":
readDirectoryWith return "../tmp"
Note though that the build function below already does this.readDirectoryWithL :: (FilePath -> IO a) -> FilePath -> IO (AnchoredDirTree a)directory-tree System.Directory.Tree A "lazy" version of readDirectoryWith that does IO operations as needed i.e. as the tree is traversed in pure code. NOTE: This function uses unsafeInterleaveIO under the hood. This means that:
- side effects are tied to evaluation order and only run on demand
- you might receive exceptions in pure code