Skip to content

Commit

Permalink
example for cabal bug 6835
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Díaz committed May 27, 2021
1 parent 58f949c commit d956976
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions moo-nad.cabal → moo-nad-x.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cabal-version: 3.0
name: moo-nad
name: moo-nad-x
version: 0.1.0.2

synopsis: Invocation helpers for the ReaderT-record-of-functions style.
Expand Down Expand Up @@ -48,17 +48,8 @@ common common
dep-t ^>= 0.4.4
default-language: Haskell2010

-- Indefinite library which provides an invocation helper over some abstract
-- readerlike monad which carries a record-of-functions.
library
import: common
signatures: Moo
exposed-modules: Moo.Prelude
build-depends:
hs-source-dirs: lib

-- Example indefinite program logic.
library example-logic-that-logs
library example-logic-that-logs-x
import: common
-- The Moo signature is enriched locally through signature merging.
signatures: Moo
Expand All @@ -68,7 +59,7 @@ library example-logic-that-logs
hs-source-dirs: lib-example-logic-that-logs

-- Example library that implements the Moo signature.
library example-impl
library example-impl-x
import: common
exposed-modules: Moo
-- Notice that we don't depend explicitly on the Moo signature.
Expand All @@ -78,13 +69,13 @@ library example-impl

-- The tests put together the moo-nad library, the example indefinite package
-- with the program logic, and the sublibrary carrying the implementation.
test-suite tests
test-suite tests-x
import: common
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: tests.hs
build-depends:
tasty ^>= 1.3.1,
tasty-hunit ^>= 0.10.0.2,
example-logic-that-logs,
example-impl
example-logic-that-logs-x,
example-impl-x

0 comments on commit d956976

Please sign in to comment.