-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ReadWriters for CheckDirection (#57)
- Loading branch information
Showing
3 changed files
with
11 additions
and
3 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
7 changes: 7 additions & 0 deletions
7
mill-mima/src/com/github/lolgab/mill/mima/CheckDirection.scala
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 |
---|---|---|
@@ -1,8 +1,15 @@ | ||
package com.github.lolgab.mill.mima | ||
|
||
import upickle.default._ | ||
|
||
sealed trait CheckDirection | ||
object CheckDirection { | ||
case object Backward extends CheckDirection | ||
case object Forward extends CheckDirection | ||
case object Both extends CheckDirection | ||
|
||
implicit val backwardRW: ReadWriter[CheckDirection.Backward.type] = macroRW | ||
implicit val bothRW: ReadWriter[CheckDirection.Both.type] = macroRW | ||
implicit val forwardRW: ReadWriter[CheckDirection.Forward.type] = macroRW | ||
implicit val checkDirectionRW: ReadWriter[CheckDirection] = macroRW | ||
} |