mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-11 10:35:57 +03:00
Move transcripts executable from parser-typechecker to cli
It depends on the cli executable.
This commit is contained in:
parent
5de74416f9
commit
5235c809bf
@ -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)
|
||||
|
@ -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:
|
||||
|
6
hie.yaml
6
hie.yaml
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user