diff --git a/src/Quasar/Wayland/Protocol/TH.hs b/src/Quasar/Wayland/Protocol/TH.hs index 489df0472058ebffe5364b0ff46a46e8d54cef79..49d408c1ec13023d81ab20da4c7814ee1958c964 100644 --- a/src/Quasar/Wayland/Protocol/TH.hs +++ b/src/Quasar/Wayland/Protocol/TH.hs @@ -621,8 +621,6 @@ parseMessage isRequest interface (opcode, element) = do Just "destructor" -> pure True Just messageType -> fail $ "Unknown message type: " <> messageType - when (isDestructor && not (null arguments)) $ fail $ "Destructor must not have arguments: " <> loc - forM_ arguments \arg -> do when do arg.argType == GenericNewIdArgument && (interface /= "wl_registry" || name /= "bind")