created Data.CSV.Slurp module

This commit is contained in:
Jonathan Lamothe 2022-04-18 16:29:28 -04:00
parent 8fa0afd0e2
commit 0e09e0fcbf
4 changed files with 63 additions and 1 deletions

View File

@ -21,6 +21,7 @@ extra-source-files:
library library
exposed-modules: exposed-modules:
Data.CSV.Slurp
Lib Lib
other-modules: other-modules:
Paths_csv_slurp Paths_csv_slurp
@ -36,6 +37,7 @@ test-suite csv-slurp-test
type: exitcode-stdio-1.0 type: exitcode-stdio-1.0
main-is: Spec.hs main-is: Spec.hs
other-modules: other-modules:
Data.CSV.SlurpSpec
Paths_csv_slurp Paths_csv_slurp
hs-source-dirs: hs-source-dirs:
test test

28
src/Data/CSV/Slurp.hs Normal file
View File

@ -0,0 +1,28 @@
{-|
Module : Data.CSV.Slurp
Description : works with CSV files
Copyright : (C) Jonathan Lamothe
License : GPL-3.0-or-later
Maintainer : jonathan@jlamothe.net
Stability : experimental
Portability : POSIX
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at
your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-}
module Data.CSV.Slurp where
--jl

View File

@ -0,0 +1,28 @@
{-
csv-slurp
Copyright (C) Jonathan Lamothe <jonathan@jlamothe.net>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at
your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-}
module Data.CSV.SlurpSpec (spec) where
import Test.Hspec (Spec, describe)
spec :: Spec
spec = describe "Data.CSV.Slurp" $ return ()
--jl

View File

@ -18,9 +18,13 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
-} -}
module Main where
import Test.Hspec (hspec) import Test.Hspec (hspec)
import qualified Data.CSV.SlurpSpec as Slurp
main :: IO () main :: IO ()
main = hspec $ return () main = hspec $ Slurp.spec
--jl --jl