Skip to content

Commit 56cc925

Browse files
committed
Expose OutputEventCategory and fix JSON rendering
The genericToJSONModifier function uses the prefix to split out of the intended string, but OutputEventCategory was missing the prefix. Fixes #7
1 parent 840bd49 commit 56cc925

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/DAP/Types.hs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ module DAP.Types
8181
, TerminatedEvent (..)
8282
, ThreadEvent (..)
8383
, OutputEvent (..)
84+
, OutputEventCategory (..)
8485
, BreakpointEvent (..)
8586
, ModuleEvent (..)
8687
, LoadedSourceEvent (..)
@@ -2296,11 +2297,11 @@ instance ToJSON ThreadEventReason where
22962297
toJSON reason = genericToJSONWithModifier reason
22972298
----------------------------------------------------------------------------
22982299
data OutputEventCategory
2299-
= Console
2300-
| Important
2301-
| Stdout
2302-
| Stderr
2303-
| Telemetry
2300+
= OutputEventCategoryConsole
2301+
| OutputEventCategoryImportant
2302+
| OutputEventCategoryStdout
2303+
| OutputEventCategoryStderr
2304+
| OutputEventCategoryTelemetry
23042305
| OutputEventCategory Text
23052306
deriving stock (Show, Eq, Generic)
23062307
----------------------------------------------------------------------------

0 commit comments

Comments
 (0)