mirror of
https://github.com/juspay/jrec.git
synced 2024-09-11 10:25:32 +03:00
Make bin/test reload automatically
This commit is contained in:
parent
d976477eb2
commit
9c317ad073
@ -26,7 +26,9 @@ IDE support is available inside `nix-shell`. For example, if you use VS Code, yo
|
|||||||
nix-shell --run "code ."
|
nix-shell --run "code ."
|
||||||
```
|
```
|
||||||
|
|
||||||
Run tests inside ghcid using `bin/test`.
|
### Tests
|
||||||
|
|
||||||
|
Run `bin/test` for fast-reloading tests. When library sources change, the test script will reload instantly and re-run the tests.
|
||||||
|
|
||||||
## TODOs
|
## TODOs
|
||||||
|
|
||||||
|
92
jrec.cabal
92
jrec.cabal
@ -1,11 +1,11 @@
|
|||||||
cabal-version: >=1.10
|
cabal-version: 2.4
|
||||||
name: jrec
|
name: jrec
|
||||||
version: 0.1.0.0
|
version: 0.1.0.0
|
||||||
synopsis: anonymous records for busy people
|
synopsis: anonymous records for busy people
|
||||||
|
|
||||||
-- description:
|
-- description:
|
||||||
-- bug-reports:
|
bug-reports: https://github.com/juspay/jrec/issues
|
||||||
license: BSD3
|
license: BSD-3-Clause
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Artyom Kazak
|
author: Artyom Kazak
|
||||||
maintainer: artyom.kazak@juspay.in
|
maintainer: artyom.kazak@juspay.in
|
||||||
@ -17,15 +17,23 @@ extra-source-files:
|
|||||||
CHANGELOG.md
|
CHANGELOG.md
|
||||||
README.md
|
README.md
|
||||||
|
|
||||||
library
|
-- A common stanza to share with tests, so that ghcid (bin/test) will reload
|
||||||
hs-source-dirs: src
|
-- instantly when the library sources change (without us having to restart it).
|
||||||
exposed-modules:
|
common library-common
|
||||||
JRec
|
default-language: Haskell2010
|
||||||
JRec.Internal
|
build-depends:
|
||||||
other-modules:
|
aeson
|
||||||
JRec.Tuple
|
, base >=4.13 && <4.15
|
||||||
JRec.Field
|
, constraints
|
||||||
|
, deepseq
|
||||||
|
, generic-data
|
||||||
|
, generic-lens
|
||||||
|
, generic-optics
|
||||||
|
, ghc-prim
|
||||||
|
, optics-core
|
||||||
|
, lens
|
||||||
|
, mtl
|
||||||
|
, text
|
||||||
default-extensions:
|
default-extensions:
|
||||||
BlockArguments
|
BlockArguments
|
||||||
DataKinds
|
DataKinds
|
||||||
@ -55,59 +63,23 @@ library
|
|||||||
ConstraintKinds
|
ConstraintKinds
|
||||||
PackageImports
|
PackageImports
|
||||||
|
|
||||||
build-depends:
|
library
|
||||||
aeson
|
import: library-common
|
||||||
, base >=4.13 && <4.15
|
hs-source-dirs: src
|
||||||
, constraints
|
exposed-modules:
|
||||||
, deepseq
|
JRec
|
||||||
, generic-data
|
JRec.Internal
|
||||||
, generic-lens
|
other-modules:
|
||||||
, generic-optics
|
JRec.Tuple
|
||||||
, ghc-prim
|
JRec.Field
|
||||||
, optics-core
|
|
||||||
, lens
|
|
||||||
, mtl
|
|
||||||
, text
|
|
||||||
|
|
||||||
default-language: Haskell2010
|
|
||||||
|
|
||||||
test-suite jrec-test
|
test-suite jrec-test
|
||||||
|
import: library-common
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
hs-source-dirs: test
|
hs-source-dirs: test, src
|
||||||
main-is: Spec.hs
|
main-is: Spec.hs
|
||||||
build-depends:
|
build-depends:
|
||||||
base,
|
base,
|
||||||
hspec,
|
hspec,
|
||||||
QuickCheck,
|
QuickCheck,
|
||||||
lens,
|
lens
|
||||||
jrec
|
|
||||||
default-language: Haskell2010
|
|
||||||
default-extensions:
|
|
||||||
BlockArguments
|
|
||||||
DataKinds
|
|
||||||
DeriveGeneric
|
|
||||||
DerivingStrategies
|
|
||||||
DuplicateRecordFields
|
|
||||||
FlexibleContexts
|
|
||||||
FlexibleInstances
|
|
||||||
FunctionalDependencies
|
|
||||||
GADTs
|
|
||||||
InstanceSigs
|
|
||||||
KindSignatures
|
|
||||||
LambdaCase
|
|
||||||
MultiParamTypeClasses
|
|
||||||
OverloadedLabels
|
|
||||||
OverloadedStrings
|
|
||||||
PatternSynonyms
|
|
||||||
RankNTypes
|
|
||||||
ScopedTypeVariables
|
|
||||||
StandaloneDeriving
|
|
||||||
TupleSections
|
|
||||||
TypeFamilies
|
|
||||||
TypeOperators
|
|
||||||
UndecidableInstances
|
|
||||||
UnicodeSyntax
|
|
||||||
ViewPatterns
|
|
||||||
ConstraintKinds
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user