Skip to content

Commit 37f1180

Browse files
author
peng
committed
INCOMPLETE! use Info for Peek
Depends on: fthomas/singleton-ops#186
1 parent ed04d93 commit 37f1180

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ allprojects {
9292
// compileOnly(kotlin("stdlib"))
9393
// compileOnly(kotlin("stdlib-jdk8"))
9494

95-
api("eu.timepit:singleton-ops_${vs.scalaBinaryV}:0.5.2") // used by all modules
95+
// api("eu.timepit:singleton-ops_${vs.scalaBinaryV}:0.5.2") // used by all modules
9696

97-
// api("eu.timepit:singleton-ops_${vs.scalaBinaryV}:0.5.0+22-59783019+20200731-1305-SNAPSHOT")
97+
api("eu.timepit:singleton-ops_${vs.scalaBinaryV}:0.5.2+50-630137bc-SNAPSHOT")
9898

9999
testImplementation("org.scalatest:scalatest_${vs.scalaBinaryV}:${vs.scalatestV}")
100100
testImplementation("org.junit.jupiter:junit-jupiter:5.6.2")

core/src/main/scala/org/shapesafe/core/debugging/InfoCT.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ object InfoCT {
105105

106106
type ErrorMsg[T] = RequireMsg[FALSE.T, T]
107107
type WarnMsg[T] = RequireMsgSym[FALSE.T, T, singleton.ops.Warn]
108+
type InfoMsg[T] = RequireMsgSym[FALSE.T, T, singleton.ops.Info]
108109

109110
val REFUTE =
110111
Witness("""¯\_(ツ)_/¯ """)

core/src/main/scala/org/shapesafe/core/debugging/Reporters.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Reporters[
4747

4848
trait PeekReporter[IUB <: CanPeek, TGT <: scope.OUB with CanPeek] extends ProofReporter[IUB, TGT] {
4949

50-
override type ReportMsg[T] = WarnMsg[T]
50+
override type ReportMsg[T] = InfoMsg[T]
5151
}
5252

5353
trait ErrorReporter[IUB <: CanPeek, TGT <: scope.OUB with CanPeek] extends ProofReporter[IUB, TGT] {

0 commit comments

Comments
 (0)