Skip to content

Add custom type errors in some places #171

@chshersh

Description

@chshersh

This is a meta-issue to collect all places where custom type errors can be introduced to increase the quality of error messages and make relude more beginner-friendly

  • Foldable1 for ordinary list
  • ToString/ToText/ToLText/ConvertUtf8 for text data types: suggest proper function.
  • head/tail/init/last
  • lines/unlines/words/unwords
  • error

Any other ideas? 🙂

Also, open question: is it worth to add type-errors-pretty to dependencies to write these errors?

Metadata

Metadata

Labels

docREADME, Haddock documentation, tutorialsenhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions