Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Tablebot/Utility/SmartParser/Interactions.hs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ instance {-# OVERLAPPABLE #-} (MakeAppComm mac, MakeAppCommArg ty) => MakeAppCom
instance {-# OVERLAPPABLE #-} (MakeAppComm mac) => MakeAppComm (SenderUserId -> mac) where
makeAppComm _ = makeAppComm (Proxy :: Proxy mac)

-- we don't get the interaction from the command itself, so ignore it
instance {-# OVERLAPPABLE #-} (MakeAppComm mac) => MakeAppComm (Interaction -> mac) where
makeAppComm _ = makeAppComm (Proxy :: Proxy mac)

-- | From a single value, make an argument for a slash command command.
class MakeAppCommArg commandty where
makeAppCommArg :: Proxy commandty -> OptionValue
Expand Down