Skip to content

Commit e70e36a

Browse files
committed
Remove Internals
Dotty bug tracked in scala/scala3#10769
1 parent ba35b02 commit e70e36a

File tree

10 files changed

+321
-303
lines changed

10 files changed

+321
-303
lines changed

core/src/main/scala/io/github/timwspence/cats/stm/STM.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ object STM {
5252
idGen <- Ref.of[F, Long](0)
5353
rateLimiter <- Semaphore[F](n)
5454
} yield new STM[F] {
55-
import Internals._
5655

5756
def commit[A](txn: Txn[A]): F[A] =
5857
for {
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright 2020 TimWSpence
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package io.github.timwspence.cats.stm
18+
19+
private[stm] object STMConstants {
20+
21+
type T = Byte
22+
val PureT: T = 0
23+
val AllocT: T = 1
24+
val BindT: T = 2
25+
val HandleErrorT: T = 3
26+
val GetT: T = 4
27+
val ModifyT: T = 5
28+
val OrElseT: T = 6
29+
val AbortT: T = 7
30+
val RetryT: T = 8
31+
32+
}

0 commit comments

Comments
 (0)