Skip to content

Instantly share code, notes, and snippets.

@mpilquist
Created May 11, 2018 03:27
Show Gist options
  • Save mpilquist/a1d10d01174a2fd9037f0e2fe7b72b9f to your computer and use it in GitHub Desktop.
Save mpilquist/a1d10d01174a2fd9037f0e2fe7b72b9f to your computer and use it in GitHub Desktop.
IO Sparkles!
import $ivy.`org.typelevel::cats-effect:0.10-22efb61`
def disablePrettyPrintIO = repl.pprinter.update(repl.pprinter().copy(additionalHandlers = {
case io: cats.effect.IO[_] => pprint.Tree.Literal("✨✨✨")
}))
disablePrettyPrintIO
def enablePrettyPrintIO = repl.pprinter.update(repl.pprinter().copy(additionalHandlers = PartialFunction.empty))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment