Skip to content

Scala compiler plugin which provides syntax for contexts `x ⊢ { ... }`

License

Notifications You must be signed in to change notification settings

ohnosequences/contexts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Scala compiler plugin which provides syntax for contexts `x ⊢ { ... }`

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 100.0%