2 Module : Gargantext.Text.Convert
3 Description : All parsers of Gargantext in one file.
4 Copyright : (c) CNRS, 2017
5 License : AGPL + CECILL v3
6 Maintainer : team@gargantext.org
7 Stability : experimental
14 {-# LANGUAGE NoImplicitPrelude #-}
15 {-# LANGUAGE PackageImports #-}
16 {-# LANGUAGE OverloadedStrings #-}
18 module Gargantext.Text.Convert (risPress2csv)
21 import System.FilePath (FilePath()) -- , takeExtension)
22 import Gargantext.Prelude
23 import Gargantext.Text.Parsers.CSV (writeDocs2Csv)
24 import Gargantext.Text.Parsers (parseDocs, FileFormat(..))
27 risPress2csv :: FilePath -> IO ()
28 risPress2csv f = parseDocs RisPresse (f <> ".ris")
29 >>= \hs -> writeDocs2Csv (f <> ".csv") hs