diff options
author | Paul Phillips <paulp@improving.org> | 2011-08-01 22:45:12 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-08-01 22:45:12 +0000 |
commit | 60ee9924b7449ec64cffcecd6accd1a856c4fa3a (patch) | |
tree | cbf4fb3bdcae173197389b2a88d45ae64b45e1fe /src/scalap/scala | |
parent | 257b6c91a52dc805dfb413b323a70e52f6499c2e (diff) | |
download | scala-60ee9924b7449ec64cffcecd6accd1a856c4fa3a.tar.gz scala-60ee9924b7449ec64cffcecd6accd1a856c4fa3a.tar.bz2 scala-60ee9924b7449ec64cffcecd6accd1a856c4fa3a.zip |
Tired of ugly-printing in the repl, I sort of f...
Tired of ugly-printing in the repl, I sort of finished some old code for
pretty printing token streams. It is at least a lot prettier than it
once was, and I threw in some power mode helpers. Now you can do this.
% scala -Dscala.repl.power
Welcome to Scala version 2.10.0.r25427-b20110801144412 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_26).
// .u turns a string into an URL like .r does into
a regex, and .pp pretty prints the url scala>
"https://raw.github.com/scalaz/scalaz/master/example/src/main/scala/scal
az/example/ExampleIteratee.scala".u.pp package scalaz.example
object ExampleIteratee {
def main (args: Array[String]) = run
import scalaz._
import Scalaz._
import IterV._
[etc it's all there in real life]
}
No review.
Diffstat (limited to 'src/scalap/scala')
-rw-r--r-- | src/scalap/scala/tools/scalap/Main.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scalap/scala/tools/scalap/Main.scala b/src/scalap/scala/tools/scalap/Main.scala index 24f26e2b60..7254b00480 100644 --- a/src/scalap/scala/tools/scalap/Main.scala +++ b/src/scalap/scala/tools/scalap/Main.scala @@ -131,9 +131,9 @@ class Main { def asClasspathString = "" val context = DefaultJavaContext - val classes = IndexedSeq[ClassRep]() - val packages = IndexedSeq[ClassPath[AbstractFile]]() - val sourcepaths = IndexedSeq[AbstractFile]() + val classes = IndexedSeq() + val packages = IndexedSeq() + val sourcepaths = IndexedSeq() } } |