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