Hoogle Search
Within LTS Haskell 24.51 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
renderVersionPage :: String -> Version -> [Chunk]opt-env-conf OptEnvConf.Doc Render the output of --version
-
pager System.Pager This finds the user's $PAGER. This will fail if:
- There is no $PATH variable
- The user doesn't have a less or more installed, and hasn't specified an alternate program via $PAGER.
-
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.