Dear Scala community, a feature I'm looking for: "display scalac errors on my types in my own way, specially the string format of my types in Scalac messages" (like implicitNotFound for example) Is it already possible & Im missing something or is it something not even imaginable?
If you want to prettyprint type mismatches, create a (general) implicit conversion between the bad and expected types, implement it with a macro, deconstruct the type tags, http://c.info () the output, then throw an exception in the macro so it won't spuriously compile.
-
-
Note that the type tags might not be useful if you're deconstructing covariant type parameters, though. Which is a shame for HLists, for example.
-
which I'd like to be possible too... we need to be able to customise scalac errors more & more
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.