haskell-gha-1.0: haskell-gha.cabal
cabal-version: 3.8
build-type: Simple
name: haskell-gha
version: 1.0
license: BSD-3-Clause
license-file: LICENSE
category: Development
maintainer: andrzej@rybczak.net
author: Andrzej Rybczak
synopsis: Generate a GitHub Actions workflow for a Haskell cabal project.
description:
Generate a GitHub Actions workflow that builds and tests a Haskell cabal
project on each GHC version from @tested-with@.
extra-doc-files:
CHANGELOG.md
README.md
-- The fixtures of the golden tests.
extra-source-files:
tests/golden/**/*.cabal
tests/golden/**/*.hs
tests/golden/**/*.project
tests/golden/**/*.yaml
tests/golden/**/args
tested-with: GHC ^>= { 9.6, 9.8, 9.10, 9.12, 9.14, 10.0 }
bug-reports: https://github.com/arybczak/haskell-gha/issues
source-repository head
type: git
location: https://github.com/arybczak/haskell-gha.git
common language
ghc-options: -Wall
-Wunused-packages
-Werror=ambiguous-fields
-Werror=missing-deriving-strategies
-Werror=prepositive-qualified-module
default-language: GHC2021
default-extensions: DataKinds
DeepSubsumption
DerivingStrategies
DerivingVia
DuplicateRecordFields
LambdaCase
NoFieldSelectors
NoStarIsType
OverloadedRecordDot
OverloadedStrings
RecordWildCards
RoleAnnotations
StrictData
TypeFamilies
UndecidableInstances
library internal
import: language
visibility: private
build-depends: base >= 4.18 && < 5
, bytestring >= 0.11
, Cabal >= 3.14 && < 3.20
, Cabal-syntax >= 3.14 && < 3.20
, directory >= 1.3
, filepath >= 1.4
, yamlet >= 1.0 && < 1.1
, optparse-applicative >= 0.17 && < 0.20
, parsec >= 3.1
, text >= 2.0
, transformers >= 0.5.6
hs-source-dirs: src
exposed-modules: HaskellGha.Check
HaskellGha.Command
HaskellGha.Command.Header
HaskellGha.Command.Options
HaskellGha.Config
HaskellGha.Path
HaskellGha.Project
HaskellGha.Project.Compat
HaskellGha.Project.Ghc
HaskellGha.Workflow
HaskellGha.Workflow.Script
HaskellGha.Workflow.Validate
HaskellGha.Yaml
executable haskell-gha
import: language
build-depends: base
, haskell-gha:internal
, optparse-applicative
hs-source-dirs: app
main-is: Main.hs
autogen-modules: Paths_haskell_gha
other-modules: Paths_haskell_gha
test-suite test
import: language
build-depends: base
, bytestring
, Cabal-syntax
, directory
, filepath
, haskell-gha:internal
, optparse-applicative
, process
, tasty >= 1.4 && < 1.6
, tasty-hunit >= 0.10 && < 0.11
, temporary >= 1.3 && < 1.4
, text
, time >= 1.9
, yamlet
hs-source-dirs: tests
ghc-options: -threaded -with-rtsopts=-N
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules: HaskellGha.Test.Config
HaskellGha.Test.Golden
HaskellGha.Test.Helpers
HaskellGha.Test.Project
HaskellGha.Test.Workflow
HaskellGha.Test.Yaml