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.
toByteStringsColors8 :: Chunk -> [ByteString] -> [ByteString]rainbow Rainbow No documentation available.
chunksToByteStrings :: (Chunk -> [ByteString] -> [ByteString]) -> [Chunk] -> [ByteString]rainbow Rainbow.Translate 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.Translate No documentation available.
toByteStringsColors256 :: Chunk -> [ByteString] -> [ByteString]rainbow Rainbow.Translate No documentation available.
toByteStringsColors8 :: Chunk -> [ByteString] -> [ByteString]rainbow Rainbow.Translate No documentation available.
fromByteString :: ByteString -> BitStringrattletrap Rattletrap.BitString No documentation available.
toByteString :: BytePut -> ByteStringrattletrap Rattletrap.BytePut No documentation available.
toLazyByteString :: BytePut -> ByteStringrattletrap Rattletrap.BytePut No documentation available.
type
StrictByteString = ByteStringrawfilepath Data.ByteString.RawFilePath Type synonym for the strict flavour of ByteString.
decodeByteString :: Typeable a => Decoder a -> ByteString -> Either Text aregistry-aeson Data.Registry.Aeson.Decoder Use a Decoder to decode a ByteString into the desired type