JordanMartinez/learn-halogen

Scaffolding Obscures Actual Types

Closed this issue · 2 comments

I am going through some of the lessons and there seem to be a lot of types aliases that obscure the actual type. Thus I go to the scaffolding module and find what it actually is and then flip back and forth between the pages until I memorize what the alias actually is.

Would it not be better to use the actual types, put the aliases in the same file, or use a comment for the aliases?

Example StateActionMessageComponent:

textAndButtonComponent :: StateActionMessageComponent State Action

@BebeSparkelSparkel Yeah, that's the general conclusion we've reached in #42 (this issue is a duplicate of that one). I'll likely be swithcing to that new approach this week, so it might be best to wait until I finish that.