diff options
author | Griffin Smith <root@gws.fyi> | 2019-12-23T22·20-0500 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2019-12-23T22·22-0500 |
commit | a58966d43f86d6fae92c1fc11e43650177fcecd1 (patch) | |
tree | 151c00bcb73740e9b95cd3c87d273e96b6663e6f /src/Xanthous/Game/Prompt.hs | |
parent | f701a0be40598585cc1aec1ecf34e3fdd5690e81 (diff) |
Confirm before quitting
Prompt to confirm before quitting the game with the Quit command
Diffstat (limited to 'src/Xanthous/Game/Prompt.hs')
-rw-r--r-- | src/Xanthous/Game/Prompt.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Xanthous/Game/Prompt.hs b/src/Xanthous/Game/Prompt.hs index b83c3d246fa2..e89cf5bee3d0 100644 --- a/src/Xanthous/Game/Prompt.hs +++ b/src/Xanthous/Game/Prompt.hs @@ -69,6 +69,7 @@ instance NFData (SPromptType pt) where class SingPromptType pt where singPromptType :: SPromptType pt instance SingPromptType 'StringPrompt where singPromptType = SStringPrompt +instance SingPromptType 'Confirm where singPromptType = SConfirm instance SingPromptType 'DirectionPrompt where singPromptType = SDirectionPrompt instance SingPromptType 'PointOnMap where singPromptType = SPointOnMap instance SingPromptType 'Continue where singPromptType = SContinue |