Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
c10f3e08
Commit
c10f3e08
authored
Jul 14, 2018
by
MMesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add status to all Reply messages
parent
d5b56fbb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
3 deletions
+13
-3
EasyKernel.hs
ipython-kernel/src/IHaskell/IPython/EasyKernel.hs
+1
-0
Writer.hs
ipython-kernel/src/IHaskell/IPython/Message/Writer.hs
+10
-3
Types.hs
ipython-kernel/src/IHaskell/IPython/Types.hs
+1
-0
Main.hs
main/Main.hs
+1
-0
No files found.
ipython-kernel/src/IHaskell/IPython/EasyKernel.hs
View file @
c10f3e08
...
...
@@ -177,6 +177,7 @@ replyTo config _ interface KernelInfoRequest{} replyHeader = do
,
implementationVersion
=
kernelImplVersion
config
,
banner
=
kernelBanner
config
,
protocolVersion
=
kernelProtocolVersion
config
,
status
=
Ok
}
replyTo
config
_
_
CommInfoRequest
{}
replyHeader
=
...
...
ipython-kernel/src/IHaskell/IPython/Message/Writer.hs
View file @
c10f3e08
...
...
@@ -31,6 +31,7 @@ instance ToJSON Message where
,
"implementation"
.=
implementation
rep
,
"implementation_version"
.=
implementationVersion
rep
,
"language_info"
.=
languageInfo
rep
,
"status"
.=
show
(
status
rep
)
]
toJSON
CommInfoReply
...
...
@@ -38,7 +39,9 @@ instance ToJSON Message where
,
commInfo
=
commInfo
}
=
object
[
"comms"
.=
Map
.
map
(
\
comm
->
object
[
"target_name"
.=
comm
])
commInfo
]
[
"comms"
.=
Map
.
map
(
\
comm
->
object
[
"target_name"
.=
comm
])
commInfo
,
"status"
.=
string
"ok"
]
toJSON
ExecuteRequest
{
getCode
=
code
...
...
@@ -109,7 +112,9 @@ instance ToJSON Message where
]
toJSON
ShutdownReply
{
restartPending
=
restart
}
=
object
[
"restart"
.=
restart
]
object
[
"restart"
.=
restart
,
"status"
.=
string
"ok"
]
toJSON
ClearOutput
{
wait
=
wait
}
=
object
[
"wait"
.=
wait
]
...
...
@@ -132,7 +137,9 @@ instance ToJSON Message where
object
[
"comm_id"
.=
commUuid
req
,
"data"
.=
commData
req
]
toJSON
req
@
HistoryReply
{}
=
object
[
"history"
.=
map
tuplify
(
historyReply
req
)]
object
[
"history"
.=
map
tuplify
(
historyReply
req
)
,
"status"
.=
string
"ok"
]
where
tuplify
(
HistoryReplyElement
sess
linum
res
)
=
(
sess
,
linum
,
case
res
of
Left
inp
->
toJSON
inp
...
...
ipython-kernel/src/IHaskell/IPython/Types.hs
View file @
c10f3e08
...
...
@@ -299,6 +299,7 @@ data Message =
,
implementation
::
String
-- ^ e.g. IHaskell
,
implementationVersion
::
String
-- ^ The version of the implementation
,
languageInfo
::
LanguageInfo
,
status
::
ExecuteReplyStatus
}
|
-- | A request from a frontend for information about the comms.
...
...
main/Main.hs
View file @
c10f3e08
...
...
@@ -275,6 +275,7 @@ replyTo interface KernelInfoRequest{} replyHeader state = do
,
languageFileExtension
=
".hs"
,
languageCodeMirrorMode
=
"ihaskell"
}
,
status
=
Ok
})
replyTo
_
CommInfoRequest
{}
replyHeader
state
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment