summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2018-08-22 17:30:13 +0900
committerLi Haoyi <haoyi.sg@gmail.com>2018-08-22 16:30:13 +0800
commit807e470fe3cb359993c8e37f79da2530138748d4 (patch)
treebdb40d2c8918092cbc53921d82901590b48a48a3
parentb29c13d9010f9405de04c471fc4c8ba816606fbc (diff)
downloadmill-807e470fe3cb359993c8e37f79da2530138748d4.tar.gz
mill-807e470fe3cb359993c8e37f79da2530138748d4.tar.bz2
mill-807e470fe3cb359993c8e37f79da2530138748d4.zip
Make the REPL evaluator accessible from the REPL itself (#413)
This makes it easier to hack on Mill using Mill itself, the evaluator is available using `replApplyHandler.evaluator`
-rw-r--r--main/src/mill/main/ReplApplyHandler.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/mill/main/ReplApplyHandler.scala b/main/src/mill/main/ReplApplyHandler.scala
index 95949fa8..9070e614 100644
--- a/main/src/mill/main/ReplApplyHandler.scala
+++ b/main/src/mill/main/ReplApplyHandler.scala
@@ -91,7 +91,7 @@ object ReplApplyHandler{
}
class ReplApplyHandler(pprinter0: pprint.PPrinter,
- evaluator: Evaluator[_]) extends ApplyHandler[Task] {
+ val evaluator: Evaluator[_]) extends ApplyHandler[Task] {
// Evaluate classLoaderSig only once in the REPL to avoid busting caches
// as the user enters more REPL commands and changes the classpath
val classLoaderSig = Evaluator.classLoaderSig