Skip to content

Commit

Permalink
Use cabal-gild
Browse files Browse the repository at this point in the history
  • Loading branch information
amesgen committed Jul 13, 2024
1 parent b257a07 commit 8e758d2
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 23 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@ on:
- opened
- synchronize
jobs:
ormolu:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/run-ormolu@v16
- uses: tfausak/cabal-gild-setup-action@v2
with:
version: 1.5.0.1
- name: Run cabal-gild
run: |
find . -name '*.cabal' -type f -exec cabal-gild --io={} \;
ci:
name: Run tests
runs-on: ubuntu-latest
Expand Down
69 changes: 47 additions & 22 deletions yasi.cabal
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
cabal-version: 2.4
name: yasi
version: 0.2.0.1

synopsis: Yet another string interpolator
description:
Yet another string interpolator,
with a different set of tradeoffs
category: String, Text, QuasiQuotes

category: String, Text, QuasiQuotes
homepage: https://github.com/amesgen/yasi
bug-reports: https://github.com/amesgen/yasi/issues
license: CC0-1.0
Expand All @@ -23,8 +22,27 @@ source-repository head

common commons
default-language: Haskell2010
ghc-options: -Wall -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -fno-warn-name-shadowing -Wunused-packages
default-extensions: BlockArguments DeriveGeneric FlexibleContexts FlexibleInstances LambdaCase MultiParamTypeClasses OverloadedStrings QuasiQuotes RecordWildCards ScopedTypeVariables TemplateHaskell TupleSections
ghc-options:
-Wall
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wredundant-constraints
-fno-warn-name-shadowing
-Wunused-packages

default-extensions:
BlockArguments
DeriveGeneric
FlexibleContexts
FlexibleInstances
LambdaCase
MultiParamTypeClasses
OverloadedStrings
QuasiQuotes
RecordWildCards
ScopedTypeVariables
TemplateHaskell
TupleSections

library
import: commons
Expand All @@ -34,31 +52,38 @@ library
Yasi
Yasi.Internal
Yasi.Util

build-depends:
base >= 4.14 && < 5
, template-haskell >= 2.16 && < 2.23
, text >= 1.2 && < 2.2
, text-display ^>= 0.0.2
, ghc-hs-meta ^>= 0.1
base >=4.14 && <5,
ghc-hs-meta ^>=0.1,
template-haskell >=2.16 && <2.23,
text >=1.2 && <2.2,
text-display ^>=0.0.2,

test-suite tasty
import: commons
type: exitcode-stdio-1.0
main-is: Driver.hs
hs-source-dirs: test
ghc-options: -threaded -rtsopts -with-rtsopts=-N
ghc-options:
-threaded
-rtsopts
-with-rtsopts=-N

build-tool-depends:
tasty-discover:tasty-discover ^>= 4.2
tasty-discover:tasty-discover ^>=4.2

build-depends:
base
, yasi
, text
, text-display
, tasty >= 1.3 && < 1.6
, tasty-hunit ^>= 0.10
, tasty-hedgehog >= 1.0 && < 1.5
, hedgehog >= 1.0 && < 1.5
base,
hedgehog >=1.0 && <1.5,
tasty >=1.3 && <1.6,
tasty-hedgehog >=1.0 && <1.5,
tasty-hunit ^>=0.10,
text,
text-display,
yasi,

other-modules:
Segments
Interpolations
Util
Interpolations
Segments
Util

0 comments on commit 8e758d2

Please sign in to comment.