Move transcripts executable from parser-typechecker to cli

It depends on the cli executable.
This commit is contained in:
Chris Penner 2021-10-12 12:56:21 -06:00
parent 5de74416f9
commit 5235c809bf
6 changed files with 58 additions and 58 deletions

View File

@ -49,6 +49,24 @@ executables:
- condition: '!os(windows)'
dependencies: unix
transcripts:
source-dirs: transcripts
main: Transcripts.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-N -v0
dependencies:
- base
- directory
- easytest
- filepath
- shellmet
- process
- text
- unison-core1
- unison-parser-typechecker
- unison-prelude
build-tools:
- unison-cli:unison
when:
- condition: flag(optimized)

View File

@ -21,6 +21,43 @@ flag optimized
manual: True
default: False
executable transcripts
main-is: Transcripts.hs
other-modules:
Paths_unison_cli
hs-source-dirs:
transcripts
default-extensions:
ApplicativeDo
BlockArguments
DeriveFunctor
DerivingStrategies
DoAndIfThenElse
FlexibleContexts
FlexibleInstances
LambdaCase
MultiParamTypeClasses
ScopedTypeVariables
TupleSections
TypeApplications
ghc-options: -threaded -rtsopts -with-rtsopts=-N -v0
build-tools:
unison
build-depends:
base
, directory
, easytest
, filepath
, process
, shellmet
, text
, unison-core1
, unison-parser-typechecker
, unison-prelude
if flag(optimized)
ghc-options: -O2 -funbox-strict-fields
default-language: Haskell2010
executable unison
main-is: Main.hs
other-modules:

View File

@ -42,10 +42,10 @@ cradle:
- path: "parser-typechecker/tests"
component: "unison-parser-typechecker:exe:tests"
- path: "parser-typechecker/transcripts"
component: "unison-parser-typechecker:exe:transcripts"
- path: "cli/transcripts"
component: "unison-cli:exe:transcripts"
- path: "cli/app"
- path: "cli/unison"
component: "cli:exe:unison"
- path: "parser-typechecker/benchmarks/runtime"

View File

@ -169,26 +169,6 @@ executables:
- unison-util
- unison-util-relation
transcripts:
source-dirs: transcripts
main: Transcripts.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-N -v0
dependencies:
- base
- directory
- easytest
- filepath
- shellmet
- process
- text
- unison-core1
- unison-parser-typechecker
- unison-prelude
# TODO: move transcripts to cli package, or preferably avoid shelling-out and run transcripts by calling the implementation directly?
# build-tools:
# - unison-cli:unison
benchmarks:
runtime:
source-dirs: benchmarks/runtime

View File

@ -426,41 +426,6 @@ executable tests
ghc-options: -funbox-strict-fields -O2
default-language: Haskell2010
executable transcripts
main-is: Transcripts.hs
other-modules:
Paths_unison_parser_typechecker
hs-source-dirs:
transcripts
default-extensions:
ApplicativeDo
BlockArguments
DeriveFunctor
DerivingStrategies
DoAndIfThenElse
FlexibleContexts
FlexibleInstances
LambdaCase
MultiParamTypeClasses
ScopedTypeVariables
TupleSections
TypeApplications
ghc-options: -Wall -O0 -fno-warn-name-shadowing -fno-warn-missing-pattern-synonym-signatures -threaded -rtsopts -with-rtsopts=-N -v0
build-depends:
base
, directory
, easytest
, filepath
, process
, shellmet
, text
, unison-core1
, unison-parser-typechecker
, unison-prelude
if flag(optimized)
ghc-options: -funbox-strict-fields -O2
default-language: Haskell2010
benchmark runtime
type: exitcode-stdio-1.0
main-is: Main.hs