Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6dbc72e

Browse files
committed
Fix some typos, adjust nix scripts for darwin, add Generic
1 parent 344044c commit 6dbc72e

File tree

4 files changed

+192
-184
lines changed

4 files changed

+192
-184
lines changed

‎dap/default.nix‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ let
6565
external-stg = self.callCabal2nix "external-stg" "${external-stg-src}/external-stg" {};
6666
external-stg-syntax = self.callCabal2nix "external-stg-syntax" "${external-stg-src}/external-stg-syntax" {};
6767
hello = with self;
68-
pkgs.lib.overrideDerivation (addBuildDepends (callCabal2nix "hello" ./hello {}) [zip-cmd external-stg]) (drv: {
68+
pkgs.lib.overrideDerivation (addBuildDepends (callCabal2nix "hello" ./hello {}) [zip-cmd external-stgpkgs.gcc]) (drv: {
6969
postInstall = ''
7070
${external-stg}/bin/mkfullpak -a dist/build/hello/hello.o_ghc_stgapp
7171
mv -v dist/build/hello/hello.fullpak $out/bin/hello.fullpak

‎dap/src/DAP.hs‎

Lines changed: 187 additions & 180 deletions
Original file line numberDiff line numberDiff line change
@@ -1,185 +1,192 @@
11
module DAP
2-
( -- * Adaptor
3-
AdaptorClient
4-
, AdaptorState
5-
-- * Adaptor API
6-
, getServerCapabilities
7-
, getArguments
8-
, getAddress
9-
, getRequestSeqNum
10-
, getAppStore
11-
-- * Configuration
12-
, ServerConfig (..)
13-
-- * Logging
14-
, logWarn
15-
, logError
16-
, logInfo
17-
, logger
18-
-- * Debugger Sessions
19-
, AppStore (..)
20-
, registerNewDebugSession
21-
, withDebugSession
22-
, getDebugSessionId
23-
, destroyDebugSession
24-
, setDebugSessionId
25-
-- * Command
26-
, Command (..)
27-
-- * Events
28-
, EventType (..)
29-
--- * Event Operations
30-
, sendBreakpointEvent
31-
, sendCapabilitiesEvent
32-
, sendContinuedEvent
33-
, sendExitedEvent
34-
, sendInitializedEvent
35-
, sendInvalidatedEvent
36-
, sendLoadedSourceEvent
37-
, sendMemoryEvent
38-
, sendModuleEvent
39-
, sendOutputEvent
40-
, sendProcessEvent
41-
, sendProgressEndEvent
42-
, sendProgressStartEvent
43-
, sendProgressUpdateEvent
44-
, sendStoppedEvent
45-
, sendTerminatedEvent
46-
, sendThreadEvent
47-
-- * Request / Response
48-
--- * Attach
49-
, sendAttachResponse
50-
, AttachRequestArguments (..)
51-
--- * BreakpointLocations
52-
, sendBreakpointLocationsResponse
53-
, BreakpointLocationsRequestArguments (..)
54-
--- * Completions
55-
, sendCompletionsResponse
56-
, CompletionsResponse (..)
57-
--- * ConfigurationDone
58-
, sendConfigurationDoneResponse
59-
, ConfigurationDoneResponse (..)
60-
--- * Continue
61-
, sendContinueResponse
62-
, ContinueResponse (..)
63-
--- * DataBreakpointInfo
64-
, sendDataBreakpointInfoResponse
65-
, DataBreakpointInfoResponse (..)
66-
--- * Disassemble
67-
, sendDisassembleResponse
68-
, DisassembleResponse (..)
69-
--- * Disconnect
70-
, sendDisconnectResponse
71-
, DisconnectResponse (..)
72-
--- * Evaluate
73-
, sendEvaluateResponse
74-
, EvaluateResponse (..)
75-
--- * ExceptionInfo
76-
, sendExceptionInfoResponse
77-
, ExceptionInfoResponse (..)
78-
--- * Goto
79-
, sendGotoResponse
80-
, GotoResponse (..)
81-
--- * GotoTargets
82-
, sendGotoTargetsResponse
83-
, GotoTargetsResponse (..)
84-
--- * Initialize
85-
, sendInitializeResponse
86-
, InitializeResponse (..)
87-
--- * Launch
88-
, sendLaunchResponse
89-
, LaunchResponse (..)
90-
--- * LoadedSources
91-
, sendLoadedSourcesResponse
92-
, LoadedSourcesResponse (..)
93-
--- * Modules
94-
, sendModulesResponse
95-
, ModulesResponse (..)
96-
--- * Next
97-
, sendNextResponse
98-
, NextResponse (..)
99-
--- * Pause
100-
, sendPauseResponse
101-
, PauseResponse (..)
102-
--- * ReadMemory
103-
, sendReadMemoryResponse
104-
, ReadMemoryResponse (..)
105-
--- * Restart
106-
, sendRestartResponse
107-
, RestartResponse (..)
108-
--- * RestartFrame
109-
, sendRestartFrameResponse
110-
, RestartFrameResponse (..)
111-
--- * ReverseContinue
112-
, sendReverseContinueResponse
113-
, ReverseContinueResponse (..)
114-
--- * Scopes
115-
, sendScopesResponse
116-
, ScopesResponse (..)
117-
--- * SetBreakpoints
118-
, sendSetBreakpointsResponse
119-
, SetBreakpointsResponse (..)
120-
--- * SetDataBreakpoints
121-
, sendSetDataBreakpointsResponse
122-
, SetDataBreakpointsResponse (..)
123-
--- * SetExceptionBreakpoints
124-
, sendSetExceptionBreakpointsResponse
125-
, SetExceptionBreakpointsResponse (..)
126-
--- * SetExpression
127-
, sendSetExpressionResponse
128-
, SetExpressionResponse (..)
129-
--- * SetFunctionBreakpoints
130-
, sendSetFunctionBreakpointsResponse
131-
, SetFunctionBreakpointsResponse (..)
132-
--- * SetInstructionBreakpoints
133-
, sendSetInstructionBreakpointsResponse
134-
, SetInstructionBreakpointsResponse (..)
135-
--- * SetVariable
136-
, sendSetVariableResponse
137-
, SetVariableResponse (..)
138-
--- * Source
139-
, sendSourceResponse
140-
, SourceResponse (..)
141-
--- * StackTrace
142-
, sendStackTraceResponse
143-
, StackTraceResponse (..)
144-
--- * StepBack
145-
, sendStepBackResponse
146-
, StepBackResponse (..)
147-
--- * StepIn
148-
, sendStepInResponse
149-
, StepInResponse (..)
150-
--- * StepInTargets
151-
, sendStepInTargetsResponse
152-
, StepInTargetsResponse (..)
153-
--- * StepOut
154-
, sendStepOutResponse
155-
, StepOutResponse (..)
156-
--- * Terminate
157-
, sendTerminateResponse
158-
, TerminateResponse (..)
159-
--- * TerminateThreads
160-
, sendTerminateThreadsResponse
161-
, TerminateThreadsResponse (..)
162-
--- * Threads
163-
, sendThreadsResponse
164-
, ThreadsResponse (..)
165-
--- * Variables
166-
, sendVariablesResponse
167-
, VariablesResponse (..)
168-
--- * Write Memory
169-
, sendWriteMemoryResponse
170-
, WriteMemoryResponse (..)
171-
-- * Reverse Requests
172-
--- * RunInTerminal
173-
, RunInTerminalResponse (..)
174-
, sendRunInTerminalResponse
175-
--- * StartDebugging
176-
, StartDebuggingResponse (..)
177-
, sendStartDebuggingResponse
178-
-- * Errors
179-
, sendErrorResponse
180-
, ErrorResponse (..)
181-
, ErrorMessage (..)
2+
( module DAP.Adaptor
3+
, module DAP.Event
4+
, module DAP.Internal
5+
, module DAP.Response
6+
, module DAP.Server
7+
, module DAP.Types
1828
) where
9+
-- ( -- * Adaptor
10+
-- AdaptorClient
11+
-- , AdaptorState
12+
-- -- * Adaptor API
13+
-- , getServerCapabilities
14+
-- , getArguments
15+
-- , getAddress
16+
-- , getRequestSeqNum
17+
-- , getAppStore
18+
-- -- * Configuration
19+
-- , ServerConfig (..)
20+
-- -- * Logging
21+
-- , logWarn
22+
-- , logError
23+
-- , logInfo
24+
-- , logger
25+
-- -- * Debugger Sessions
26+
-- , AppStore (..)
27+
-- , registerNewDebugSession
28+
-- , withDebugSession
29+
-- , getDebugSessionId
30+
-- , destroyDebugSession
31+
-- , setDebugSessionId
32+
-- -- * Command
33+
-- , Command (..)
34+
-- -- * Events
35+
-- , EventType (..)
36+
-- --- * Event Operations
37+
-- , sendBreakpointEvent
38+
-- , sendCapabilitiesEvent
39+
-- , sendContinuedEvent
40+
-- , sendExitedEvent
41+
-- , sendInitializedEvent
42+
-- , sendInvalidatedEvent
43+
-- , sendLoadedSourceEvent
44+
-- , sendMemoryEvent
45+
-- , sendModuleEvent
46+
-- , sendOutputEvent
47+
-- , sendProcessEvent
48+
-- , sendProgressEndEvent
49+
-- , sendProgressStartEvent
50+
-- , sendProgressUpdateEvent
51+
-- , sendStoppedEvent
52+
-- , sendTerminatedEvent
53+
-- , sendThreadEvent
54+
-- -- * Request / Response
55+
-- --- * Attach
56+
-- , sendAttachResponse
57+
-- , AttachRequestArguments (..)
58+
-- --- * BreakpointLocations
59+
-- , sendBreakpointLocationsResponse
60+
-- , BreakpointLocationsRequestArguments (..)
61+
-- --- * Completions
62+
-- , sendCompletionsResponse
63+
-- , CompletionsResponse (..)
64+
-- --- * ConfigurationDone
65+
-- , sendConfigurationDoneResponse
66+
-- , ConfigurationDoneResponse (..)
67+
-- --- * Continue
68+
-- , sendContinueResponse
69+
-- , ContinueResponse (..)
70+
-- --- * DataBreakpointInfo
71+
-- , sendDataBreakpointInfoResponse
72+
-- , DataBreakpointInfoResponse (..)
73+
-- --- * Disassemble
74+
-- , sendDisassembleResponse
75+
-- , DisassembleResponse (..)
76+
-- --- * Disconnect
77+
-- , sendDisconnectResponse
78+
-- , DisconnectResponse (..)
79+
-- --- * Evaluate
80+
-- , sendEvaluateResponse
81+
-- , EvaluateResponse (..)
82+
-- --- * ExceptionInfo
83+
-- , sendExceptionInfoResponse
84+
-- , ExceptionInfoResponse (..)
85+
-- --- * Goto
86+
-- , sendGotoResponse
87+
-- , GotoResponse (..)
88+
-- --- * GotoTargets
89+
-- , sendGotoTargetsResponse
90+
-- , GotoTargetsResponse (..)
91+
-- --- * Initialize
92+
-- , sendInitializeResponse
93+
-- , InitializeResponse (..)
94+
-- --- * Launch
95+
-- , sendLaunchResponse
96+
-- , LaunchResponse (..)
97+
-- --- * LoadedSources
98+
-- , sendLoadedSourcesResponse
99+
-- , LoadedSourcesResponse (..)
100+
-- --- * Modules
101+
-- , sendModulesResponse
102+
-- , ModulesResponse (..)
103+
-- --- * Next
104+
-- , sendNextResponse
105+
-- , NextResponse (..)
106+
-- --- * Pause
107+
-- , sendPauseResponse
108+
-- , PauseResponse (..)
109+
-- --- * ReadMemory
110+
-- , sendReadMemoryResponse
111+
-- , ReadMemoryResponse (..)
112+
-- --- * Restart
113+
-- , sendRestartResponse
114+
-- , RestartResponse (..)
115+
-- --- * RestartFrame
116+
-- , sendRestartFrameResponse
117+
-- , RestartFrameResponse (..)
118+
-- --- * ReverseContinue
119+
-- , sendReverseContinueResponse
120+
-- , ReverseContinueResponse (..)
121+
-- --- * Scopes
122+
-- , sendScopesResponse
123+
-- , ScopesResponse (..)
124+
-- --- * SetBreakpoints
125+
-- , sendSetBreakpointsResponse
126+
-- , SetBreakpointsResponse (..)
127+
-- --- * SetDataBreakpoints
128+
-- , sendSetDataBreakpointsResponse
129+
-- , SetDataBreakpointsResponse (..)
130+
-- --- * SetExceptionBreakpoints
131+
-- , sendSetExceptionBreakpointsResponse
132+
-- , SetExceptionBreakpointsResponse (..)
133+
-- --- * SetExpression
134+
-- , sendSetExpressionResponse
135+
-- , SetExpressionResponse (..)
136+
-- --- * SetFunctionBreakpoints
137+
-- , sendSetFunctionBreakpointsResponse
138+
-- , SetFunctionBreakpointsResponse (..)
139+
-- --- * SetInstructionBreakpoints
140+
-- , sendSetInstructionBreakpointsResponse
141+
-- , SetInstructionBreakpointsResponse (..)
142+
-- --- * SetVariable
143+
-- , sendSetVariableResponse
144+
-- , SetVariableResponse (..)
145+
-- --- * Source
146+
-- , sendSourceResponse
147+
-- , SourceResponse (..)
148+
-- --- * StackTrace
149+
-- , sendStackTraceResponse
150+
-- , StackTraceResponse (..)
151+
-- --- * StepBack
152+
-- , sendStepBackResponse
153+
-- , StepBackResponse (..)
154+
-- --- * StepIn
155+
-- , sendStepInResponse
156+
-- , StepInResponse (..)
157+
-- --- * StepInTargets
158+
-- , sendStepInTargetsResponse
159+
-- , StepInTargetsResponse (..)
160+
-- --- * StepOut
161+
-- , sendStepOutResponse
162+
-- , StepOutResponse (..)
163+
-- --- * Terminate
164+
-- , sendTerminateResponse
165+
-- , TerminateResponse (..)
166+
-- --- * TerminateThreads
167+
-- , sendTerminateThreadsResponse
168+
-- , TerminateThreadsResponse (..)
169+
-- --- * Threads
170+
-- , sendThreadsResponse
171+
-- , ThreadsResponse (..)
172+
-- --- * Variables
173+
-- , sendVariablesResponse
174+
-- , VariablesResponse (..)
175+
-- --- * Write Memory
176+
-- , sendWriteMemoryResponse
177+
-- , WriteMemoryResponse (..)
178+
-- -- * Reverse Requests
179+
-- --- * RunInTerminal
180+
-- , RunInTerminalResponse (..)
181+
-- , sendRunInTerminalResponse
182+
-- --- * StartDebugging
183+
-- , StartDebuggingResponse (..)
184+
-- , sendStartDebuggingResponse
185+
-- -- * Errors
186+
-- , sendErrorResponse
187+
-- , ErrorResponse (..)
188+
-- , ErrorMessage (..)
189+
-- ) where
183190

184191
import DAP.Adaptor
185192
import DAP.Event

‎dap/src/DAP/Response.hs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ sendVariablesResponse :: VariablesResponse -> AdaptorClient app ()
264264
sendVariablesResponse = sendSuccesfulResponse . setBody
265265
----------------------------------------------------------------------------
266266
sendRunInTerminalResponse :: RunInTerminalResponse -> AdaptorClient app ()
267-
sendRunInTerminalResponse = sendSuccessfulResponse . setBody
267+
sendRunInTerminalResponse = sendSuccesfulResponse . setBody
268268
----------------------------------------------------------------------------
269269
sendStartDebuggingResponse :: AdaptorClient app ()
270270
sendStartDebuggingResponse = sendSuccesfulEmptyResponse

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /