hex-text alternatives and similar packages
Based on the "Text" category.
Alternatively, view hex-text alternatives based on common mentions on social networks and blogs.
-
pandoc-citeproc
Library and executable for using citeproc with pandoc -
scholdoc
Fork of Pandoc for the implementation of a ScholarlyMarkdown parser -
prettyprinter
A modern, extensible and well-documented prettyprinter. -
skylighting
A Haskell syntax highlighting library with tokenizers derived from KDE syntax highlighting descriptions -
blaze-from-html
A blazingly fast HTML combinator library for Haskell. -
commonmark
Pure Haskell commonmark parsing library, designed to be flexible and extensible -
regex-genex
Given a list of regexes, generate all possible strings that matches all of them. -
regex-applicative
Regex-based parsing with an applicative interface -
pandoc-csv2table
A Pandoc filter that renders CSV as Pandoc Markdown Tables. -
servant-checked-exceptions
type-level errors for Servant APIs. -
pretty-show
Tools for working with derived Show instances in Haskell. -
double-conversion
A fast Haskell library for converting between double precision floating point numbers and text strings. It is implemented as a binding to the V8-derived C++ double-conversion library. -
text-format
A Haskell text formatting library optimized for ease of use and high performance. -
diagrams-pandoc
A pandoc filter to express diagrams inline using the haskell EDSL diagrams. -
boxes
A pretty-printing library for laying out text in two dimensions, using a simple box model. -
hyphenation
Knuth-Liang Hyphenation for Haskell based on TeX hyphenation files
Access the most powerful time series database as a service
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of hex-text or a related project?
README
hex-text
hex-text
is a small library for converting between ByteString
s and their representations as hexidecimal numbers encoded as Text
.
Motivation
When using Stripe for payments, Stripe sends a signature as a hexidecimal Text
value. The cryptonite
package can be used to verify the signature, but it requires ByteString
values, not Text
.
Example usage
A ByteString
is a list of bytes. A byte is a number between 0 and 255, represented by the Word8
type. In a fixed-width hexidecimal representation, the lowest byte 0 is represented by the hex string 00
, and the greatest byte 255 is represented by the hex string ff
. So, for example, the ByteString
consisting of bytes [ 1, 2, 3, 253, 254, 255 ] is represented as 010203fdfeff
.
λ> import Text.Hex (encodeHex)
λ> import Data.ByteString (pack)
λ> (encodeHex . pack) [1, 2, 3, 253, 254, 255]
"010203fdfeff"