diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-01-21 17:36:58 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-01-21 17:36:58 -0800 |
commit | 3e80ade3249bc83b564d7b5bd31853c8affd555d (patch) | |
tree | aef1f790d16da2cfac9afd07bca4f3e53b364811 /core/src/mill/main/ReplApplyHandler.scala | |
parent | 68f158b63c33aa7312ba4b715f6b18527453b761 (diff) | |
download | mill-3e80ade3249bc83b564d7b5bd31853c8affd555d.tar.gz mill-3e80ade3249bc83b564d7b5bd31853c8affd555d.tar.bz2 mill-3e80ade3249bc83b564d7b5bd31853c8affd555d.zip |
Give `mill.Module` a useful default `toString`, and make the REPLs pprint work for non-top-level modules
Diffstat (limited to 'core/src/mill/main/ReplApplyHandler.scala')
-rw-r--r-- | core/src/mill/main/ReplApplyHandler.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/mill/main/ReplApplyHandler.scala b/core/src/mill/main/ReplApplyHandler.scala index 97efb6e5..cc4d3c64 100644 --- a/core/src/mill/main/ReplApplyHandler.scala +++ b/core/src/mill/main/ReplApplyHandler.scala @@ -75,7 +75,7 @@ class ReplApplyHandler(pprinter0: pprint.PPrinter, "\n (" + x._1.map(pprint.PPrinter.BlackWhite.apply(_)).mkString(", ") + ")" ) ) - case m: mill.Module if evaluator.rootModule.millModuleDirectChildren.contains(m) => + case m: mill.Module if evaluator.rootModule.millInternal.modules.contains(m) => pprint.Tree.Lazy( ctx => Iterator(m.millInternal.millModuleEnclosing, ":", m.millInternal.millModuleLine.toString) ++ (if (m.millInternal.reflect[mill.Module].isEmpty) Nil |