Commit 85fddcab authored by Alexandre Delanoë's avatar Alexandre Delanoë

[BIN] cbor2json without input/output files

parent 8484ca0f
Pipeline #2154 failed with stage
in 10 minutes and 23 seconds
......@@ -7,8 +7,4 @@ import qualified Data.ByteString.Lazy as L
import Gargantext.Core.NodeStory (NodeListStory)
main :: IO ()
main = do
[inFile,outFile] <- getArgs
inData <- L.readFile inFile
let outData = (encode . (id :: NodeListStory -> NodeListStory) . deserialise) inData
L.writeFile outData
main = L.interact (encode . (id :: NodeListStory -> NodeListStory) . deserialise)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment