Improve how input is handled/tested
tbeddy opened this issue · comments
Tim Bedford commented
Currently, there's a lot of cast
ing going on, which is very fragile and doesn't utilize the specificity Idris' type system offers. This needs to replaced by actually testing the inputs and giving more specific error messages.
Tim Bedford commented
I heavily reduced the use of cast
, but there's still a lot to improve on. I will close this issue once input is handled using the advanced state techniques outlined in the final chapters of the Type-Driven Development Book with Idris book.