@@ -129,7 +129,7 @@ object Iso {
129
129
}
130
130
}
131
131
132
- def implUnit [S : Type ](implicit refl : Reflection ): Expr [Iso [S , Unit ]] = {
132
+ def implUnit [S : Type ](implicit refl : Reflection ): Expr [Iso [S , 1 ]] = {
133
133
import refl ._
134
134
import util ._
135
135
import quoted .Toolbox .Default ._
@@ -139,7 +139,7 @@ object Iso {
139
139
if (tpS.isSingleton) {
140
140
val ident = Term .Ident (tpS.asInstanceOf [TermRef ]).seal[S ]
141
141
' {
142
- Iso [S , Unit ](Function .const(~ ident))(Function .const(() ))
142
+ Iso [S , 1 ](Function .const(~ ident))(Function .const(1 ))
143
143
}
144
144
}
145
145
else if (tpS.classSymbol.flatMap(cls => if (cls.flags.is(Flags .Case )) Some (true ) else None ).nonEmpty) {
@@ -156,7 +156,7 @@ object Iso {
156
156
val obj = Term .Select .overloaded(Term .Ident (companion), " apply" , Nil , Nil ).seal[S ]
157
157
158
158
' {
159
- Iso [S , Unit ](Function .const(~ obj))(Function .const(() ))
159
+ Iso [S , 1 ](Function .const(~ obj))(Function .const(1 ))
160
160
}
161
161
}
162
162
else {
@@ -176,7 +176,7 @@ object GenIso {
176
176
inline def apply [S , A ]: Iso [S , A ] = ~ Iso .impl[S , A ]
177
177
178
178
inline def fields [S , A ]: Iso [S , A ] = ???
179
- inline def unit [S ]: Iso [S , Unit ] = ~ Iso .implUnit[S ]
179
+ inline def unit [S ]: Iso [S , 1 ] = ~ Iso .implUnit[S ]
180
180
}
181
181
182
182
trait Prism [S , A ] {
0 commit comments