tbeddy / mnk-idris

m,n,k-game engine (and variations) implemented in Idris

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve how input is handled/tested

tbeddy opened this issue · comments

Currently, there's a lot of casting 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.

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.