ttc
Textual Type Classes - a Haskell library for conversion between data types and textual data types (by ExtremaIS)
witch
:mage_woman: Convert values from one type into another. (by tfausak)
ttc | witch | |
---|---|---|
3 | 4 | |
9 | 74 | |
- | - | |
7.2 | 6.0 | |
14 days ago | about 1 month ago | |
Haskell | Haskell | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ttc
Posts with mentions or reviews of ttc.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-06-02.
-
Is it possible to do compile-time validation of literal strings?
The valid function is for types with Lift instances (example).
-
[ANN] ttc-1.0.0.0 - Textual Type Classes
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.
witch
Posts with mentions or reviews of witch.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-05-30.
-
Haskell Libraries I Love
Thanks for mentioning Witch! I'm obviously biased because I wrote it, but it's a great library :)
-
Cast Haskell values with Witch
See this issue for some discussion: https://github.com/tfausak/witch/issues/2
-
[ANN] ttc-1.0.0.0 - Textual Type Classes
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.
What are some alternatives?
When comparing ttc and witch you can also consider the following projects:
cassava - A CSV parsing and encoding library optimized for ease of use and high performance
safecopy - An extension to Data.Serialize with built-in version control
audiovisual - Extensible records, variants, structs, effects, tangles
holmes - A reference library for constraint-solving with propagators and CDCL.
jump - Jump start your Haskell development
orgmode-parse - Attoparsec parser combinators for parsing org-mode structured text!
discrimination - Fast linear time sorting and discrimination for a large class of data types
avro - Haskell Avro Encoding and Decoding Native Support (no RPC)
diskhash - Diskbased (persistent) hashtable
tables - Deprecated because of