Skip to content

Commit

Permalink
nix(ldfi2): add stylish-haskell and cabal-fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
symbiont-stevan-andjelkovic committed Feb 11, 2021
1 parent 7961c02 commit 63fd7be
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 31 deletions.
4 changes: 4 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ pkgs.mkShell {
haskellPackages.ghc
haskellPackages.cabal-install
haskellPackages.tasty-discover
haskellPackages.cabal-fmt # For formatting .cabal files, example
# invocation: `cabal-fmt -i ldfi.cabal`.
haskellPackages.stylish-haskell # For import statement formatting, can be
# invoked from spacemacs via `, F`.
z3

git
Expand Down
72 changes: 41 additions & 31 deletions src/ldfi2/ldfi.cabal
Original file line number Diff line number Diff line change
@@ -1,58 +1,68 @@
cabal-version: >=1.10
name: ldfi
version: 0.0.0
synopsis: Lineage-driven fault injection
description: See README at <https://github.com/symbiont-io/detsys-testkit/tree/main/src/ldfi#readme>
bug-reports: https://github.com/symbiont-io/detsys-testkit/issues
license: AllRightsReserved
license-file: LICENSE
author: Stevan Andjelkovic
maintainer: [email protected]
copyright: Copyright (c) 2021 Symbiont Inc
category: Testing, Distributed Systems
build-type: Simple
extra-source-files: CHANGELOG.md
tested-with: GHC ==8.10.3
cabal-version: >=1.10
name: ldfi
version: 0.0.0
synopsis: Lineage-driven fault injection
description:
See README at <https://github.com/symbiont-io/detsys-testkit/tree/main/src/ldfi#readme>

bug-reports: https://github.com/symbiont-io/detsys-testkit/issues
license: AllRightsReserved
license-file: LICENSE
author: Stevan Andjelkovic
maintainer: [email protected]
copyright: Copyright (c) 2021 Symbiont Inc
category: Testing, Distributed Systems
build-type: Simple
extra-source-files: CHANGELOG.md
tested-with: GHC ==8.10.3

library
hs-source-dirs: src/
exposed-modules: Ldfi
hs-source-dirs: src/
exposed-modules:
Ldfi
Ldfi.Storage

-- GHC boot library dependencies:
-- (https://gitlab.haskell.org/ghc/ghc/-/blob/master/packages)
build-depends:
base >=4.14 && <4.15
base >=4.14 && <4.15
, containers
, githash
, mtl
, sqlite-simple

-- Other dependencies:
build-depends:
z3
default-language: Haskell2010
build-depends: z3
default-language: Haskell2010

test-suite test
type: exitcode-stdio-1.0
hs-source-dirs: test/
main-is: Main.hs
type: exitcode-stdio-1.0
hs-source-dirs: test/
main-is: Main.hs
build-depends:
base
, containers
, HUnit
, ldfi
, tasty
, tasty-hunit
build-depends:
z3

build-depends: z3
other-modules:
Driver
LdfiTest
ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-ignore-asserts
default-language: Haskell2010

ghc-options: -threaded -rtsopts -with-rtsopts=-N -fno-ignore-asserts
default-language: Haskell2010

executable ldfi
hs-source-dirs: app/
main-is: Main.hs
hs-source-dirs: app/
main-is: Main.hs
build-depends:
base
, ldfi
default-language: Haskell2010

default-language: Haskell2010

source-repository head
type: git
Expand Down

0 comments on commit 63fd7be

Please sign in to comment.