Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/cabal-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: cabal-check

on:
pull_request:
push:
branches: [ develop, master ]

jobs:
cabal-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# The runner image ships cabal through ghcup.
- name: Check the package for Hackage
run: cabal check
15 changes: 9 additions & 6 deletions patch.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ category: FRP
build-type: Simple
extra-source-files:
README.md

extra-doc-files:
ChangeLog.md

source-repository head
Expand Down Expand Up @@ -93,9 +95,6 @@ common common
-O2 -fexpose-all-unfoldings -fspecialise -fspecialise-aggressively
-flate-specialise -fcross-module-specialise

if !arch(wasm32)
ghc-options: -threaded -rtsopts -with-rtsopts=-N

ghc-options:
-Wall -fno-show-valid-hole-fits -Wno-type-defaults
-Wno-partial-type-signatures -Wincomplete-record-updates
Expand All @@ -108,6 +107,10 @@ common common
ghc-options:
-Wmissing-deriving-strategies -Werror=missing-deriving-strategies

common rts
if !arch(wasm32)
ghc-options: -threaded -rtsopts -with-rtsopts=-N

library
import: common
exposed-modules:
Expand All @@ -127,7 +130,7 @@ library
hs-source-dirs: src
default-language: Haskell2010
build-depends:
base >=4.14 && <=4.23,
base >=4.14 && <4.23,
constraints-extras >=0.3 && <0.5,
commutative-semigroups >=0.0 && <0.3,
containers >=0.6 && <0.9,
Expand All @@ -149,7 +152,7 @@ library
monoidal-containers ==0.4.0.0

test-suite tests
import: common
import: common, rts
type: exitcode-stdio-1.0
main-is: tests.hs
hs-source-dirs: test
Expand All @@ -165,7 +168,7 @@ test-suite tests
buildable: False

test-suite hlint
import: common
import: common, rts
type: exitcode-stdio-1.0
main-is: hlint.hs
hs-source-dirs: test
Expand Down
Loading