Is your feature request related to a problem? Please describe.
Currently the Addressbook is missing a refresh function to refresh addresses from a mutt alias file. The type is currently:
Maybe (IO AddressBook)
this might be fine and we need to use try and catch any exceptions to show in the UI. However one downside is that we need to "lift" and throw ParseErrors. If we use Maybe (Either Error (IO AddressBook)) it will get gnarly but may represent parsing errors better.
Describe the solution you'd like
Figure out which solution is better.
Describe alternatives you've considered
See description
Is your feature request related to a problem? Please describe. Currently the Addressbook is missing a refresh function to refresh addresses from a mutt alias file. The type is currently:
this might be fine and we need to use
try
and catch any exceptions to show in the UI. However one downside is that we need to "lift" and throwParseError
s. If we useMaybe (Either Error (IO AddressBook))
it will get gnarly but may represent parsing errors better.Describe the solution you'd like Figure out which solution is better.
Describe alternatives you've considered See description
Additional context none