-
-
Save willbasky/b63664bee812ae895e9151149576f524 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CmdShow id -> do | |
doc <- cmdShowId @Note id | |
case doc of | |
Right Storage.Document{value} -> pprint $ withHeader "Note:" $ UI.noteViewFull $ noteView id value | |
Left _ -> do | |
doc <- cmdShowId @Contact id | |
case doc of | |
Right Storage.Document{value} -> pprint $ withHeader "Contact:" $ UI.contactViewFull $ contactView id value | |
Left e -> liftIO $ pprint a | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment