Scala compiler plugin which provides syntax for contexts `x ⊢ { ... }`
Clone or download
Pull request Compare This branch is 15 commits ahead of mpilquist:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs/src
notes
project
src
.gitignore
LICENSE
README.md
build.sbt

README.md

Contexts

A Scala 2.12.x compiler plugin for contexts. You can write

x ⊢ { // arbitrary code }

and this will be rewritten to

{
  val inside_local_0 = x
  import inside_local_0._
  // arbitrary code
}

Usage

Add to your build

addCompilerPlugin("ohnosequences" %% "contexts" % version)

Credits

This plugin is a simple modification of mpilquist/local-implicits.