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
a76d3b82
Commit
a76d3b82
authored
Feb 09, 2016
by
Nicholas Luo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Combine protocol version with rest of kernel info
parent
05100fe6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
Writer.hs
ipython-kernel/src/IHaskell/IPython/Message/Writer.hs
+1
-1
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/Message/Writer.hs
View file @
a76d3b82
...
@@ -25,7 +25,7 @@ instance ToJSON LanguageInfo where
...
@@ -25,7 +25,7 @@ instance ToJSON LanguageInfo where
instance
ToJSON
Message
where
instance
ToJSON
Message
where
toJSON
rep
@
KernelInfoReply
{}
=
toJSON
rep
@
KernelInfoReply
{}
=
object
object
[
"protocol_version"
.=
string
"5.0"
-- current protocol version, major and minor
[
"protocol_version"
.=
protocolVersion
rep
,
"banner"
.=
banner
rep
,
"banner"
.=
banner
rep
,
"implementation"
.=
implementation
rep
,
"implementation"
.=
implementation
rep
,
"implementation_version"
.=
implementationVersion
rep
,
"implementation_version"
.=
implementationVersion
rep
...
...
ipython-kernel/src/IHaskell/IPython/Types.hs
View file @
a76d3b82
...
@@ -287,6 +287,7 @@ data Message =
...
@@ -287,6 +287,7 @@ data Message =
-- | A response to a KernelInfoRequest.
-- | A response to a KernelInfoRequest.
KernelInfoReply
KernelInfoReply
{
header
::
MessageHeader
{
header
::
MessageHeader
,
protocolVersion
::
String
-- ^ current protocol version, major and minor
,
banner
::
String
-- ^ Kernel information description e.g. (IHaskell 0.8.3.0 GHC 7.10.2)
,
banner
::
String
-- ^ Kernel information description e.g. (IHaskell 0.8.3.0 GHC 7.10.2)
,
implementation
::
String
-- ^ e.g. IHaskell
,
implementation
::
String
-- ^ e.g. IHaskell
,
implementationVersion
::
String
-- ^ The version of the implementation
,
implementationVersion
::
String
-- ^ The version of the implementation
...
...
main/Main.hs
View file @
a76d3b82
...
@@ -239,6 +239,7 @@ replyTo _ KernelInfoRequest{} replyHeader state =
...
@@ -239,6 +239,7 @@ replyTo _ KernelInfoRequest{} replyHeader state =
return
return
(
state
,
KernelInfoReply
(
state
,
KernelInfoReply
{
header
=
replyHeader
{
header
=
replyHeader
,
protocolVersion
=
"5.0"
,
banner
=
"IHaskell "
++
VERSION_ipython_kernel
++
" GHC "
++
VERSION_ghc
,
banner
=
"IHaskell "
++
VERSION_ipython_kernel
++
" GHC "
++
VERSION_ghc
,
implementation
=
"IHaskell"
,
implementation
=
"IHaskell"
,
implementationVersion
=
VERSION_ipython_kernel
,
implementationVersion
=
VERSION_ipython_kernel
...
...
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