Add module with an info file parser

This commit is contained in:
2023-10-03 18:53:41 +02:00
parent f4b7883cf2
commit d5df676df7
7 changed files with 325 additions and 87 deletions

View File

@@ -18,9 +18,13 @@ extra-source-files: CHANGELOG.md
common dependencies
build-depends:
base ^>= 4.16.4.0,
bytestring ^>= 0.11.0,
cryptonite >= 0.30,
filepath ^>= 1.4.2,
megaparsec ^>= 9.5,
modern-uri ^>= 0.3.6,
memory ^>= 0.18,
parser-combinators ^>= 1.3,
text ^>= 2.0,
tomland ^>= 1.3.3,
transformers ^>= 0.5.6
@@ -28,18 +32,21 @@ common dependencies
default-extensions:
DataKinds
DuplicateRecordFields
ExplicitForAll
LambdaCase
NamedFieldPuns
OverloadedStrings
RecordWildCards
QuasiQuotes
TemplateHaskell
TupleSections
TypeApplications
library
import: dependencies
exposed-modules:
SlackBuilder.Config
SlackBuilder.Info
SlackBuilder.Package
SlackBuilder.Trans
hs-source-dirs: lib
@@ -58,7 +65,6 @@ executable slackbuilder
SlackBuilder.Updater
build-depends:
aeson ^>= 2.2.0,
bytestring ^>= 0.11.0,
conduit ^>= 1.3.5,
http-client ^>= 0.7,
optparse-applicative ^>= 0.18.1,
@@ -77,10 +83,12 @@ test-suite slackbuilder-test
main-is: Spec.hs
other-modules:
SlackBuilder.InfoSpec
SlackBuilder.PackageSpec
hs-source-dirs: tests
build-depends:
hspec >= 2.10.9 && < 2.12,
hspec-megaparsec ^>= 2.2,
slackbuilder
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall