packages feed

phoityne-vscode-0.0.1.0: app/Phoityne/IO/GUI/VSCode/TH/RequestJSON.hs

{-# LANGUAGE TemplateHaskell #-}

module Phoityne.IO.GUI.VSCode.TH.RequestJSON where

import Data.Aeson.TH

import Phoityne.Utility

-- |
--   Client-initiated request
--
data Request =
  Request {
    commandRequest   :: String    -- The command to execute
  -- , argumentsRequest :: [String]  -- Object containing arguments for the command
  } deriving (Show, Read, Eq)

$(deriveJSON defaultOptions { fieldLabelModifier = rdrop (length "Request") } ''Request)