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. readAsInt :: Text -> Maybe Int

    citeproc Citeproc.Types

    No documentation available.

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

  3. readFromMVar :: (MonadDejaFu n, HasCallStack) => ModelMVar n a -> (a -> Action n) -> ThreadId -> Threads n -> n (Bool, Threads n, [ThreadId], n ())

    dejafu Test.DejaFu.Conc.Internal.Memory

    Read from a MVar, blocking if empty.

  4. readIORef :: MonadDejaFu n => ModelIORef n a -> ThreadId -> n a

    dejafu Test.DejaFu.Conc.Internal.Memory

    Read from a IORef, returning a newer thread-local non-committed write if there is one.

  5. readIORefGlobal :: MonadDejaFu n => ModelIORef n a -> n a

    dejafu Test.DejaFu.Conc.Internal.Memory

    Read the global state of a IORef.

  6. readIORefPrim :: MonadDejaFu n => ModelIORef n a -> ThreadId -> n (a, Integer)

    dejafu Test.DejaFu.Conc.Internal.Memory

    Read the local state of a IORef.

  7. readRef :: MonadDejaFu m => Ref m a -> m a

    dejafu Test.DejaFu.Types

    Read the current value in the reference.

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

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

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

Page 233 of many | Previous | Next