someodd / waffle

Haskell Gopher Protocol TUI Client 🧇
https://www.someodd.zip/showcase/waffle/
GNU General Public License v3.0
21 stars 1 forks source link

Clean up code #34

Open hyperrealgopher opened 4 years ago

hyperrealgopher commented 4 years ago
hyperrealgopher commented 4 years ago

A lot of stuff could make better use of higher order functions. Something which comes to mind are stuff like progress module and the stuff like searchGet and gopherGet, etc.

hyperrealgopher commented 4 years ago

The history items in progress.hs should go in their own module. They're currently in there because of a circular import problem.

hyperrealgopher commented 4 years ago

Some of @Garmelon's suggestions:

hyperrealgopher commented 4 years ago

Maybe even start UI/Modes/*.hs?

hyperrealgopher commented 4 years ago

you're supposed to keep widgets in app state and manipulate things from there! that's much more efficient than rebuilding every dang time