"It is important that we forgive ourselves for making mistakes. We need to learn from our errors and move on."
― Steve Maraboli, Life, the Truth, and Being Free
Combinators for writing pretty type errors easily. The word pretty here doesn't mean that the resulting type errors will be pretty (though, I believe they will be awesome), but the way the type errors are defined in your code is pretty.
If you're interested in motivation behind using type errors at first place, you can read the following blog post:
type-errors-pretty library allows you to write the text of custom
compile-time error messages with less effort in the following way:
import Type.Errors.Pretty (type (<>), type (%)) type MessageText (e1 :: k) (e2 :: k) (es :: [k]) = "You require the following two effects from your computation:" % "" % " '" <> e1 <> "' and '" <> e2 <> "'" % "" % "However, your monad is capable of performing only the following effects:" % "" % " " <> es
*Note that all licence references and agreements mentioned in the type-errors-pretty README section above are relevant to that project's source code only.