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
cb37ce4c
Commit
cb37ce4c
authored
Oct 26, 2015
by
Tom McLaughlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove DisplayData show
parent
3e9677cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
Types.hs
ipython-kernel/src/IHaskell/IPython/Types.hs
+2
-6
No files found.
ipython-kernel/src/IHaskell/IPython/Types.hs
View file @
cb37ce4c
...
@@ -506,12 +506,8 @@ data DisplayData = DisplayData MimeType Text
...
@@ -506,12 +506,8 @@ data DisplayData = DisplayData MimeType Text
-- We can't print the actual data, otherwise this will be printed every time it gets computed
-- We can't print the actual data, otherwise this will be printed every time it gets computed
-- because of the way the evaluator is structured. See how `displayExpr` is computed.
-- because of the way the evaluator is structured. See how `displayExpr` is computed.
instance
Show
DisplayData
where
instance
Show
DisplayData
where
show
(
DisplayData
PlainText
t
)
=
"DisplayData PlainText ("
++
show
t
++
")"
show
_
=
"DisplayData"
show
(
DisplayData
(
MimePng
w
h
)
t
)
=
"DisplayData (Png "
++
show
(
w
,
h
)
++
")"
show
(
DisplayData
MimeSvg
t
)
=
"DisplayData (Svg)"
show
(
DisplayData
(
MimeJpg
w
h
)
t
)
=
"DisplayData (Jpg "
++
show
(
w
,
h
)
++
")"
show
(
DisplayData
MimeHtml
t
)
=
"DisplayData (Html "
++
show
t
++
")"
show
(
DisplayData
typ
t
)
=
"DisplayData (unknown: "
++
show
typ
++
")"
-- Allow DisplayData serialization
-- Allow DisplayData serialization
instance
Serialize
Text
where
instance
Serialize
Text
where
put
str
=
put
(
Text
.
encodeUtf8
str
)
put
str
=
put
(
Text
.
encodeUtf8
str
)
...
...
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