scott-fleischman / greek-grammar

Modeling Ancient Greek Grammar
https://scott-fleischman.github.io/greek-grammar
MIT License
49 stars 7 forks source link

Consider using Vinyl records #8

Open scott-fleischman opened 9 years ago

scott-fleischman commented 9 years ago

I find myself modifying the open-ended Token type by stripping marks, removing case and other similar operations. It caused a lot of runtime issues that would have been better caught at type-checking time.

@jonsterling's Vinyl records may be useful here to encode marks as separate records and be more precise in type signatures about which marks are expected to be present or not present without having to specify a new Token record type for every combination of marks that we need.