Skip to content

Commit

Permalink
Modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-volkov committed Oct 15, 2023
1 parent 31a88c6 commit 9de9404
Show file tree
Hide file tree
Showing 8 changed files with 139 additions and 175 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/format-and-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Compile, test and check the docs

on:
push:
branches:
- master
pull_request:

jobs:

format:
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/[email protected]
secrets: inherit

test:
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/[email protected]
secrets: inherit

51 changes: 0 additions & 51 deletions .github/workflows/integrate.yaml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release the lib to Hackage

on:
push:
branches:
- supermajor
- major
- minor
- patch

concurrency:
group: release
cancel-in-progress: false

jobs:

format:
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/[email protected]
secrets: inherit

test:
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/[email protected]
secrets: inherit

release:
needs:
- format
- test
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/[email protected]
secrets: inherit
with:
prefix-tag-with-v: false
52 changes: 0 additions & 52 deletions build.bash

This file was deleted.

7 changes: 7 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
packages: .
allow-newer:
, *:base
, *:bytestring
, *:deepseq
, *:primitive
, *:text
3 changes: 0 additions & 3 deletions stack.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions stack.yaml.lock

This file was deleted.

132 changes: 82 additions & 50 deletions text-builder.cabal
Original file line number Diff line number Diff line change
@@ -1,70 +1,102 @@
cabal-version: 3.0

name: text-builder
version: 0.6.7
category: Text
synopsis: An efficient strict text builder
homepage: https://github.com/nikita-volkov/text-builder
bug-reports: https://github.com/nikita-volkov/text-builder/issues
author: Nikita Volkov <[email protected]>
maintainer: Nikita Volkov <[email protected]>
copyright: (c) 2017, Nikita Volkov
license: MIT
license-file: LICENSE
name: text-builder
version: 0.6.7
category: Text
synopsis: An efficient strict text builder
homepage: https://github.com/nikita-volkov/text-builder
bug-reports: https://github.com/nikita-volkov/text-builder/issues
author: Nikita Volkov <[email protected]>
maintainer: Nikita Volkov <[email protected]>
copyright: (c) 2017, Nikita Volkov
license: MIT
license-file: LICENSE

source-repository head
type: git
type: git
location: git://github.com/nikita-volkov/text-builder.git

common language-settings
default-extensions: BangPatterns, ConstraintKinds, DataKinds, DefaultSignatures, DeriveDataTypeable, DeriveFoldable, DeriveFunctor, DeriveGeneric, DeriveTraversable, EmptyDataDecls, FlexibleContexts, FlexibleInstances, FunctionalDependencies, GADTs, GeneralizedNewtypeDeriving, LambdaCase, LiberalTypeSynonyms, MagicHash, MultiParamTypeClasses, MultiWayIf, NoImplicitPrelude, NoMonomorphismRestriction, OverloadedStrings, PatternGuards, ParallelListComp, QuasiQuotes, RankNTypes, RecordWildCards, ScopedTypeVariables, StandaloneDeriving, TemplateHaskell, TupleSections, TypeFamilies, TypeOperators, UnboxedTuples
default-language: Haskell2010
common base
default-language: Haskell2010
default-extensions:
NoImplicitPrelude
NoMonomorphismRestriction
BangPatterns
ConstraintKinds
DataKinds
DefaultSignatures
DeriveDataTypeable
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveTraversable
EmptyDataDecls
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
GeneralizedNewtypeDeriving
LambdaCase
LiberalTypeSynonyms
MagicHash
MultiParamTypeClasses
MultiWayIf
OverloadedStrings
ParallelListComp
PatternGuards
QuasiQuotes
RankNTypes
RecordWildCards
ScopedTypeVariables
StandaloneDeriving
TemplateHaskell
TupleSections
TypeFamilies
TypeOperators
UnboxedTuples

library
import: language-settings
hs-source-dirs: library
exposed-modules:
Text.Builder
other-modules:
Text.Builder.Prelude
import: base
hs-source-dirs: library
exposed-modules: Text.Builder
other-modules: Text.Builder.Prelude
build-depends:
base >=4.11 && <5,
bytestring >=0.10 && <0.12,
text >=1.2 && <3,
text-builder-dev >=0.3.1 && <0.4,
, base >=4.11 && <5
, bytestring >=0.10 && <0.12
, text >=1.2 && <3
, text-builder-dev >=0.3.3.3 && <0.4

test-suite test
import: language-settings
type: exitcode-stdio-1.0
import: base
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
main-is: Main.hs
build-depends:
QuickCheck >=2.13 && <3,
quickcheck-instances >=0.3.22 && <0.4,
rerebase <2,
tasty >=1.2.3 && <2,
tasty-hunit >=0.10.0.2 && <0.11,
tasty-quickcheck >=0.10.1 && <0.11,
text-builder,
, QuickCheck >=2.13 && <3
, quickcheck-instances >=0.3.22 && <0.4
, rerebase <2
, tasty >=1.2.3 && <2
, tasty-hunit >=0.10.0.2 && <0.11
, tasty-quickcheck >=0.10.1 && <0.11
, text-builder

benchmark benchmark-text
import: language-settings
type: exitcode-stdio-1.0
import: base
type: exitcode-stdio-1.0
hs-source-dirs: benchmark-text
ghc-options: -O2 -threaded "-with-rtsopts=-N" -funbox-strict-fields
main-is: Main.hs
ghc-options: -O2 -threaded -with-rtsopts=-N -funbox-strict-fields
main-is: Main.hs
build-depends:
criterion >=1.5.6.1 && <2,
rerebase ==1.*,
text-builder,
, criterion >=1.5.6.1 && <2
, rerebase >=1 && <2
, text-builder

benchmark benchmark-char
import: language-settings
type: exitcode-stdio-1.0
import: base
type: exitcode-stdio-1.0
hs-source-dirs: benchmark-char
ghc-options: -O2 -threaded "-with-rtsopts=-N" -funbox-strict-fields
main-is: Main.hs
ghc-options: -O2 -threaded -with-rtsopts=-N -funbox-strict-fields
main-is: Main.hs
build-depends:
criterion >=1.5.6.1 && <2,
rerebase ==1.*,
text-builder,
, criterion >=1.5.6.1 && <2
, rerebase >=1 && <2
, text-builder

0 comments on commit 9de9404

Please sign in to comment.