-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Whip up macro to lift to FunctionK * Appease Scala 2.10 macro gods * Appease scalastyle * Add doc for FunctionK.lift * Flush out docs for the rest of FunctionK * Ensure negative tests run in intended manner * Fix doc warnings
- Loading branch information
Showing
3 changed files
with
169 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package cats | ||
package macros | ||
|
||
/** Macro compatibility. | ||
* | ||
* Used only to push deprecation errors in core off into | ||
* the macros project, as warnings. | ||
*/ | ||
private[cats] class MacroCompat { | ||
|
||
type Context = reflect.macros.Context | ||
def compatNewTypeName(c: Context, name: String): c.TypeName = | ||
c.universe.newTypeName(name) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters