Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
195
Issues
195
List
Board
Labels
Milestones
Merge Requests
12
Merge Requests
12
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
haskell-gargantext
Commits
474c1abe
Commit
474c1abe
authored
Aug 31, 2020
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add gargantext-cbor2json: STDIN is CBOR, STDOUT is JSON
parent
d9e09553
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
Main.hs
bin/gargantext-cbor2json/Main.hs
+8
-0
package.yaml
package.yaml
+17
-0
No files found.
bin/gargantext-cbor2json/Main.hs
0 → 100644
View file @
474c1abe
import
Prelude
(
IO
,
id
,
(
.
))
import
Codec.Serialise
(
deserialise
)
import
Data.Aeson
(
encode
)
import
qualified
Data.ByteString.Lazy
as
L
import
Gargantext.API.Ngrams
(
NgramsRepo
)
main
::
IO
()
main
=
L
.
interact
(
encode
.
(
id
::
NgramsRepo
->
NgramsRepo
)
.
deserialise
)
package.yaml
View file @
474c1abe
...
...
@@ -41,6 +41,7 @@ library:
-
Gargantext.API.HashedResponse
-
Gargantext.API.Node
-
Gargantext.API.Node.File
-
Gargantext.API.Ngrams
-
Gargantext.API.Admin.Settings
-
Gargantext.API.Prelude
-
Gargantext.Core
...
...
@@ -377,6 +378,22 @@ executables:
-
gargantext
-
base
gargantext-cbor2json
:
main
:
Main.hs
source-dirs
:
bin/gargantext-cbor2json
ghc-options
:
-
-threaded
-
-rtsopts
-
-with-rtsopts=-N
-
-O2
-
-Wmissing-signatures
dependencies
:
-
gargantext
-
base
-
bytestring
-
aeson
-
serialise
tests
:
garg-test
:
...
...
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