LeastAuthority / wormhole-client

A magic-wormhole client in Haskell
GNU General Public License v3.0
6 stars 1 forks source link

Refactor the application #47

Closed vu3rdd closed 6 years ago

vu3rdd commented 6 years ago

Refactor functions to use a Configuration and return IO (Either Error a). We do that in steps in the below commits.

  1. We refactor command line processing a bit.
  2. move configuration types into a separate module and make a Reader that takes a read-only environment.
  3. Use ReaderT Config (IO (Either Error a))
  4. Convert into ReaderT Config (EitherT Error IO a)
  5. newtype called App afor the above type.

This change is Reviewable