move examples to internal package

This commit is contained in:
Marco Perone 2023-02-13 11:04:46 +01:00 committed by Marco Perone
parent 432cf8ad6c
commit 7f51d0b7af
15 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,6 @@
[
"doctest"
"examples"
"hobbit-game"
"src"
"spec"

View File

@ -105,12 +105,21 @@ library:
- condition: false
other-modules: Paths_crem
internal-libraries:
crem-examples:
source-dirs: examples
dependencies:
- crem
- profunctors
- singletons-base
tests:
crem-spec:
main: Spec.hs
source-dirs: spec
dependencies:
- crem
- crem-examples
- hspec
- profunctors
- singletons-base
@ -137,6 +146,7 @@ executables:
main: Main.hs
dependencies:
- crem
- crem-examples
# Disable adding Paths_crem to other-modules, because it does not conform to our style guide.
# https://github.com/sol/hpack#handling-of-paths_-modules
when: