Hoogle Search

Within LTS Haskell 24.41 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. printOrPage :: Text -> IO ()

    pager System.Pager

    If the user's terminal is long enough to display the (strict) Text, just print it. Else, send it to the pager. The text needs to be strict, because the function counts the number of lines in the text. (This is also why it needs to be text, and not a bytestring, because Text has stuff like line-counting).

  2. sendToPager :: ByteString -> IO ()

    pager System.Pager

    Send a lazy ByteString to the user's $PAGER.

  3. sendToPagerConduit :: Producer (ResourceT IO) ByteString -> IO ()

    pager System.Pager

    This is what sendToPager uses on the back end. It takes a Producer, from Data.Conduit, and then sends the produced bytes to the pager's stdin.

  4. sendToPagerStrict :: ByteString -> IO ()

    pager System.Pager

    Send a strict ByteString to the user's $PAGER.

  5. ZeroPageIndex :: PaginationException

    pagination Data.Pagination

    Page index was zero (they start from one)

  6. ZeroPageSize :: PaginationException

    pagination Data.Pagination

    Page size (number of items per page) was zero

  7. hasNextPage :: Paginated a -> Bool

    pagination Data.Pagination

    Is there next page?

  8. hasOtherPages :: Paginated a -> Bool

    pagination Data.Pagination

    Test whether there are other pages.

  9. hasPrevPage :: Paginated a -> Bool

    pagination Data.Pagination

    Is there previous page?

  10. paginatedPagesTotal :: Paginated a -> Natural

    pagination Data.Pagination

    Get the total number of pages in this collection.

Page 381 of many | Previous | Next