{-# LANGUAGE TemplateHaskell #-} module Phoityne.IO.GUI.VSCode.TH.ExitedEventBodyJSON where import Data.Aeson import Data.Aeson.TH import Phoityne.Utility -- | -- Event message for "exited" event type. -- The event indicates that the debuggee has exited. -- data ExitedEventBody = ExitedEventBody { exitCodeExitedEventBody :: Int -- The exit code returned from the debuggee. } deriving (Show, Read, Eq) $(deriveJSON defaultOptions { fieldLabelModifier = rdrop (length "ExitedEventBody") } ''ExitedEventBody) defaultExitedEventBody code = ExitedEventBody code