[ANN] ttc-1.0.0.0 - Textual Type Classes

This page summarizes the projects mentioned and recommended in the original post on /r/haskell

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. ttc

    Textual Type Classes - a Haskell library for conversion between data types and textual data types

    I had not come across your witch package before. Thank you very much for letting me know about it! I will add it to the related work section of the TTC README.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. witch

    :mage_woman: Convert values from one type into another.

    The witch package provides type classes for converting between arbitrary types: text, numbers, and anything else that people create instances for. It is therefore much more broadly applicable compared to TTC, which only works with text. I really appreciate that both a From type class (for conversion without failure) and a TryFrom type class (for conversion that may fail) are used, and the implementation looks very convenient. I will remember this project and use it when I have a suitable application in the future.

  4. cassava

    A CSV parsing and encoding library optimized for ease of use and high performance

    I have done a lot of CSV development! I usually use the cassava library, though I have my own library as well. The cassava library uses FromRecord, FromNamedRecord, ToRecord, and ToNamedRecord type classes for parsing and rendering records, and it uses FromField and ToField type classes for parsing and rendering fields. An identifier type like the UserName example above should declare instances for FromField and ToField in order to be used in CSV files. For types that have appropriate Render and Parse instances, I implement general functions named something like parseFieldWithTTC and toFieldWithTTC, which allows me to declare instances as follows:

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Working with CSVs

    2 projects | /r/haskellquestions | 27 Oct 2021
  • Monthly Hask Anything (November 2022)

    3 projects | /r/haskell | 1 Nov 2022
  • Parsing data from CSV into PostgreSQL in Phoenix Framework project with Elixir

    1 project | dev.to | 24 Dec 2023
  • The Meaning of Monad in MonadTrans

    2 projects | news.ycombinator.com | 13 Aug 2023
  • GQL: A SQL like query language for .git files

    6 projects | /r/ProgrammingLanguages | 12 Jun 2023

Did you know that Haskell is
the 25th most popular programming language
based on number of references?