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
d9a607fb
Commit
d9a607fb
authored
Jun 14, 2016
by
Andrew Gibiansky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not autohighlight JSON anymore, just format it.
parent
905450e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
Aeson.hs
ihaskell-display/ihaskell-aeson/IHaskell/Display/Aeson.hs
+2
-3
No files found.
ihaskell-display/ihaskell-aeson/IHaskell/Display/Aeson.hs
View file @
d9a607fb
{-# LANGUAGE TypeSynonymInstances
, QuasiQuotes
#-}
{-# LANGUAGE TypeSynonymInstances #-}
module
IHaskell.Display.Aeson
()
where
module
IHaskell.Display.Aeson
()
where
...
@@ -13,7 +13,6 @@ import Data.String.Here
...
@@ -13,7 +13,6 @@ import Data.String.Here
import
IHaskell.Display
import
IHaskell.Display
instance
IHaskellDisplay
Value
where
instance
IHaskellDisplay
Value
where
display
renderable
=
return
$
Display
[
plain
json
,
html
dom
]
display
renderable
=
return
$
Display
[
plain
json
]
where
where
json
=
T
.
unpack
$
E
.
decodeUtf8
$
LBS
.
toStrict
$
encodePretty
renderable
json
=
T
.
unpack
$
E
.
decodeUtf8
$
LBS
.
toStrict
$
encodePretty
renderable
dom
=
[
i
|
<div class="highlight-code" id="javascript">${json}</div>
|]
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