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.
-
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).
sendToPager :: ByteString -> IO ()pager System.Pager Send a lazy ByteString to the user's $PAGER.
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.
sendToPagerStrict :: ByteString -> IO ()pager System.Pager Send a strict ByteString to the user's $PAGER.
ZeroPageIndex :: PaginationExceptionpagination Data.Pagination Page index was zero (they start from one)
ZeroPageSize :: PaginationExceptionpagination Data.Pagination Page size (number of items per page) was zero
hasNextPage :: Paginated a -> Boolpagination Data.Pagination Is there next page?
hasOtherPages :: Paginated a -> Boolpagination Data.Pagination Test whether there are other pages.
hasPrevPage :: Paginated a -> Boolpagination Data.Pagination Is there previous page?
paginatedPagesTotal :: Paginated a -> Naturalpagination Data.Pagination Get the total number of pages in this collection.