Skip to main content

TTC (Textual Type Classes)

TTC (Textual Type Classes) is a Haskell library that provides type classes for conversion between data types and textual data types (strings). This article series provides a guided tour of the library.

  1. Textual Type Class discusses the Textual type class, used to convert between the many textual data types available in Haskell.
  2. Render and Parse discusses the Render type class, used to render a textual representation of a type, and the Parse type class, used to parse a value from a textual representation. These type classes provide many benefits over using the Show and Read type classes.
  3. Validated Constants discusses functions that use a Parse instance to validate constants at compile-time.
  4. Best Practices discusses some best practices to keep in mind when using the library.