Hoogle Search
Within LTS Haskell 24.43 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
unsafeFeedLazyByteString :: ByteString -> ByteString -> Feed1radix-tree Data.Radix1Tree.Word8.Key.Unsafe Convert a lazy ByteString, in the form of the first chunk plus the rest, into a key. The first chunk is assumed to be non-empty.
unsafeFeedShortByteString :: ShortByteString -> Feed1radix-tree Data.Radix1Tree.Word8.Key.Unsafe Convert a ShortByteString into a key. The ShortByteString is assumed to be non-empty.
buildByteString :: Build -> ByteStringradix-tree Data.RadixTree.Word8.Key Convert a key into a strict ByteString.
buildShortByteString :: Build -> ShortByteStringradix-tree Data.RadixTree.Word8.Key Convert a key into a ShortByteString.
feedByteString :: ByteString -> Feedradix-tree Data.RadixTree.Word8.Key Convert a strict ByteString into a key.
feedLazyByteString :: ByteString -> Feedradix-tree Data.RadixTree.Word8.Key Convert a lazy ByteString into a key.
feedShortByteString :: ShortByteString -> Feedradix-tree Data.RadixTree.Word8.Key Convert a ShortByteString into a key.
chunksToByteStrings :: (Chunk -> [ByteString] -> [ByteString]) -> [Chunk] -> [ByteString]rainbow Rainbow Convert a list of Chunk to a list of ByteString. The length of the returned list may be longer than the length of the input list. So, for example, to print a bunch of chunks to standard output using 256 colors:
module PrintMyChunks where import qualified Data.ByteString as BS import Rainbow myChunks :: [Chunk String] myChunks = [ chunk "Roses" & fore red, chunk "\n", chunk "Violets" & fore blue, chunk "\n" ] myPrintedChunks :: IO () myPrintedChunks = mapM_ BS.putStr . chunksToByteStrings toByteStringsColors256 $ myChunks
To use the highest number of colors that this terminal supports:myPrintedChunks' :: IO () myPrintedChunks' = do printer <- byteStringMakerFromEnvironment mapM_ BS.putStr . chunksToByteStrings printer $ myChunks
toByteStringsColors0 :: Chunk -> [ByteString] -> [ByteString]rainbow Rainbow No documentation available.
toByteStringsColors256 :: Chunk -> [ByteString] -> [ByteString]rainbow Rainbow No documentation available.