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
d57a6ca5
Commit
d57a6ca5
authored
Jul 14, 2018
by
MMesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add pygment lexer info
parent
c10f3e08
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 @
d57a6ca5
...
...
@@ -20,6 +20,7 @@ instance ToJSON LanguageInfo where
,
"version"
.=
languageVersion
info
,
"file_extension"
.=
languageFileExtension
info
,
"codemirror_mode"
.=
languageCodeMirrorMode
info
,
"pygments_lexer"
.=
languagePygmentsLexer
info
]
-- Convert message bodies into JSON.
...
...
ipython-kernel/src/IHaskell/IPython/Types.hs
View file @
d57a6ca5
...
...
@@ -276,6 +276,7 @@ data LanguageInfo =
,
languageVersion
::
String
-- ^ GHC 7.6.3
,
languageFileExtension
::
String
-- ^ .hs
,
languageCodeMirrorMode
::
String
-- ^ 'ihaskell'. can be 'null'
,
languagePygmentsLexer
::
String
}
deriving
(
Show
,
Eq
)
...
...
main/Main.hs
View file @
d57a6ca5
...
...
@@ -274,6 +274,7 @@ replyTo interface KernelInfoRequest{} replyHeader state = do
,
languageVersion
=
VERSION_ghc
,
languageFileExtension
=
".hs"
,
languageCodeMirrorMode
=
"ihaskell"
,
languagePygmentsLexer
=
"Haskell"
}
,
status
=
Ok
})
...
...
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