Build Information
Failed to build BowLite, reference main (520042
), with Swift 6.1 for Wasm on 27 May 2025 20:01:27 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
506 | EnvIO.pure(DispatchTime.now())
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:504:78: error: cannot find type 'DispatchTimeInterval' in scope
502 | }
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
506 | EnvIO.pure(DispatchTime.now())
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:505:50: error: cannot find type 'DispatchTime' in scope
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
| `- error: cannot find type 'DispatchTime' in scope
506 | EnvIO.pure(DispatchTime.now())
507 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:510:53: error: cannot find type 'DispatchTime' in scope
508 |
509 | /// Provides a schedule that recurs forever without a delay, returning the elapsed time since it began.
510 | public static func elapsed() -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTime' in scope
511 | Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval>(
512 | initial: now().map { s in (s, DispatchTimeInterval.seconds(0)) },
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:510:67: error: cannot find type 'DispatchTimeInterval' in scope
508 |
509 | /// Provides a schedule that recurs forever without a delay, returning the elapsed time since it began.
510 | public static func elapsed() -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
511 | Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval>(
512 | initial: now().map { s in (s, DispatchTimeInterval.seconds(0)) },
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:521:86: error: cannot find type 'DispatchTime' in scope
519 | ///
520 | /// - Parameter interval: Time interval for this schedule to recur.
521 | public static func duration(_ interval: DispatchTimeInterval) -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTime' in scope
522 | elapsed().untilOutput { x in x >= interval }
523 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:521:100: error: cannot find type 'DispatchTimeInterval' in scope
519 | ///
520 | /// - Parameter interval: Time interval for this schedule to recur.
521 | public static func duration(_ interval: DispatchTimeInterval) -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
522 | elapsed().untilOutput { x in x >= interval }
523 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:521:45: error: cannot find type 'DispatchTimeInterval' in scope
519 | ///
520 | /// - Parameter interval: Time interval for this schedule to recur.
521 | public static func duration(_ interval: DispatchTimeInterval) -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
522 | elapsed().untilOutput { x in x >= interval }
523 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:530:43: error: cannot find type 'DispatchTimeInterval' in scope
528 | ///
529 | /// - Parameter interval: Time interval to wait between each action.
530 | public static func spaced(_ interval: DispatchTimeInterval) -> Schedule<R, A, State, Int> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
531 | forever().addDelay { _ in interval }
532 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:550:44: error: cannot find type 'DispatchTimeInterval' in scope
548 | /// - base: Base time interval to wait between repetitions.
549 | /// - factor: Factor for the exponential backoff. Defaults to 2.0.
550 | public static func exponential(_ base: DispatchTimeInterval, factor: Double = 2.0) -> Schedule<R, A, Int, TimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
551 | exponential(base.toDouble() ?? 1, factor: factor)
552 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:572:39: error: cannot find type 'DispatchTimeInterval' in scope
570 | ///
571 | /// - Parameter base: Base time interval to wait between repetitions.
572 | public static func linear(_ base: DispatchTimeInterval) -> Schedule<R, A, Int, TimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
573 | linear(base.toDouble() ?? 1)
574 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:593:41: error: cannot find type 'DispatchTimeInterval' in scope
591 | ///
592 | /// - Parameter one: Time interval for the initial delay.
593 | public static func fibonacci(_ one: DispatchTimeInterval) -> Schedule<R, A, (TimeInterval, TimeInterval), TimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
594 | fibonacci(one.toDouble() ?? 1)
595 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:142:42: error: cannot find type 'DispatchTimeInterval' in scope
140 | /// - Parameter f: Function computing the delay time based on the output of the schedule.
141 | public func addDelay(_ f: @escaping (B) -> DispatchTimeInterval) -> Schedule<R, A, State, B> {
142 | addDelayM { b in EnvIO<R, Never, DispatchTimeInterval>.pure(f(b)) }
| `- error: cannot find type 'DispatchTimeInterval' in scope
143 | }
144 |
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO.swift:486:35: error: cannot find type 'DispatchTimeInterval' in scope
484 | /// - Parameter interval: Time to sleep.
485 | /// - Returns: A computation that sleeps for the specified amount of time.
486 | static func sleep(_ interval: DispatchTimeInterval) -> EnvIO<Dependencies, Failure, Void> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
487 | EnvIO { _ in IO.sleep(interval) }
488 | }
[130/164] Compiling BowLiteEffects IOMonadComprehensions.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/MonadComprehensions/IO/IOConcurrent.swift:7:49: error: cannot find type 'DispatchQueue' in scope
5 | /// - Parameter queue: Queue where to run the effects from that point on.
6 | /// - Returns: A binding expression to be used in a Monad comprehension.
7 | public func continueOn<Failure: Error>(_ queue: DispatchQueue) -> IOBindingExpression<Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
8 | IOBoundVar<Failure, Void>.make() <- IO.lazy().continueOn(queue)
9 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:889:30: error: cannot find type 'DispatchQueue' in scope
887 | /// - queue: A Dispatch Queue.
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
890 | ContinueOn(self, queue)
891 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/MonadComprehensions/IO/IOConcurrent.swift:8:41: error: generic parameter 'Failure' could not be inferred
6 | /// - Returns: A binding expression to be used in a Monad comprehension.
7 | public func continueOn<Failure: Error>(_ queue: DispatchQueue) -> IOBindingExpression<Failure> {
8 | IOBoundVar<Failure, Void>.make() <- IO.lazy().continueOn(queue)
| |- error: generic parameter 'Failure' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
9 | }
10 |
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:20:17: note: 'Failure' declared as parameter to type 'IO'
18 |
19 | /// An IO is a data type that encapsulates and suspends side effects producing values of type `Success` or errors of type `Failure`.
20 | public class IO<Failure: Error, Success> {
| `- note: 'Failure' declared as parameter to type 'IO'
21 |
22 | /// Creates an EnvIO with no dependencies from this IO.
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO+Async.swift:34:18: error: cannot find type 'DispatchQueue' in scope
32 | /// - Returns: A computation that defers the execution of the provided function.
33 | static func later(
34 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
35 | _ f: @escaping () throws -> Success) -> IO<Failure, Success> {
36 | Self.defer(queue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:141:48: error: cannot find type 'DispatchTimeInterval' in scope
139 | ///
140 | /// - Parameter f: Function computing the delay time based on the output of the schedule.
141 | public func addDelay(_ f: @escaping (B) -> DispatchTimeInterval) -> Schedule<R, A, State, B> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
142 | addDelayM { b in EnvIO<R, Never, DispatchTimeInterval>.pure(f(b)) }
143 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:141:31: error: @escaping attribute only applies to function types
139 | ///
140 | /// - Parameter f: Function computing the delay time based on the output of the schedule.
141 | public func addDelay(_ f: @escaping (B) -> DispatchTimeInterval) -> Schedule<R, A, State, B> {
| `- error: @escaping attribute only applies to function types
142 | addDelayM { b in EnvIO<R, Never, DispatchTimeInterval>.pure(f(b)) }
143 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:148:65: error: cannot find type 'DispatchTimeInterval' in scope
146 | ///
147 | /// - Parameter f: An effectful function that provides the delay time based on the output of the schedule.
148 | public func addDelayM(_ f: @escaping (B) -> EnvIO<R, Never, DispatchTimeInterval>) -> Schedule<R, A, State, B> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
149 | addDelayM { b in f(b).map { x in x.toDouble() ?? 0 } }
150 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:148:32: error: @escaping attribute only applies to function types
146 | ///
147 | /// - Parameter f: An effectful function that provides the delay time based on the output of the schedule.
148 | public func addDelayM(_ f: @escaping (B) -> EnvIO<R, Never, DispatchTimeInterval>) -> Schedule<R, A, State, B> {
| `- error: @escaping attribute only applies to function types
149 | addDelayM { b in f(b).map { x in x.toDouble() ?? 0 } }
150 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:486:31: error: cannot find type 'DispatchTimeInterval' in scope
484 | }
485 |
486 | extension Schedule where B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
487 | /// Provides a schedule from the given schedule which transforms the delays into effectufl sleeps.
488 | ///
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:490:107: error: cannot find type 'DispatchTimeInterval' in scope
488 | ///
489 | /// - Parameter s: A schedule producing time intervals.
490 | public static func delayed(_ s: Schedule<R, A, State, DispatchTimeInterval>) -> Schedule<R, A, State, DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
491 | s.addDelay(id)
492 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:490:59: error: cannot find type 'DispatchTimeInterval' in scope
488 | ///
489 | /// - Parameter s: A schedule producing time intervals.
490 | public static func delayed(_ s: Schedule<R, A, State, DispatchTimeInterval>) -> Schedule<R, A, State, DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
491 | s.addDelay(id)
492 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:504:36: error: cannot find type 'DispatchTime' in scope
502 | }
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTime' in scope
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
506 | EnvIO.pure(DispatchTime.now())
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:504:50: error: cannot find type 'DispatchTimeInterval' in scope
502 | }
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
506 | EnvIO.pure(DispatchTime.now())
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:504:78: error: cannot find type 'DispatchTimeInterval' in scope
502 | }
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
506 | EnvIO.pure(DispatchTime.now())
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:505:50: error: cannot find type 'DispatchTime' in scope
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
| `- error: cannot find type 'DispatchTime' in scope
506 | EnvIO.pure(DispatchTime.now())
507 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:510:53: error: cannot find type 'DispatchTime' in scope
508 |
509 | /// Provides a schedule that recurs forever without a delay, returning the elapsed time since it began.
510 | public static func elapsed() -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTime' in scope
511 | Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval>(
512 | initial: now().map { s in (s, DispatchTimeInterval.seconds(0)) },
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:510:67: error: cannot find type 'DispatchTimeInterval' in scope
508 |
509 | /// Provides a schedule that recurs forever without a delay, returning the elapsed time since it began.
510 | public static func elapsed() -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
511 | Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval>(
512 | initial: now().map { s in (s, DispatchTimeInterval.seconds(0)) },
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:521:86: error: cannot find type 'DispatchTime' in scope
519 | ///
520 | /// - Parameter interval: Time interval for this schedule to recur.
521 | public static func duration(_ interval: DispatchTimeInterval) -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTime' in scope
522 | elapsed().untilOutput { x in x >= interval }
523 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:521:100: error: cannot find type 'DispatchTimeInterval' in scope
519 | ///
520 | /// - Parameter interval: Time interval for this schedule to recur.
521 | public static func duration(_ interval: DispatchTimeInterval) -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
522 | elapsed().untilOutput { x in x >= interval }
523 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:521:45: error: cannot find type 'DispatchTimeInterval' in scope
519 | ///
520 | /// - Parameter interval: Time interval for this schedule to recur.
521 | public static func duration(_ interval: DispatchTimeInterval) -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
522 | elapsed().untilOutput { x in x >= interval }
523 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:530:43: error: cannot find type 'DispatchTimeInterval' in scope
528 | ///
529 | /// - Parameter interval: Time interval to wait between each action.
530 | public static func spaced(_ interval: DispatchTimeInterval) -> Schedule<R, A, State, Int> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
531 | forever().addDelay { _ in interval }
532 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:550:44: error: cannot find type 'DispatchTimeInterval' in scope
548 | /// - base: Base time interval to wait between repetitions.
549 | /// - factor: Factor for the exponential backoff. Defaults to 2.0.
550 | public static func exponential(_ base: DispatchTimeInterval, factor: Double = 2.0) -> Schedule<R, A, Int, TimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
551 | exponential(base.toDouble() ?? 1, factor: factor)
552 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:572:39: error: cannot find type 'DispatchTimeInterval' in scope
570 | ///
571 | /// - Parameter base: Base time interval to wait between repetitions.
572 | public static func linear(_ base: DispatchTimeInterval) -> Schedule<R, A, Int, TimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
573 | linear(base.toDouble() ?? 1)
574 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:593:41: error: cannot find type 'DispatchTimeInterval' in scope
591 | ///
592 | /// - Parameter one: Time interval for the initial delay.
593 | public static func fibonacci(_ one: DispatchTimeInterval) -> Schedule<R, A, (TimeInterval, TimeInterval), TimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
594 | fibonacci(one.toDouble() ?? 1)
595 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:142:42: error: cannot find type 'DispatchTimeInterval' in scope
140 | /// - Parameter f: Function computing the delay time based on the output of the schedule.
141 | public func addDelay(_ f: @escaping (B) -> DispatchTimeInterval) -> Schedule<R, A, State, B> {
142 | addDelayM { b in EnvIO<R, Never, DispatchTimeInterval>.pure(f(b)) }
| `- error: cannot find type 'DispatchTimeInterval' in scope
143 | }
144 |
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO.swift:486:35: error: cannot find type 'DispatchTimeInterval' in scope
484 | /// - Parameter interval: Time to sleep.
485 | /// - Returns: A computation that sleeps for the specified amount of time.
486 | static func sleep(_ interval: DispatchTimeInterval) -> EnvIO<Dependencies, Failure, Void> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
487 | EnvIO { _ in IO.sleep(interval) }
488 | }
[131/164] Compiling BowLiteEffects Ref.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/MonadComprehensions/IO/IOConcurrent.swift:7:49: error: cannot find type 'DispatchQueue' in scope
5 | /// - Parameter queue: Queue where to run the effects from that point on.
6 | /// - Returns: A binding expression to be used in a Monad comprehension.
7 | public func continueOn<Failure: Error>(_ queue: DispatchQueue) -> IOBindingExpression<Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
8 | IOBoundVar<Failure, Void>.make() <- IO.lazy().continueOn(queue)
9 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:889:30: error: cannot find type 'DispatchQueue' in scope
887 | /// - queue: A Dispatch Queue.
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
890 | ContinueOn(self, queue)
891 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/MonadComprehensions/IO/IOConcurrent.swift:8:41: error: generic parameter 'Failure' could not be inferred
6 | /// - Returns: A binding expression to be used in a Monad comprehension.
7 | public func continueOn<Failure: Error>(_ queue: DispatchQueue) -> IOBindingExpression<Failure> {
8 | IOBoundVar<Failure, Void>.make() <- IO.lazy().continueOn(queue)
| |- error: generic parameter 'Failure' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
9 | }
10 |
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:20:17: note: 'Failure' declared as parameter to type 'IO'
18 |
19 | /// An IO is a data type that encapsulates and suspends side effects producing values of type `Success` or errors of type `Failure`.
20 | public class IO<Failure: Error, Success> {
| `- note: 'Failure' declared as parameter to type 'IO'
21 |
22 | /// Creates an EnvIO with no dependencies from this IO.
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO+Async.swift:34:18: error: cannot find type 'DispatchQueue' in scope
32 | /// - Returns: A computation that defers the execution of the provided function.
33 | static func later(
34 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
35 | _ f: @escaping () throws -> Success) -> IO<Failure, Success> {
36 | Self.defer(queue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:141:48: error: cannot find type 'DispatchTimeInterval' in scope
139 | ///
140 | /// - Parameter f: Function computing the delay time based on the output of the schedule.
141 | public func addDelay(_ f: @escaping (B) -> DispatchTimeInterval) -> Schedule<R, A, State, B> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
142 | addDelayM { b in EnvIO<R, Never, DispatchTimeInterval>.pure(f(b)) }
143 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:141:31: error: @escaping attribute only applies to function types
139 | ///
140 | /// - Parameter f: Function computing the delay time based on the output of the schedule.
141 | public func addDelay(_ f: @escaping (B) -> DispatchTimeInterval) -> Schedule<R, A, State, B> {
| `- error: @escaping attribute only applies to function types
142 | addDelayM { b in EnvIO<R, Never, DispatchTimeInterval>.pure(f(b)) }
143 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:148:65: error: cannot find type 'DispatchTimeInterval' in scope
146 | ///
147 | /// - Parameter f: An effectful function that provides the delay time based on the output of the schedule.
148 | public func addDelayM(_ f: @escaping (B) -> EnvIO<R, Never, DispatchTimeInterval>) -> Schedule<R, A, State, B> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
149 | addDelayM { b in f(b).map { x in x.toDouble() ?? 0 } }
150 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:148:32: error: @escaping attribute only applies to function types
146 | ///
147 | /// - Parameter f: An effectful function that provides the delay time based on the output of the schedule.
148 | public func addDelayM(_ f: @escaping (B) -> EnvIO<R, Never, DispatchTimeInterval>) -> Schedule<R, A, State, B> {
| `- error: @escaping attribute only applies to function types
149 | addDelayM { b in f(b).map { x in x.toDouble() ?? 0 } }
150 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:486:31: error: cannot find type 'DispatchTimeInterval' in scope
484 | }
485 |
486 | extension Schedule where B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
487 | /// Provides a schedule from the given schedule which transforms the delays into effectufl sleeps.
488 | ///
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:490:107: error: cannot find type 'DispatchTimeInterval' in scope
488 | ///
489 | /// - Parameter s: A schedule producing time intervals.
490 | public static func delayed(_ s: Schedule<R, A, State, DispatchTimeInterval>) -> Schedule<R, A, State, DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
491 | s.addDelay(id)
492 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:490:59: error: cannot find type 'DispatchTimeInterval' in scope
488 | ///
489 | /// - Parameter s: A schedule producing time intervals.
490 | public static func delayed(_ s: Schedule<R, A, State, DispatchTimeInterval>) -> Schedule<R, A, State, DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
491 | s.addDelay(id)
492 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:504:36: error: cannot find type 'DispatchTime' in scope
502 | }
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTime' in scope
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
506 | EnvIO.pure(DispatchTime.now())
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:504:50: error: cannot find type 'DispatchTimeInterval' in scope
502 | }
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
506 | EnvIO.pure(DispatchTime.now())
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:504:78: error: cannot find type 'DispatchTimeInterval' in scope
502 | }
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
506 | EnvIO.pure(DispatchTime.now())
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:505:50: error: cannot find type 'DispatchTime' in scope
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
| `- error: cannot find type 'DispatchTime' in scope
506 | EnvIO.pure(DispatchTime.now())
507 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:510:53: error: cannot find type 'DispatchTime' in scope
508 |
509 | /// Provides a schedule that recurs forever without a delay, returning the elapsed time since it began.
510 | public static func elapsed() -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTime' in scope
511 | Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval>(
512 | initial: now().map { s in (s, DispatchTimeInterval.seconds(0)) },
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:510:67: error: cannot find type 'DispatchTimeInterval' in scope
508 |
509 | /// Provides a schedule that recurs forever without a delay, returning the elapsed time since it began.
510 | public static func elapsed() -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
511 | Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval>(
512 | initial: now().map { s in (s, DispatchTimeInterval.seconds(0)) },
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:521:86: error: cannot find type 'DispatchTime' in scope
519 | ///
520 | /// - Parameter interval: Time interval for this schedule to recur.
521 | public static func duration(_ interval: DispatchTimeInterval) -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTime' in scope
522 | elapsed().untilOutput { x in x >= interval }
523 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:521:100: error: cannot find type 'DispatchTimeInterval' in scope
519 | ///
520 | /// - Parameter interval: Time interval for this schedule to recur.
521 | public static func duration(_ interval: DispatchTimeInterval) -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
522 | elapsed().untilOutput { x in x >= interval }
523 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:521:45: error: cannot find type 'DispatchTimeInterval' in scope
519 | ///
520 | /// - Parameter interval: Time interval for this schedule to recur.
521 | public static func duration(_ interval: DispatchTimeInterval) -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
522 | elapsed().untilOutput { x in x >= interval }
523 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:530:43: error: cannot find type 'DispatchTimeInterval' in scope
528 | ///
529 | /// - Parameter interval: Time interval to wait between each action.
530 | public static func spaced(_ interval: DispatchTimeInterval) -> Schedule<R, A, State, Int> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
531 | forever().addDelay { _ in interval }
532 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:550:44: error: cannot find type 'DispatchTimeInterval' in scope
548 | /// - base: Base time interval to wait between repetitions.
549 | /// - factor: Factor for the exponential backoff. Defaults to 2.0.
550 | public static func exponential(_ base: DispatchTimeInterval, factor: Double = 2.0) -> Schedule<R, A, Int, TimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
551 | exponential(base.toDouble() ?? 1, factor: factor)
552 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:572:39: error: cannot find type 'DispatchTimeInterval' in scope
570 | ///
571 | /// - Parameter base: Base time interval to wait between repetitions.
572 | public static func linear(_ base: DispatchTimeInterval) -> Schedule<R, A, Int, TimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
573 | linear(base.toDouble() ?? 1)
574 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:593:41: error: cannot find type 'DispatchTimeInterval' in scope
591 | ///
592 | /// - Parameter one: Time interval for the initial delay.
593 | public static func fibonacci(_ one: DispatchTimeInterval) -> Schedule<R, A, (TimeInterval, TimeInterval), TimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
594 | fibonacci(one.toDouble() ?? 1)
595 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:142:42: error: cannot find type 'DispatchTimeInterval' in scope
140 | /// - Parameter f: Function computing the delay time based on the output of the schedule.
141 | public func addDelay(_ f: @escaping (B) -> DispatchTimeInterval) -> Schedule<R, A, State, B> {
142 | addDelayM { b in EnvIO<R, Never, DispatchTimeInterval>.pure(f(b)) }
| `- error: cannot find type 'DispatchTimeInterval' in scope
143 | }
144 |
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO.swift:486:35: error: cannot find type 'DispatchTimeInterval' in scope
484 | /// - Parameter interval: Time to sleep.
485 | /// - Returns: A computation that sleeps for the specified amount of time.
486 | static func sleep(_ interval: DispatchTimeInterval) -> EnvIO<Dependencies, Failure, Void> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
487 | EnvIO { _ in IO.sleep(interval) }
488 | }
[132/164] Compiling BowLiteEffects Resource.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/MonadComprehensions/IO/IOConcurrent.swift:7:49: error: cannot find type 'DispatchQueue' in scope
5 | /// - Parameter queue: Queue where to run the effects from that point on.
6 | /// - Returns: A binding expression to be used in a Monad comprehension.
7 | public func continueOn<Failure: Error>(_ queue: DispatchQueue) -> IOBindingExpression<Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
8 | IOBoundVar<Failure, Void>.make() <- IO.lazy().continueOn(queue)
9 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:889:30: error: cannot find type 'DispatchQueue' in scope
887 | /// - queue: A Dispatch Queue.
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
890 | ContinueOn(self, queue)
891 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/MonadComprehensions/IO/IOConcurrent.swift:8:41: error: generic parameter 'Failure' could not be inferred
6 | /// - Returns: A binding expression to be used in a Monad comprehension.
7 | public func continueOn<Failure: Error>(_ queue: DispatchQueue) -> IOBindingExpression<Failure> {
8 | IOBoundVar<Failure, Void>.make() <- IO.lazy().continueOn(queue)
| |- error: generic parameter 'Failure' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
9 | }
10 |
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:20:17: note: 'Failure' declared as parameter to type 'IO'
18 |
19 | /// An IO is a data type that encapsulates and suspends side effects producing values of type `Success` or errors of type `Failure`.
20 | public class IO<Failure: Error, Success> {
| `- note: 'Failure' declared as parameter to type 'IO'
21 |
22 | /// Creates an EnvIO with no dependencies from this IO.
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO+Async.swift:34:18: error: cannot find type 'DispatchQueue' in scope
32 | /// - Returns: A computation that defers the execution of the provided function.
33 | static func later(
34 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
35 | _ f: @escaping () throws -> Success) -> IO<Failure, Success> {
36 | Self.defer(queue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:141:48: error: cannot find type 'DispatchTimeInterval' in scope
139 | ///
140 | /// - Parameter f: Function computing the delay time based on the output of the schedule.
141 | public func addDelay(_ f: @escaping (B) -> DispatchTimeInterval) -> Schedule<R, A, State, B> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
142 | addDelayM { b in EnvIO<R, Never, DispatchTimeInterval>.pure(f(b)) }
143 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:141:31: error: @escaping attribute only applies to function types
139 | ///
140 | /// - Parameter f: Function computing the delay time based on the output of the schedule.
141 | public func addDelay(_ f: @escaping (B) -> DispatchTimeInterval) -> Schedule<R, A, State, B> {
| `- error: @escaping attribute only applies to function types
142 | addDelayM { b in EnvIO<R, Never, DispatchTimeInterval>.pure(f(b)) }
143 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:148:65: error: cannot find type 'DispatchTimeInterval' in scope
146 | ///
147 | /// - Parameter f: An effectful function that provides the delay time based on the output of the schedule.
148 | public func addDelayM(_ f: @escaping (B) -> EnvIO<R, Never, DispatchTimeInterval>) -> Schedule<R, A, State, B> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
149 | addDelayM { b in f(b).map { x in x.toDouble() ?? 0 } }
150 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:148:32: error: @escaping attribute only applies to function types
146 | ///
147 | /// - Parameter f: An effectful function that provides the delay time based on the output of the schedule.
148 | public func addDelayM(_ f: @escaping (B) -> EnvIO<R, Never, DispatchTimeInterval>) -> Schedule<R, A, State, B> {
| `- error: @escaping attribute only applies to function types
149 | addDelayM { b in f(b).map { x in x.toDouble() ?? 0 } }
150 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:486:31: error: cannot find type 'DispatchTimeInterval' in scope
484 | }
485 |
486 | extension Schedule where B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
487 | /// Provides a schedule from the given schedule which transforms the delays into effectufl sleeps.
488 | ///
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:490:107: error: cannot find type 'DispatchTimeInterval' in scope
488 | ///
489 | /// - Parameter s: A schedule producing time intervals.
490 | public static func delayed(_ s: Schedule<R, A, State, DispatchTimeInterval>) -> Schedule<R, A, State, DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
491 | s.addDelay(id)
492 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:490:59: error: cannot find type 'DispatchTimeInterval' in scope
488 | ///
489 | /// - Parameter s: A schedule producing time intervals.
490 | public static func delayed(_ s: Schedule<R, A, State, DispatchTimeInterval>) -> Schedule<R, A, State, DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
491 | s.addDelay(id)
492 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:504:36: error: cannot find type 'DispatchTime' in scope
502 | }
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTime' in scope
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
506 | EnvIO.pure(DispatchTime.now())
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:504:50: error: cannot find type 'DispatchTimeInterval' in scope
502 | }
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
506 | EnvIO.pure(DispatchTime.now())
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:504:78: error: cannot find type 'DispatchTimeInterval' in scope
502 | }
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
506 | EnvIO.pure(DispatchTime.now())
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:505:50: error: cannot find type 'DispatchTime' in scope
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
| `- error: cannot find type 'DispatchTime' in scope
506 | EnvIO.pure(DispatchTime.now())
507 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:510:53: error: cannot find type 'DispatchTime' in scope
508 |
509 | /// Provides a schedule that recurs forever without a delay, returning the elapsed time since it began.
510 | public static func elapsed() -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTime' in scope
511 | Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval>(
512 | initial: now().map { s in (s, DispatchTimeInterval.seconds(0)) },
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:510:67: error: cannot find type 'DispatchTimeInterval' in scope
508 |
509 | /// Provides a schedule that recurs forever without a delay, returning the elapsed time since it began.
510 | public static func elapsed() -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
511 | Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval>(
512 | initial: now().map { s in (s, DispatchTimeInterval.seconds(0)) },
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:521:86: error: cannot find type 'DispatchTime' in scope
519 | ///
520 | /// - Parameter interval: Time interval for this schedule to recur.
521 | public static func duration(_ interval: DispatchTimeInterval) -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTime' in scope
522 | elapsed().untilOutput { x in x >= interval }
523 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:521:100: error: cannot find type 'DispatchTimeInterval' in scope
519 | ///
520 | /// - Parameter interval: Time interval for this schedule to recur.
521 | public static func duration(_ interval: DispatchTimeInterval) -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
522 | elapsed().untilOutput { x in x >= interval }
523 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:521:45: error: cannot find type 'DispatchTimeInterval' in scope
519 | ///
520 | /// - Parameter interval: Time interval for this schedule to recur.
521 | public static func duration(_ interval: DispatchTimeInterval) -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
522 | elapsed().untilOutput { x in x >= interval }
523 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:530:43: error: cannot find type 'DispatchTimeInterval' in scope
528 | ///
529 | /// - Parameter interval: Time interval to wait between each action.
530 | public static func spaced(_ interval: DispatchTimeInterval) -> Schedule<R, A, State, Int> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
531 | forever().addDelay { _ in interval }
532 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:550:44: error: cannot find type 'DispatchTimeInterval' in scope
548 | /// - base: Base time interval to wait between repetitions.
549 | /// - factor: Factor for the exponential backoff. Defaults to 2.0.
550 | public static func exponential(_ base: DispatchTimeInterval, factor: Double = 2.0) -> Schedule<R, A, Int, TimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
551 | exponential(base.toDouble() ?? 1, factor: factor)
552 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:572:39: error: cannot find type 'DispatchTimeInterval' in scope
570 | ///
571 | /// - Parameter base: Base time interval to wait between repetitions.
572 | public static func linear(_ base: DispatchTimeInterval) -> Schedule<R, A, Int, TimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
573 | linear(base.toDouble() ?? 1)
574 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:593:41: error: cannot find type 'DispatchTimeInterval' in scope
591 | ///
592 | /// - Parameter one: Time interval for the initial delay.
593 | public static func fibonacci(_ one: DispatchTimeInterval) -> Schedule<R, A, (TimeInterval, TimeInterval), TimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
594 | fibonacci(one.toDouble() ?? 1)
595 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:142:42: error: cannot find type 'DispatchTimeInterval' in scope
140 | /// - Parameter f: Function computing the delay time based on the output of the schedule.
141 | public func addDelay(_ f: @escaping (B) -> DispatchTimeInterval) -> Schedule<R, A, State, B> {
142 | addDelayM { b in EnvIO<R, Never, DispatchTimeInterval>.pure(f(b)) }
| `- error: cannot find type 'DispatchTimeInterval' in scope
143 | }
144 |
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO.swift:486:35: error: cannot find type 'DispatchTimeInterval' in scope
484 | /// - Parameter interval: Time to sleep.
485 | /// - Returns: A computation that sleeps for the specified amount of time.
486 | static func sleep(_ interval: DispatchTimeInterval) -> EnvIO<Dependencies, Failure, Void> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
487 | EnvIO { _ in IO.sleep(interval) }
488 | }
[133/164] Compiling BowLiteEffects Schedule.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/MonadComprehensions/IO/IOConcurrent.swift:7:49: error: cannot find type 'DispatchQueue' in scope
5 | /// - Parameter queue: Queue where to run the effects from that point on.
6 | /// - Returns: A binding expression to be used in a Monad comprehension.
7 | public func continueOn<Failure: Error>(_ queue: DispatchQueue) -> IOBindingExpression<Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
8 | IOBoundVar<Failure, Void>.make() <- IO.lazy().continueOn(queue)
9 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:889:30: error: cannot find type 'DispatchQueue' in scope
887 | /// - queue: A Dispatch Queue.
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
890 | ContinueOn(self, queue)
891 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/MonadComprehensions/IO/IOConcurrent.swift:8:41: error: generic parameter 'Failure' could not be inferred
6 | /// - Returns: A binding expression to be used in a Monad comprehension.
7 | public func continueOn<Failure: Error>(_ queue: DispatchQueue) -> IOBindingExpression<Failure> {
8 | IOBoundVar<Failure, Void>.make() <- IO.lazy().continueOn(queue)
| |- error: generic parameter 'Failure' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
9 | }
10 |
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:20:17: note: 'Failure' declared as parameter to type 'IO'
18 |
19 | /// An IO is a data type that encapsulates and suspends side effects producing values of type `Success` or errors of type `Failure`.
20 | public class IO<Failure: Error, Success> {
| `- note: 'Failure' declared as parameter to type 'IO'
21 |
22 | /// Creates an EnvIO with no dependencies from this IO.
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO+Async.swift:34:18: error: cannot find type 'DispatchQueue' in scope
32 | /// - Returns: A computation that defers the execution of the provided function.
33 | static func later(
34 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
35 | _ f: @escaping () throws -> Success) -> IO<Failure, Success> {
36 | Self.defer(queue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:141:48: error: cannot find type 'DispatchTimeInterval' in scope
139 | ///
140 | /// - Parameter f: Function computing the delay time based on the output of the schedule.
141 | public func addDelay(_ f: @escaping (B) -> DispatchTimeInterval) -> Schedule<R, A, State, B> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
142 | addDelayM { b in EnvIO<R, Never, DispatchTimeInterval>.pure(f(b)) }
143 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:141:31: error: @escaping attribute only applies to function types
139 | ///
140 | /// - Parameter f: Function computing the delay time based on the output of the schedule.
141 | public func addDelay(_ f: @escaping (B) -> DispatchTimeInterval) -> Schedule<R, A, State, B> {
| `- error: @escaping attribute only applies to function types
142 | addDelayM { b in EnvIO<R, Never, DispatchTimeInterval>.pure(f(b)) }
143 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:148:65: error: cannot find type 'DispatchTimeInterval' in scope
146 | ///
147 | /// - Parameter f: An effectful function that provides the delay time based on the output of the schedule.
148 | public func addDelayM(_ f: @escaping (B) -> EnvIO<R, Never, DispatchTimeInterval>) -> Schedule<R, A, State, B> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
149 | addDelayM { b in f(b).map { x in x.toDouble() ?? 0 } }
150 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:148:32: error: @escaping attribute only applies to function types
146 | ///
147 | /// - Parameter f: An effectful function that provides the delay time based on the output of the schedule.
148 | public func addDelayM(_ f: @escaping (B) -> EnvIO<R, Never, DispatchTimeInterval>) -> Schedule<R, A, State, B> {
| `- error: @escaping attribute only applies to function types
149 | addDelayM { b in f(b).map { x in x.toDouble() ?? 0 } }
150 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:486:31: error: cannot find type 'DispatchTimeInterval' in scope
484 | }
485 |
486 | extension Schedule where B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
487 | /// Provides a schedule from the given schedule which transforms the delays into effectufl sleeps.
488 | ///
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:490:107: error: cannot find type 'DispatchTimeInterval' in scope
488 | ///
489 | /// - Parameter s: A schedule producing time intervals.
490 | public static func delayed(_ s: Schedule<R, A, State, DispatchTimeInterval>) -> Schedule<R, A, State, DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
491 | s.addDelay(id)
492 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:490:59: error: cannot find type 'DispatchTimeInterval' in scope
488 | ///
489 | /// - Parameter s: A schedule producing time intervals.
490 | public static func delayed(_ s: Schedule<R, A, State, DispatchTimeInterval>) -> Schedule<R, A, State, DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
491 | s.addDelay(id)
492 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:504:36: error: cannot find type 'DispatchTime' in scope
502 | }
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTime' in scope
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
506 | EnvIO.pure(DispatchTime.now())
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:504:50: error: cannot find type 'DispatchTimeInterval' in scope
502 | }
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
506 | EnvIO.pure(DispatchTime.now())
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:504:78: error: cannot find type 'DispatchTimeInterval' in scope
502 | }
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
506 | EnvIO.pure(DispatchTime.now())
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:505:50: error: cannot find type 'DispatchTime' in scope
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
| `- error: cannot find type 'DispatchTime' in scope
506 | EnvIO.pure(DispatchTime.now())
507 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:510:53: error: cannot find type 'DispatchTime' in scope
508 |
509 | /// Provides a schedule that recurs forever without a delay, returning the elapsed time since it began.
510 | public static func elapsed() -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTime' in scope
511 | Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval>(
512 | initial: now().map { s in (s, DispatchTimeInterval.seconds(0)) },
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:510:67: error: cannot find type 'DispatchTimeInterval' in scope
508 |
509 | /// Provides a schedule that recurs forever without a delay, returning the elapsed time since it began.
510 | public static func elapsed() -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
511 | Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval>(
512 | initial: now().map { s in (s, DispatchTimeInterval.seconds(0)) },
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:521:86: error: cannot find type 'DispatchTime' in scope
519 | ///
520 | /// - Parameter interval: Time interval for this schedule to recur.
521 | public static func duration(_ interval: DispatchTimeInterval) -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTime' in scope
522 | elapsed().untilOutput { x in x >= interval }
523 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:521:100: error: cannot find type 'DispatchTimeInterval' in scope
519 | ///
520 | /// - Parameter interval: Time interval for this schedule to recur.
521 | public static func duration(_ interval: DispatchTimeInterval) -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
522 | elapsed().untilOutput { x in x >= interval }
523 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:521:45: error: cannot find type 'DispatchTimeInterval' in scope
519 | ///
520 | /// - Parameter interval: Time interval for this schedule to recur.
521 | public static func duration(_ interval: DispatchTimeInterval) -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
522 | elapsed().untilOutput { x in x >= interval }
523 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:530:43: error: cannot find type 'DispatchTimeInterval' in scope
528 | ///
529 | /// - Parameter interval: Time interval to wait between each action.
530 | public static func spaced(_ interval: DispatchTimeInterval) -> Schedule<R, A, State, Int> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
531 | forever().addDelay { _ in interval }
532 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:550:44: error: cannot find type 'DispatchTimeInterval' in scope
548 | /// - base: Base time interval to wait between repetitions.
549 | /// - factor: Factor for the exponential backoff. Defaults to 2.0.
550 | public static func exponential(_ base: DispatchTimeInterval, factor: Double = 2.0) -> Schedule<R, A, Int, TimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
551 | exponential(base.toDouble() ?? 1, factor: factor)
552 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:572:39: error: cannot find type 'DispatchTimeInterval' in scope
570 | ///
571 | /// - Parameter base: Base time interval to wait between repetitions.
572 | public static func linear(_ base: DispatchTimeInterval) -> Schedule<R, A, Int, TimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
573 | linear(base.toDouble() ?? 1)
574 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:593:41: error: cannot find type 'DispatchTimeInterval' in scope
591 | ///
592 | /// - Parameter one: Time interval for the initial delay.
593 | public static func fibonacci(_ one: DispatchTimeInterval) -> Schedule<R, A, (TimeInterval, TimeInterval), TimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
594 | fibonacci(one.toDouble() ?? 1)
595 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:142:42: error: cannot find type 'DispatchTimeInterval' in scope
140 | /// - Parameter f: Function computing the delay time based on the output of the schedule.
141 | public func addDelay(_ f: @escaping (B) -> DispatchTimeInterval) -> Schedule<R, A, State, B> {
142 | addDelayM { b in EnvIO<R, Never, DispatchTimeInterval>.pure(f(b)) }
| `- error: cannot find type 'DispatchTimeInterval' in scope
143 | }
144 |
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO.swift:486:35: error: cannot find type 'DispatchTimeInterval' in scope
484 | /// - Parameter interval: Time to sleep.
485 | /// - Returns: A computation that sleeps for the specified amount of time.
486 | static func sleep(_ interval: DispatchTimeInterval) -> EnvIO<Dependencies, Failure, Void> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
487 | EnvIO { _ in IO.sleep(interval) }
488 | }
[134/164] Compiling BowLiteEffects Atomic.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/Atomic.swift:5:25: error: cannot find 'DispatchQueue' in scope
3 | /// An atomically modifiable reference to a value
4 | public final class Atomic<A> {
5 | private let queue = DispatchQueue(label: "Atomic serial queue")
| `- error: cannot find 'DispatchQueue' in scope
6 | private var _value: A
7 |
[135/164] Compiling BowLiteEffects Array+ConcurrentTraverse.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/Atomic.swift:5:25: error: cannot find 'DispatchQueue' in scope
3 | /// An atomically modifiable reference to a value
4 | public final class Atomic<A> {
5 | private let queue = DispatchQueue(label: "Atomic serial queue")
| `- error: cannot find 'DispatchQueue' in scope
6 | private var _value: A
7 |
[136/164] Compiling BowLiteEffects Array+TraverseIO.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/Atomic.swift:5:25: error: cannot find 'DispatchQueue' in scope
3 | /// An atomically modifiable reference to a value
4 | public final class Atomic<A> {
5 | private let queue = DispatchQueue(label: "Atomic serial queue")
| `- error: cannot find 'DispatchQueue' in scope
6 | private var _value: A
7 |
[137/164] Compiling BowLiteEffects NonEmptyArray+ConcurrentTraverse.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/Atomic.swift:5:25: error: cannot find 'DispatchQueue' in scope
3 | /// An atomically modifiable reference to a value
4 | public final class Atomic<A> {
5 | private let queue = DispatchQueue(label: "Atomic serial queue")
| `- error: cannot find 'DispatchQueue' in scope
6 | private var _value: A
7 |
[138/164] Compiling BowLiteEffects NonEmptyArray+TraverseIO.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/Atomic.swift:5:25: error: cannot find 'DispatchQueue' in scope
3 | /// An atomically modifiable reference to a value
4 | public final class Atomic<A> {
5 | private let queue = DispatchQueue(label: "Atomic serial queue")
| `- error: cannot find 'DispatchQueue' in scope
6 | private var _value: A
7 |
[139/164] Compiling BowLiteEffects EnvIO+Applicative.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/Atomic.swift:5:25: error: cannot find 'DispatchQueue' in scope
3 | /// An atomically modifiable reference to a value
4 | public final class Atomic<A> {
5 | private let queue = DispatchQueue(label: "Atomic serial queue")
| `- error: cannot find 'DispatchQueue' in scope
6 | private var _value: A
7 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[140/164] Compiling BowLiteEffects IO+Monad.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO+Async.swift:23:18: error: cannot find type 'DispatchQueue' in scope
21 | /// - Returns: A computation that defers the execution of the provided function.
22 | static func `defer`(
23 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
24 | _ f: @escaping () -> IO<Failure, Success>) -> IO<Failure, Success> {
25 | IO<Failure, Void>.lazy().continueOn(queue).flatMap(f)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO+Async.swift:34:18: error: cannot find type 'DispatchQueue' in scope
32 | /// - Returns: A computation that defers the execution of the provided function.
33 | static func later(
34 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
35 | _ f: @escaping () throws -> Success) -> IO<Failure, Success> {
36 | Self.defer(queue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:280:41: error: cannot find type 'DispatchQueue' in scope
278 | /// - Returns: Value produced after running the suspended side effects.
279 | /// - Throws: Error of type `Failure` that may happen during the evaluation of the side-effects. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
280 | public func unsafeRunSync(on queue: DispatchQueue = .main) throws -> Success {
| `- error: cannot find type 'DispatchQueue' in scope
281 | let either = self.unsafeRunSyncEither(on: queue)
282 | switch either {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:292:47: error: cannot find type 'DispatchQueue' in scope
290 | /// - Parameter queue: Dispatch queue used to execute the side effects. Defaults to the main queue.
291 | /// - Returns: An Either wrapping errors in the left side and values on the right side. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
292 | public func unsafeRunSyncEither(on queue: DispatchQueue = .main) -> Either<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
293 | self._unsafeRunSyncEither(on: .queue(queue)).run().0
294 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:4:32: error: cannot find type 'DispatchQueue' in scope
2 |
3 | internal struct Queue {
4 | static func queue(_ queue: DispatchQueue = .main) -> Queue {
| `- error: cannot find type 'DispatchQueue' in scope
5 | queue.setSpecific(key: Key.threadLabel, value: queue.label)
6 | return .init(queue: ._queue(queue))
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:9:43: error: cannot find type 'DispatchQoS' in scope
7 | }
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
| `- error: cannot find type 'DispatchQoS' in scope
10 | queue(DispatchQueue(label: label, qos: qos))
11 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:308:35: error: cannot find type 'DispatchQueue' in scope
306 | /// - Parameter queue: Dispatch queue used to execute the side effects. Defaults to the main queue.
307 | /// - Returns: An IO that either contains the value produced or an error. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
308 | public func attempt(on queue: DispatchQueue = .main) -> IO<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
309 | do {
310 | let result = try self.unsafeRunSync(on: queue)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:324:42: error: cannot find type 'DispatchQueue' in scope
322 | /// - queue: Dispatch queue used to execute the side effects. Defaults to the main queue.
323 | /// - callback: A callback function to receive the results of the evaluation. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
324 | public func unsafeRunAsync(on queue: DispatchQueue = .main, _ callback: @escaping Callback<Failure, Success> = { _ in }) {
| `- error: cannot find type 'DispatchQueue' in scope
325 | queue.async {
326 | callback(self.unsafeRunSyncEither(on: queue))
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:424:35: error: cannot find type 'DispatchTimeInterval' in scope
422 | /// - Parameter interval: Interval of time to sleep.
423 | /// - Returns: An IO that sleeps for the specified amount of time.
424 | static func sleep(_ interval: DispatchTimeInterval) -> IO<Failure, Void> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
425 | if let timeInterval = interval.toDouble() {
426 | return IO.invoke {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:585:35: error: cannot find type 'DispatchQueue' in scope
583 | let queue: DispatchQueue
584 |
585 | init(_ io: IO<E, A>, _ queue: DispatchQueue) {
| `- error: cannot find type 'DispatchQueue' in scope
586 | self.io = io
587 | self.queue = queue
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:583:16: error: cannot find type 'DispatchQueue' in scope
581 | internal class ContinueOn<E: Error, A>: IO<E, A> {
582 | let io: IO<E, A>
583 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
584 |
585 | init(_ io: IO<E, A>, _ queue: DispatchQueue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:889:30: error: cannot find type 'DispatchQueue' in scope
887 | /// - queue: A Dispatch Queue.
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
890 | ContinueOn(self, queue)
891 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:427:17: error: cannot find 'Thread' in scope
425 | if let timeInterval = interval.toDouble() {
426 | return IO.invoke {
427 | Thread.sleep(forTimeInterval: timeInterval)
| `- error: cannot find 'Thread' in scope
428 | }
429 | } else {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:440:13: error: cannot find 'Thread' in scope
438 | static func sleep(_ interval: TimeInterval) -> IO<Failure, Void> {
439 | IO.invoke {
440 | Thread.sleep(forTimeInterval: interval)
| `- error: cannot find 'Thread' in scope
441 | }
442 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:561:21: error: cannot find 'DispatchGroup' in scope
559 | override internal func _unsafeRunSyncEither(on queue: Queue = .queue()) -> Trampoline<(Either<E, A>, Queue)> {
560 | var result: Either<E, A>?
561 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
562 | group.enter()
563 | let callback: Callback<E, A> = { either in
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:642:21: error: cannot find 'DispatchGroup' in scope
640 | override func _unsafeRunSyncEither(on queue: Queue = .queue()) -> Trampoline<(Either<E, Either<A, B>>, Queue)> {
641 | let result = Atomic<Either<(Either<E, A>, Queue), (Either<E, B>, Queue)>?>(nil)
642 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
643 | let parQueue1: Queue = .queue(label: queue.label + "raceA", qos: queue.qos)
644 | let parQueue2: Queue = .queue(label: queue.label + "raceB", qos: queue.qos)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:35:14: error: cannot find type 'DispatchQoS' in scope
33 | }
34 |
35 | var qos: DispatchQoS {
| `- error: cannot find type 'DispatchQoS' in scope
36 | switch queue {
37 | case ._queue(let queue):
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:686:21: error: cannot find 'DispatchGroup' in scope
684 | var a: (Either<E, A>, Queue)?
685 | var b: (Either<E, B>, Queue)?
686 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
687 | let parQueue1: Queue = .queue(label: queue.label + "parMap1", qos: queue.qos)
688 | let parQueue2: Queue = .queue(label: queue.label + "parMap2", qos: queue.qos)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:728:21: error: cannot find 'DispatchGroup' in scope
726 | var b: (Either<E, B>, Queue)?
727 | var c: (Either<E, C>, Queue)?
728 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
729 | let parQueue1: Queue = .queue(label: queue.label + "parMap1", qos: queue.qos)
730 | let parQueue2: Queue = .queue(label: queue.label + "parMap2", qos: queue.qos)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:890:9: error: generic parameter 'E' could not be inferred
579 | }
580 |
581 | internal class ContinueOn<E: Error, A>: IO<E, A> {
| `- note: 'E' declared as parameter to type 'ContinueOn'
582 | let io: IO<E, A>
583 | let queue: DispatchQueue
:
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
890 | ContinueOn(self, queue)
| `- error: generic parameter 'E' could not be inferred
891 | }
892 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:890:9: error: generic parameter 'A' could not be inferred
579 | }
580 |
581 | internal class ContinueOn<E: Error, A>: IO<E, A> {
| `- note: 'A' declared as parameter to type 'ContinueOn'
582 | let io: IO<E, A>
583 | let queue: DispatchQueue
:
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
890 | ContinueOn(self, queue)
| |- error: generic parameter 'A' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
891 | }
892 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:3:11: error: cannot find type 'DispatchTimeInterval' in scope
1 | import Foundation
2 |
3 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
4 | func toDouble() -> Double? {
5 | switch self {
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:16:14: error: cannot find type 'DispatchTimeInterval' in scope
14 | }
15 |
16 | func >=(lhs: DispatchTimeInterval, rhs: DispatchTimeInterval) -> Bool {
| `- error: cannot find type 'DispatchTimeInterval' in scope
17 | let now = DispatchTime.now()
18 | return now + lhs >= now + rhs
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:16:41: error: cannot find type 'DispatchTimeInterval' in scope
14 | }
15 |
16 | func >=(lhs: DispatchTimeInterval, rhs: DispatchTimeInterval) -> Bool {
| `- error: cannot find type 'DispatchTimeInterval' in scope
17 | let now = DispatchTime.now()
18 | return now + lhs >= now + rhs
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:21:49: error: cannot find type 'DispatchTimeInterval' in scope
19 | }
20 |
21 | func -(lhs: DispatchTime, rhs: DispatchTime) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
22 | let l = Int(lhs.rawValue)
23 | let r = Int(rhs.rawValue)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:21:13: error: cannot find type 'DispatchTime' in scope
19 | }
20 |
21 | func -(lhs: DispatchTime, rhs: DispatchTime) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTime' in scope
22 | let l = Int(lhs.rawValue)
23 | let r = Int(rhs.rawValue)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:21:32: error: cannot find type 'DispatchTime' in scope
19 | }
20 |
21 | func -(lhs: DispatchTime, rhs: DispatchTime) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTime' in scope
22 | let l = Int(lhs.rawValue)
23 | let r = Int(rhs.rawValue)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:17:15: error: cannot find 'DispatchTime' in scope
15 |
16 | func >=(lhs: DispatchTimeInterval, rhs: DispatchTimeInterval) -> Bool {
17 | let now = DispatchTime.now()
| `- error: cannot find 'DispatchTime' in scope
18 | return now + lhs >= now + rhs
19 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:21:21: error: cannot find type 'DispatchQueue' in scope
19 |
20 | private enum _Queue {
21 | case _queue(DispatchQueue)
| `- error: cannot find type 'DispatchQueue' in scope
22 | case _current
23 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:69:34: error: cannot find 'DispatchSpecificKey' in scope
67 |
68 | fileprivate enum Key {
69 | static let threadLabel = DispatchSpecificKey<String>()
| `- error: cannot find 'DispatchSpecificKey' in scope
70 | }
71 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:75:20: error: cannot find type 'DispatchQueue' in scope
73 |
74 | // MARK: - helpers
75 | internal extension DispatchQueue {
| `- error: cannot find type 'DispatchQueue' in scope
76 | var queue: Queue {
77 | .queue(self)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:81:18: error: cannot find type 'DispatchQueue' in scope
79 | }
80 |
81 | public extension DispatchQueue {
| `- error: cannot find type 'DispatchQueue' in scope
82 | static var currentLabel: String {
83 | DispatchQueue.getSpecific(key: Queue.Key.threadLabel) ?? "unknown-\(Date().timeIntervalSince1970)"
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:10:15: error: cannot find 'DispatchQueue' in scope
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
10 | queue(DispatchQueue(label: label, qos: qos))
| `- error: cannot find 'DispatchQueue' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:10:9: error: instance member 'queue' cannot be used on type 'Queue'
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
10 | queue(DispatchQueue(label: label, qos: qos))
| `- error: instance member 'queue' cannot be used on type 'Queue'
11 | }
12 |
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:10:9: error: cannot call value of non-function type 'Queue._Queue'
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
10 | queue(DispatchQueue(label: label, qos: qos))
| `- error: cannot call value of non-function type 'Queue._Queue'
11 | }
12 |
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:31:20: error: cannot find 'DispatchQueue' in scope
29 | return queue.label
30 | case ._current:
31 | return DispatchQueue.currentLabel
| `- error: cannot find 'DispatchQueue' in scope
32 | }
33 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:57:16: error: cannot find 'DispatchQueue' in scope
55 | switch queue {
56 | case ._queue(let queue):
57 | if DispatchQueue.currentLabel == queue.label {
| `- error: cannot find 'DispatchQueue' in scope
58 | return try work()
59 | } else {
[141/164] Compiling BowLiteEffects IO+MonadDefer.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO+Async.swift:23:18: error: cannot find type 'DispatchQueue' in scope
21 | /// - Returns: A computation that defers the execution of the provided function.
22 | static func `defer`(
23 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
24 | _ f: @escaping () -> IO<Failure, Success>) -> IO<Failure, Success> {
25 | IO<Failure, Void>.lazy().continueOn(queue).flatMap(f)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO+Async.swift:34:18: error: cannot find type 'DispatchQueue' in scope
32 | /// - Returns: A computation that defers the execution of the provided function.
33 | static func later(
34 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
35 | _ f: @escaping () throws -> Success) -> IO<Failure, Success> {
36 | Self.defer(queue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:280:41: error: cannot find type 'DispatchQueue' in scope
278 | /// - Returns: Value produced after running the suspended side effects.
279 | /// - Throws: Error of type `Failure` that may happen during the evaluation of the side-effects. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
280 | public func unsafeRunSync(on queue: DispatchQueue = .main) throws -> Success {
| `- error: cannot find type 'DispatchQueue' in scope
281 | let either = self.unsafeRunSyncEither(on: queue)
282 | switch either {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:292:47: error: cannot find type 'DispatchQueue' in scope
290 | /// - Parameter queue: Dispatch queue used to execute the side effects. Defaults to the main queue.
291 | /// - Returns: An Either wrapping errors in the left side and values on the right side. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
292 | public func unsafeRunSyncEither(on queue: DispatchQueue = .main) -> Either<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
293 | self._unsafeRunSyncEither(on: .queue(queue)).run().0
294 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:4:32: error: cannot find type 'DispatchQueue' in scope
2 |
3 | internal struct Queue {
4 | static func queue(_ queue: DispatchQueue = .main) -> Queue {
| `- error: cannot find type 'DispatchQueue' in scope
5 | queue.setSpecific(key: Key.threadLabel, value: queue.label)
6 | return .init(queue: ._queue(queue))
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:9:43: error: cannot find type 'DispatchQoS' in scope
7 | }
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
| `- error: cannot find type 'DispatchQoS' in scope
10 | queue(DispatchQueue(label: label, qos: qos))
11 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:308:35: error: cannot find type 'DispatchQueue' in scope
306 | /// - Parameter queue: Dispatch queue used to execute the side effects. Defaults to the main queue.
307 | /// - Returns: An IO that either contains the value produced or an error. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
308 | public func attempt(on queue: DispatchQueue = .main) -> IO<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
309 | do {
310 | let result = try self.unsafeRunSync(on: queue)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:324:42: error: cannot find type 'DispatchQueue' in scope
322 | /// - queue: Dispatch queue used to execute the side effects. Defaults to the main queue.
323 | /// - callback: A callback function to receive the results of the evaluation. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
324 | public func unsafeRunAsync(on queue: DispatchQueue = .main, _ callback: @escaping Callback<Failure, Success> = { _ in }) {
| `- error: cannot find type 'DispatchQueue' in scope
325 | queue.async {
326 | callback(self.unsafeRunSyncEither(on: queue))
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:424:35: error: cannot find type 'DispatchTimeInterval' in scope
422 | /// - Parameter interval: Interval of time to sleep.
423 | /// - Returns: An IO that sleeps for the specified amount of time.
424 | static func sleep(_ interval: DispatchTimeInterval) -> IO<Failure, Void> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
425 | if let timeInterval = interval.toDouble() {
426 | return IO.invoke {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:585:35: error: cannot find type 'DispatchQueue' in scope
583 | let queue: DispatchQueue
584 |
585 | init(_ io: IO<E, A>, _ queue: DispatchQueue) {
| `- error: cannot find type 'DispatchQueue' in scope
586 | self.io = io
587 | self.queue = queue
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:583:16: error: cannot find type 'DispatchQueue' in scope
581 | internal class ContinueOn<E: Error, A>: IO<E, A> {
582 | let io: IO<E, A>
583 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
584 |
585 | init(_ io: IO<E, A>, _ queue: DispatchQueue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:889:30: error: cannot find type 'DispatchQueue' in scope
887 | /// - queue: A Dispatch Queue.
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
890 | ContinueOn(self, queue)
891 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:427:17: error: cannot find 'Thread' in scope
425 | if let timeInterval = interval.toDouble() {
426 | return IO.invoke {
427 | Thread.sleep(forTimeInterval: timeInterval)
| `- error: cannot find 'Thread' in scope
428 | }
429 | } else {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:440:13: error: cannot find 'Thread' in scope
438 | static func sleep(_ interval: TimeInterval) -> IO<Failure, Void> {
439 | IO.invoke {
440 | Thread.sleep(forTimeInterval: interval)
| `- error: cannot find 'Thread' in scope
441 | }
442 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:561:21: error: cannot find 'DispatchGroup' in scope
559 | override internal func _unsafeRunSyncEither(on queue: Queue = .queue()) -> Trampoline<(Either<E, A>, Queue)> {
560 | var result: Either<E, A>?
561 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
562 | group.enter()
563 | let callback: Callback<E, A> = { either in
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:642:21: error: cannot find 'DispatchGroup' in scope
640 | override func _unsafeRunSyncEither(on queue: Queue = .queue()) -> Trampoline<(Either<E, Either<A, B>>, Queue)> {
641 | let result = Atomic<Either<(Either<E, A>, Queue), (Either<E, B>, Queue)>?>(nil)
642 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
643 | let parQueue1: Queue = .queue(label: queue.label + "raceA", qos: queue.qos)
644 | let parQueue2: Queue = .queue(label: queue.label + "raceB", qos: queue.qos)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:35:14: error: cannot find type 'DispatchQoS' in scope
33 | }
34 |
35 | var qos: DispatchQoS {
| `- error: cannot find type 'DispatchQoS' in scope
36 | switch queue {
37 | case ._queue(let queue):
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:686:21: error: cannot find 'DispatchGroup' in scope
684 | var a: (Either<E, A>, Queue)?
685 | var b: (Either<E, B>, Queue)?
686 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
687 | let parQueue1: Queue = .queue(label: queue.label + "parMap1", qos: queue.qos)
688 | let parQueue2: Queue = .queue(label: queue.label + "parMap2", qos: queue.qos)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:728:21: error: cannot find 'DispatchGroup' in scope
726 | var b: (Either<E, B>, Queue)?
727 | var c: (Either<E, C>, Queue)?
728 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
729 | let parQueue1: Queue = .queue(label: queue.label + "parMap1", qos: queue.qos)
730 | let parQueue2: Queue = .queue(label: queue.label + "parMap2", qos: queue.qos)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:890:9: error: generic parameter 'E' could not be inferred
579 | }
580 |
581 | internal class ContinueOn<E: Error, A>: IO<E, A> {
| `- note: 'E' declared as parameter to type 'ContinueOn'
582 | let io: IO<E, A>
583 | let queue: DispatchQueue
:
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
890 | ContinueOn(self, queue)
| `- error: generic parameter 'E' could not be inferred
891 | }
892 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:890:9: error: generic parameter 'A' could not be inferred
579 | }
580 |
581 | internal class ContinueOn<E: Error, A>: IO<E, A> {
| `- note: 'A' declared as parameter to type 'ContinueOn'
582 | let io: IO<E, A>
583 | let queue: DispatchQueue
:
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
890 | ContinueOn(self, queue)
| |- error: generic parameter 'A' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
891 | }
892 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:3:11: error: cannot find type 'DispatchTimeInterval' in scope
1 | import Foundation
2 |
3 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
4 | func toDouble() -> Double? {
5 | switch self {
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:16:14: error: cannot find type 'DispatchTimeInterval' in scope
14 | }
15 |
16 | func >=(lhs: DispatchTimeInterval, rhs: DispatchTimeInterval) -> Bool {
| `- error: cannot find type 'DispatchTimeInterval' in scope
17 | let now = DispatchTime.now()
18 | return now + lhs >= now + rhs
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:16:41: error: cannot find type 'DispatchTimeInterval' in scope
14 | }
15 |
16 | func >=(lhs: DispatchTimeInterval, rhs: DispatchTimeInterval) -> Bool {
| `- error: cannot find type 'DispatchTimeInterval' in scope
17 | let now = DispatchTime.now()
18 | return now + lhs >= now + rhs
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:21:49: error: cannot find type 'DispatchTimeInterval' in scope
19 | }
20 |
21 | func -(lhs: DispatchTime, rhs: DispatchTime) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
22 | let l = Int(lhs.rawValue)
23 | let r = Int(rhs.rawValue)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:21:13: error: cannot find type 'DispatchTime' in scope
19 | }
20 |
21 | func -(lhs: DispatchTime, rhs: DispatchTime) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTime' in scope
22 | let l = Int(lhs.rawValue)
23 | let r = Int(rhs.rawValue)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:21:32: error: cannot find type 'DispatchTime' in scope
19 | }
20 |
21 | func -(lhs: DispatchTime, rhs: DispatchTime) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTime' in scope
22 | let l = Int(lhs.rawValue)
23 | let r = Int(rhs.rawValue)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:17:15: error: cannot find 'DispatchTime' in scope
15 |
16 | func >=(lhs: DispatchTimeInterval, rhs: DispatchTimeInterval) -> Bool {
17 | let now = DispatchTime.now()
| `- error: cannot find 'DispatchTime' in scope
18 | return now + lhs >= now + rhs
19 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:21:21: error: cannot find type 'DispatchQueue' in scope
19 |
20 | private enum _Queue {
21 | case _queue(DispatchQueue)
| `- error: cannot find type 'DispatchQueue' in scope
22 | case _current
23 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:69:34: error: cannot find 'DispatchSpecificKey' in scope
67 |
68 | fileprivate enum Key {
69 | static let threadLabel = DispatchSpecificKey<String>()
| `- error: cannot find 'DispatchSpecificKey' in scope
70 | }
71 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:75:20: error: cannot find type 'DispatchQueue' in scope
73 |
74 | // MARK: - helpers
75 | internal extension DispatchQueue {
| `- error: cannot find type 'DispatchQueue' in scope
76 | var queue: Queue {
77 | .queue(self)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:81:18: error: cannot find type 'DispatchQueue' in scope
79 | }
80 |
81 | public extension DispatchQueue {
| `- error: cannot find type 'DispatchQueue' in scope
82 | static var currentLabel: String {
83 | DispatchQueue.getSpecific(key: Queue.Key.threadLabel) ?? "unknown-\(Date().timeIntervalSince1970)"
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:10:15: error: cannot find 'DispatchQueue' in scope
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
10 | queue(DispatchQueue(label: label, qos: qos))
| `- error: cannot find 'DispatchQueue' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:10:9: error: instance member 'queue' cannot be used on type 'Queue'
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
10 | queue(DispatchQueue(label: label, qos: qos))
| `- error: instance member 'queue' cannot be used on type 'Queue'
11 | }
12 |
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:10:9: error: cannot call value of non-function type 'Queue._Queue'
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
10 | queue(DispatchQueue(label: label, qos: qos))
| `- error: cannot call value of non-function type 'Queue._Queue'
11 | }
12 |
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:31:20: error: cannot find 'DispatchQueue' in scope
29 | return queue.label
30 | case ._current:
31 | return DispatchQueue.currentLabel
| `- error: cannot find 'DispatchQueue' in scope
32 | }
33 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:57:16: error: cannot find 'DispatchQueue' in scope
55 | switch queue {
56 | case ._queue(let queue):
57 | if DispatchQueue.currentLabel == queue.label {
| `- error: cannot find 'DispatchQueue' in scope
58 | return try work()
59 | } else {
[142/164] Compiling BowLiteEffects IO.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO+Async.swift:23:18: error: cannot find type 'DispatchQueue' in scope
21 | /// - Returns: A computation that defers the execution of the provided function.
22 | static func `defer`(
23 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
24 | _ f: @escaping () -> IO<Failure, Success>) -> IO<Failure, Success> {
25 | IO<Failure, Void>.lazy().continueOn(queue).flatMap(f)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO+Async.swift:34:18: error: cannot find type 'DispatchQueue' in scope
32 | /// - Returns: A computation that defers the execution of the provided function.
33 | static func later(
34 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
35 | _ f: @escaping () throws -> Success) -> IO<Failure, Success> {
36 | Self.defer(queue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:280:41: error: cannot find type 'DispatchQueue' in scope
278 | /// - Returns: Value produced after running the suspended side effects.
279 | /// - Throws: Error of type `Failure` that may happen during the evaluation of the side-effects. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
280 | public func unsafeRunSync(on queue: DispatchQueue = .main) throws -> Success {
| `- error: cannot find type 'DispatchQueue' in scope
281 | let either = self.unsafeRunSyncEither(on: queue)
282 | switch either {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:292:47: error: cannot find type 'DispatchQueue' in scope
290 | /// - Parameter queue: Dispatch queue used to execute the side effects. Defaults to the main queue.
291 | /// - Returns: An Either wrapping errors in the left side and values on the right side. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
292 | public func unsafeRunSyncEither(on queue: DispatchQueue = .main) -> Either<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
293 | self._unsafeRunSyncEither(on: .queue(queue)).run().0
294 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:4:32: error: cannot find type 'DispatchQueue' in scope
2 |
3 | internal struct Queue {
4 | static func queue(_ queue: DispatchQueue = .main) -> Queue {
| `- error: cannot find type 'DispatchQueue' in scope
5 | queue.setSpecific(key: Key.threadLabel, value: queue.label)
6 | return .init(queue: ._queue(queue))
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:9:43: error: cannot find type 'DispatchQoS' in scope
7 | }
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
| `- error: cannot find type 'DispatchQoS' in scope
10 | queue(DispatchQueue(label: label, qos: qos))
11 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:308:35: error: cannot find type 'DispatchQueue' in scope
306 | /// - Parameter queue: Dispatch queue used to execute the side effects. Defaults to the main queue.
307 | /// - Returns: An IO that either contains the value produced or an error. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
308 | public func attempt(on queue: DispatchQueue = .main) -> IO<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
309 | do {
310 | let result = try self.unsafeRunSync(on: queue)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:324:42: error: cannot find type 'DispatchQueue' in scope
322 | /// - queue: Dispatch queue used to execute the side effects. Defaults to the main queue.
323 | /// - callback: A callback function to receive the results of the evaluation. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
324 | public func unsafeRunAsync(on queue: DispatchQueue = .main, _ callback: @escaping Callback<Failure, Success> = { _ in }) {
| `- error: cannot find type 'DispatchQueue' in scope
325 | queue.async {
326 | callback(self.unsafeRunSyncEither(on: queue))
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:424:35: error: cannot find type 'DispatchTimeInterval' in scope
422 | /// - Parameter interval: Interval of time to sleep.
423 | /// - Returns: An IO that sleeps for the specified amount of time.
424 | static func sleep(_ interval: DispatchTimeInterval) -> IO<Failure, Void> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
425 | if let timeInterval = interval.toDouble() {
426 | return IO.invoke {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:585:35: error: cannot find type 'DispatchQueue' in scope
583 | let queue: DispatchQueue
584 |
585 | init(_ io: IO<E, A>, _ queue: DispatchQueue) {
| `- error: cannot find type 'DispatchQueue' in scope
586 | self.io = io
587 | self.queue = queue
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:583:16: error: cannot find type 'DispatchQueue' in scope
581 | internal class ContinueOn<E: Error, A>: IO<E, A> {
582 | let io: IO<E, A>
583 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
584 |
585 | init(_ io: IO<E, A>, _ queue: DispatchQueue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:889:30: error: cannot find type 'DispatchQueue' in scope
887 | /// - queue: A Dispatch Queue.
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
890 | ContinueOn(self, queue)
891 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:427:17: error: cannot find 'Thread' in scope
425 | if let timeInterval = interval.toDouble() {
426 | return IO.invoke {
427 | Thread.sleep(forTimeInterval: timeInterval)
| `- error: cannot find 'Thread' in scope
428 | }
429 | } else {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:440:13: error: cannot find 'Thread' in scope
438 | static func sleep(_ interval: TimeInterval) -> IO<Failure, Void> {
439 | IO.invoke {
440 | Thread.sleep(forTimeInterval: interval)
| `- error: cannot find 'Thread' in scope
441 | }
442 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:561:21: error: cannot find 'DispatchGroup' in scope
559 | override internal func _unsafeRunSyncEither(on queue: Queue = .queue()) -> Trampoline<(Either<E, A>, Queue)> {
560 | var result: Either<E, A>?
561 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
562 | group.enter()
563 | let callback: Callback<E, A> = { either in
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:642:21: error: cannot find 'DispatchGroup' in scope
640 | override func _unsafeRunSyncEither(on queue: Queue = .queue()) -> Trampoline<(Either<E, Either<A, B>>, Queue)> {
641 | let result = Atomic<Either<(Either<E, A>, Queue), (Either<E, B>, Queue)>?>(nil)
642 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
643 | let parQueue1: Queue = .queue(label: queue.label + "raceA", qos: queue.qos)
644 | let parQueue2: Queue = .queue(label: queue.label + "raceB", qos: queue.qos)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:35:14: error: cannot find type 'DispatchQoS' in scope
33 | }
34 |
35 | var qos: DispatchQoS {
| `- error: cannot find type 'DispatchQoS' in scope
36 | switch queue {
37 | case ._queue(let queue):
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:686:21: error: cannot find 'DispatchGroup' in scope
684 | var a: (Either<E, A>, Queue)?
685 | var b: (Either<E, B>, Queue)?
686 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
687 | let parQueue1: Queue = .queue(label: queue.label + "parMap1", qos: queue.qos)
688 | let parQueue2: Queue = .queue(label: queue.label + "parMap2", qos: queue.qos)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:728:21: error: cannot find 'DispatchGroup' in scope
726 | var b: (Either<E, B>, Queue)?
727 | var c: (Either<E, C>, Queue)?
728 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
729 | let parQueue1: Queue = .queue(label: queue.label + "parMap1", qos: queue.qos)
730 | let parQueue2: Queue = .queue(label: queue.label + "parMap2", qos: queue.qos)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:890:9: error: generic parameter 'E' could not be inferred
579 | }
580 |
581 | internal class ContinueOn<E: Error, A>: IO<E, A> {
| `- note: 'E' declared as parameter to type 'ContinueOn'
582 | let io: IO<E, A>
583 | let queue: DispatchQueue
:
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
890 | ContinueOn(self, queue)
| `- error: generic parameter 'E' could not be inferred
891 | }
892 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:890:9: error: generic parameter 'A' could not be inferred
579 | }
580 |
581 | internal class ContinueOn<E: Error, A>: IO<E, A> {
| `- note: 'A' declared as parameter to type 'ContinueOn'
582 | let io: IO<E, A>
583 | let queue: DispatchQueue
:
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
890 | ContinueOn(self, queue)
| |- error: generic parameter 'A' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
891 | }
892 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:3:11: error: cannot find type 'DispatchTimeInterval' in scope
1 | import Foundation
2 |
3 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
4 | func toDouble() -> Double? {
5 | switch self {
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:16:14: error: cannot find type 'DispatchTimeInterval' in scope
14 | }
15 |
16 | func >=(lhs: DispatchTimeInterval, rhs: DispatchTimeInterval) -> Bool {
| `- error: cannot find type 'DispatchTimeInterval' in scope
17 | let now = DispatchTime.now()
18 | return now + lhs >= now + rhs
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:16:41: error: cannot find type 'DispatchTimeInterval' in scope
14 | }
15 |
16 | func >=(lhs: DispatchTimeInterval, rhs: DispatchTimeInterval) -> Bool {
| `- error: cannot find type 'DispatchTimeInterval' in scope
17 | let now = DispatchTime.now()
18 | return now + lhs >= now + rhs
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:21:49: error: cannot find type 'DispatchTimeInterval' in scope
19 | }
20 |
21 | func -(lhs: DispatchTime, rhs: DispatchTime) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
22 | let l = Int(lhs.rawValue)
23 | let r = Int(rhs.rawValue)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:21:13: error: cannot find type 'DispatchTime' in scope
19 | }
20 |
21 | func -(lhs: DispatchTime, rhs: DispatchTime) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTime' in scope
22 | let l = Int(lhs.rawValue)
23 | let r = Int(rhs.rawValue)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:21:32: error: cannot find type 'DispatchTime' in scope
19 | }
20 |
21 | func -(lhs: DispatchTime, rhs: DispatchTime) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTime' in scope
22 | let l = Int(lhs.rawValue)
23 | let r = Int(rhs.rawValue)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:17:15: error: cannot find 'DispatchTime' in scope
15 |
16 | func >=(lhs: DispatchTimeInterval, rhs: DispatchTimeInterval) -> Bool {
17 | let now = DispatchTime.now()
| `- error: cannot find 'DispatchTime' in scope
18 | return now + lhs >= now + rhs
19 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:21:21: error: cannot find type 'DispatchQueue' in scope
19 |
20 | private enum _Queue {
21 | case _queue(DispatchQueue)
| `- error: cannot find type 'DispatchQueue' in scope
22 | case _current
23 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:69:34: error: cannot find 'DispatchSpecificKey' in scope
67 |
68 | fileprivate enum Key {
69 | static let threadLabel = DispatchSpecificKey<String>()
| `- error: cannot find 'DispatchSpecificKey' in scope
70 | }
71 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:75:20: error: cannot find type 'DispatchQueue' in scope
73 |
74 | // MARK: - helpers
75 | internal extension DispatchQueue {
| `- error: cannot find type 'DispatchQueue' in scope
76 | var queue: Queue {
77 | .queue(self)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:81:18: error: cannot find type 'DispatchQueue' in scope
79 | }
80 |
81 | public extension DispatchQueue {
| `- error: cannot find type 'DispatchQueue' in scope
82 | static var currentLabel: String {
83 | DispatchQueue.getSpecific(key: Queue.Key.threadLabel) ?? "unknown-\(Date().timeIntervalSince1970)"
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:10:15: error: cannot find 'DispatchQueue' in scope
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
10 | queue(DispatchQueue(label: label, qos: qos))
| `- error: cannot find 'DispatchQueue' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:10:9: error: instance member 'queue' cannot be used on type 'Queue'
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
10 | queue(DispatchQueue(label: label, qos: qos))
| `- error: instance member 'queue' cannot be used on type 'Queue'
11 | }
12 |
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:10:9: error: cannot call value of non-function type 'Queue._Queue'
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
10 | queue(DispatchQueue(label: label, qos: qos))
| `- error: cannot call value of non-function type 'Queue._Queue'
11 | }
12 |
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:31:20: error: cannot find 'DispatchQueue' in scope
29 | return queue.label
30 | case ._current:
31 | return DispatchQueue.currentLabel
| `- error: cannot find 'DispatchQueue' in scope
32 | }
33 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:57:16: error: cannot find 'DispatchQueue' in scope
55 | switch queue {
56 | case ._queue(let queue):
57 | if DispatchQueue.currentLabel == queue.label {
| `- error: cannot find 'DispatchQueue' in scope
58 | return try work()
59 | } else {
[143/164] Compiling BowLiteEffects DispatchTimeInterval+Extensions.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO+Async.swift:23:18: error: cannot find type 'DispatchQueue' in scope
21 | /// - Returns: A computation that defers the execution of the provided function.
22 | static func `defer`(
23 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
24 | _ f: @escaping () -> IO<Failure, Success>) -> IO<Failure, Success> {
25 | IO<Failure, Void>.lazy().continueOn(queue).flatMap(f)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO+Async.swift:34:18: error: cannot find type 'DispatchQueue' in scope
32 | /// - Returns: A computation that defers the execution of the provided function.
33 | static func later(
34 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
35 | _ f: @escaping () throws -> Success) -> IO<Failure, Success> {
36 | Self.defer(queue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:280:41: error: cannot find type 'DispatchQueue' in scope
278 | /// - Returns: Value produced after running the suspended side effects.
279 | /// - Throws: Error of type `Failure` that may happen during the evaluation of the side-effects. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
280 | public func unsafeRunSync(on queue: DispatchQueue = .main) throws -> Success {
| `- error: cannot find type 'DispatchQueue' in scope
281 | let either = self.unsafeRunSyncEither(on: queue)
282 | switch either {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:292:47: error: cannot find type 'DispatchQueue' in scope
290 | /// - Parameter queue: Dispatch queue used to execute the side effects. Defaults to the main queue.
291 | /// - Returns: An Either wrapping errors in the left side and values on the right side. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
292 | public func unsafeRunSyncEither(on queue: DispatchQueue = .main) -> Either<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
293 | self._unsafeRunSyncEither(on: .queue(queue)).run().0
294 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:4:32: error: cannot find type 'DispatchQueue' in scope
2 |
3 | internal struct Queue {
4 | static func queue(_ queue: DispatchQueue = .main) -> Queue {
| `- error: cannot find type 'DispatchQueue' in scope
5 | queue.setSpecific(key: Key.threadLabel, value: queue.label)
6 | return .init(queue: ._queue(queue))
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:9:43: error: cannot find type 'DispatchQoS' in scope
7 | }
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
| `- error: cannot find type 'DispatchQoS' in scope
10 | queue(DispatchQueue(label: label, qos: qos))
11 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:308:35: error: cannot find type 'DispatchQueue' in scope
306 | /// - Parameter queue: Dispatch queue used to execute the side effects. Defaults to the main queue.
307 | /// - Returns: An IO that either contains the value produced or an error. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
308 | public func attempt(on queue: DispatchQueue = .main) -> IO<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
309 | do {
310 | let result = try self.unsafeRunSync(on: queue)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:324:42: error: cannot find type 'DispatchQueue' in scope
322 | /// - queue: Dispatch queue used to execute the side effects. Defaults to the main queue.
323 | /// - callback: A callback function to receive the results of the evaluation. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
324 | public func unsafeRunAsync(on queue: DispatchQueue = .main, _ callback: @escaping Callback<Failure, Success> = { _ in }) {
| `- error: cannot find type 'DispatchQueue' in scope
325 | queue.async {
326 | callback(self.unsafeRunSyncEither(on: queue))
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:424:35: error: cannot find type 'DispatchTimeInterval' in scope
422 | /// - Parameter interval: Interval of time to sleep.
423 | /// - Returns: An IO that sleeps for the specified amount of time.
424 | static func sleep(_ interval: DispatchTimeInterval) -> IO<Failure, Void> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
425 | if let timeInterval = interval.toDouble() {
426 | return IO.invoke {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:585:35: error: cannot find type 'DispatchQueue' in scope
583 | let queue: DispatchQueue
584 |
585 | init(_ io: IO<E, A>, _ queue: DispatchQueue) {
| `- error: cannot find type 'DispatchQueue' in scope
586 | self.io = io
587 | self.queue = queue
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:583:16: error: cannot find type 'DispatchQueue' in scope
581 | internal class ContinueOn<E: Error, A>: IO<E, A> {
582 | let io: IO<E, A>
583 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
584 |
585 | init(_ io: IO<E, A>, _ queue: DispatchQueue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:889:30: error: cannot find type 'DispatchQueue' in scope
887 | /// - queue: A Dispatch Queue.
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
890 | ContinueOn(self, queue)
891 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:427:17: error: cannot find 'Thread' in scope
425 | if let timeInterval = interval.toDouble() {
426 | return IO.invoke {
427 | Thread.sleep(forTimeInterval: timeInterval)
| `- error: cannot find 'Thread' in scope
428 | }
429 | } else {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:440:13: error: cannot find 'Thread' in scope
438 | static func sleep(_ interval: TimeInterval) -> IO<Failure, Void> {
439 | IO.invoke {
440 | Thread.sleep(forTimeInterval: interval)
| `- error: cannot find 'Thread' in scope
441 | }
442 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:561:21: error: cannot find 'DispatchGroup' in scope
559 | override internal func _unsafeRunSyncEither(on queue: Queue = .queue()) -> Trampoline<(Either<E, A>, Queue)> {
560 | var result: Either<E, A>?
561 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
562 | group.enter()
563 | let callback: Callback<E, A> = { either in
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:642:21: error: cannot find 'DispatchGroup' in scope
640 | override func _unsafeRunSyncEither(on queue: Queue = .queue()) -> Trampoline<(Either<E, Either<A, B>>, Queue)> {
641 | let result = Atomic<Either<(Either<E, A>, Queue), (Either<E, B>, Queue)>?>(nil)
642 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
643 | let parQueue1: Queue = .queue(label: queue.label + "raceA", qos: queue.qos)
644 | let parQueue2: Queue = .queue(label: queue.label + "raceB", qos: queue.qos)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:35:14: error: cannot find type 'DispatchQoS' in scope
33 | }
34 |
35 | var qos: DispatchQoS {
| `- error: cannot find type 'DispatchQoS' in scope
36 | switch queue {
37 | case ._queue(let queue):
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:686:21: error: cannot find 'DispatchGroup' in scope
684 | var a: (Either<E, A>, Queue)?
685 | var b: (Either<E, B>, Queue)?
686 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
687 | let parQueue1: Queue = .queue(label: queue.label + "parMap1", qos: queue.qos)
688 | let parQueue2: Queue = .queue(label: queue.label + "parMap2", qos: queue.qos)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:728:21: error: cannot find 'DispatchGroup' in scope
726 | var b: (Either<E, B>, Queue)?
727 | var c: (Either<E, C>, Queue)?
728 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
729 | let parQueue1: Queue = .queue(label: queue.label + "parMap1", qos: queue.qos)
730 | let parQueue2: Queue = .queue(label: queue.label + "parMap2", qos: queue.qos)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:890:9: error: generic parameter 'E' could not be inferred
579 | }
580 |
581 | internal class ContinueOn<E: Error, A>: IO<E, A> {
| `- note: 'E' declared as parameter to type 'ContinueOn'
582 | let io: IO<E, A>
583 | let queue: DispatchQueue
:
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
890 | ContinueOn(self, queue)
| `- error: generic parameter 'E' could not be inferred
891 | }
892 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:890:9: error: generic parameter 'A' could not be inferred
579 | }
580 |
581 | internal class ContinueOn<E: Error, A>: IO<E, A> {
| `- note: 'A' declared as parameter to type 'ContinueOn'
582 | let io: IO<E, A>
583 | let queue: DispatchQueue
:
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
890 | ContinueOn(self, queue)
| |- error: generic parameter 'A' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
891 | }
892 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:3:11: error: cannot find type 'DispatchTimeInterval' in scope
1 | import Foundation
2 |
3 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
4 | func toDouble() -> Double? {
5 | switch self {
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:16:14: error: cannot find type 'DispatchTimeInterval' in scope
14 | }
15 |
16 | func >=(lhs: DispatchTimeInterval, rhs: DispatchTimeInterval) -> Bool {
| `- error: cannot find type 'DispatchTimeInterval' in scope
17 | let now = DispatchTime.now()
18 | return now + lhs >= now + rhs
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:16:41: error: cannot find type 'DispatchTimeInterval' in scope
14 | }
15 |
16 | func >=(lhs: DispatchTimeInterval, rhs: DispatchTimeInterval) -> Bool {
| `- error: cannot find type 'DispatchTimeInterval' in scope
17 | let now = DispatchTime.now()
18 | return now + lhs >= now + rhs
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:21:49: error: cannot find type 'DispatchTimeInterval' in scope
19 | }
20 |
21 | func -(lhs: DispatchTime, rhs: DispatchTime) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
22 | let l = Int(lhs.rawValue)
23 | let r = Int(rhs.rawValue)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:21:13: error: cannot find type 'DispatchTime' in scope
19 | }
20 |
21 | func -(lhs: DispatchTime, rhs: DispatchTime) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTime' in scope
22 | let l = Int(lhs.rawValue)
23 | let r = Int(rhs.rawValue)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:21:32: error: cannot find type 'DispatchTime' in scope
19 | }
20 |
21 | func -(lhs: DispatchTime, rhs: DispatchTime) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTime' in scope
22 | let l = Int(lhs.rawValue)
23 | let r = Int(rhs.rawValue)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:17:15: error: cannot find 'DispatchTime' in scope
15 |
16 | func >=(lhs: DispatchTimeInterval, rhs: DispatchTimeInterval) -> Bool {
17 | let now = DispatchTime.now()
| `- error: cannot find 'DispatchTime' in scope
18 | return now + lhs >= now + rhs
19 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:21:21: error: cannot find type 'DispatchQueue' in scope
19 |
20 | private enum _Queue {
21 | case _queue(DispatchQueue)
| `- error: cannot find type 'DispatchQueue' in scope
22 | case _current
23 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:69:34: error: cannot find 'DispatchSpecificKey' in scope
67 |
68 | fileprivate enum Key {
69 | static let threadLabel = DispatchSpecificKey<String>()
| `- error: cannot find 'DispatchSpecificKey' in scope
70 | }
71 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:75:20: error: cannot find type 'DispatchQueue' in scope
73 |
74 | // MARK: - helpers
75 | internal extension DispatchQueue {
| `- error: cannot find type 'DispatchQueue' in scope
76 | var queue: Queue {
77 | .queue(self)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:81:18: error: cannot find type 'DispatchQueue' in scope
79 | }
80 |
81 | public extension DispatchQueue {
| `- error: cannot find type 'DispatchQueue' in scope
82 | static var currentLabel: String {
83 | DispatchQueue.getSpecific(key: Queue.Key.threadLabel) ?? "unknown-\(Date().timeIntervalSince1970)"
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:10:15: error: cannot find 'DispatchQueue' in scope
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
10 | queue(DispatchQueue(label: label, qos: qos))
| `- error: cannot find 'DispatchQueue' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:10:9: error: instance member 'queue' cannot be used on type 'Queue'
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
10 | queue(DispatchQueue(label: label, qos: qos))
| `- error: instance member 'queue' cannot be used on type 'Queue'
11 | }
12 |
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:10:9: error: cannot call value of non-function type 'Queue._Queue'
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
10 | queue(DispatchQueue(label: label, qos: qos))
| `- error: cannot call value of non-function type 'Queue._Queue'
11 | }
12 |
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:31:20: error: cannot find 'DispatchQueue' in scope
29 | return queue.label
30 | case ._current:
31 | return DispatchQueue.currentLabel
| `- error: cannot find 'DispatchQueue' in scope
32 | }
33 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:57:16: error: cannot find 'DispatchQueue' in scope
55 | switch queue {
56 | case ._queue(let queue):
57 | if DispatchQueue.currentLabel == queue.label {
| `- error: cannot find 'DispatchQueue' in scope
58 | return try work()
59 | } else {
[144/164] Compiling BowLiteEffects Queue.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO+Async.swift:23:18: error: cannot find type 'DispatchQueue' in scope
21 | /// - Returns: A computation that defers the execution of the provided function.
22 | static func `defer`(
23 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
24 | _ f: @escaping () -> IO<Failure, Success>) -> IO<Failure, Success> {
25 | IO<Failure, Void>.lazy().continueOn(queue).flatMap(f)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO+Async.swift:34:18: error: cannot find type 'DispatchQueue' in scope
32 | /// - Returns: A computation that defers the execution of the provided function.
33 | static func later(
34 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
35 | _ f: @escaping () throws -> Success) -> IO<Failure, Success> {
36 | Self.defer(queue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:280:41: error: cannot find type 'DispatchQueue' in scope
278 | /// - Returns: Value produced after running the suspended side effects.
279 | /// - Throws: Error of type `Failure` that may happen during the evaluation of the side-effects. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
280 | public func unsafeRunSync(on queue: DispatchQueue = .main) throws -> Success {
| `- error: cannot find type 'DispatchQueue' in scope
281 | let either = self.unsafeRunSyncEither(on: queue)
282 | switch either {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:292:47: error: cannot find type 'DispatchQueue' in scope
290 | /// - Parameter queue: Dispatch queue used to execute the side effects. Defaults to the main queue.
291 | /// - Returns: An Either wrapping errors in the left side and values on the right side. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
292 | public func unsafeRunSyncEither(on queue: DispatchQueue = .main) -> Either<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
293 | self._unsafeRunSyncEither(on: .queue(queue)).run().0
294 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:4:32: error: cannot find type 'DispatchQueue' in scope
2 |
3 | internal struct Queue {
4 | static func queue(_ queue: DispatchQueue = .main) -> Queue {
| `- error: cannot find type 'DispatchQueue' in scope
5 | queue.setSpecific(key: Key.threadLabel, value: queue.label)
6 | return .init(queue: ._queue(queue))
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:9:43: error: cannot find type 'DispatchQoS' in scope
7 | }
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
| `- error: cannot find type 'DispatchQoS' in scope
10 | queue(DispatchQueue(label: label, qos: qos))
11 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:308:35: error: cannot find type 'DispatchQueue' in scope
306 | /// - Parameter queue: Dispatch queue used to execute the side effects. Defaults to the main queue.
307 | /// - Returns: An IO that either contains the value produced or an error. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
308 | public func attempt(on queue: DispatchQueue = .main) -> IO<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
309 | do {
310 | let result = try self.unsafeRunSync(on: queue)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:324:42: error: cannot find type 'DispatchQueue' in scope
322 | /// - queue: Dispatch queue used to execute the side effects. Defaults to the main queue.
323 | /// - callback: A callback function to receive the results of the evaluation. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
324 | public func unsafeRunAsync(on queue: DispatchQueue = .main, _ callback: @escaping Callback<Failure, Success> = { _ in }) {
| `- error: cannot find type 'DispatchQueue' in scope
325 | queue.async {
326 | callback(self.unsafeRunSyncEither(on: queue))
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:424:35: error: cannot find type 'DispatchTimeInterval' in scope
422 | /// - Parameter interval: Interval of time to sleep.
423 | /// - Returns: An IO that sleeps for the specified amount of time.
424 | static func sleep(_ interval: DispatchTimeInterval) -> IO<Failure, Void> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
425 | if let timeInterval = interval.toDouble() {
426 | return IO.invoke {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:585:35: error: cannot find type 'DispatchQueue' in scope
583 | let queue: DispatchQueue
584 |
585 | init(_ io: IO<E, A>, _ queue: DispatchQueue) {
| `- error: cannot find type 'DispatchQueue' in scope
586 | self.io = io
587 | self.queue = queue
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:583:16: error: cannot find type 'DispatchQueue' in scope
581 | internal class ContinueOn<E: Error, A>: IO<E, A> {
582 | let io: IO<E, A>
583 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
584 |
585 | init(_ io: IO<E, A>, _ queue: DispatchQueue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:889:30: error: cannot find type 'DispatchQueue' in scope
887 | /// - queue: A Dispatch Queue.
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
890 | ContinueOn(self, queue)
891 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:427:17: error: cannot find 'Thread' in scope
425 | if let timeInterval = interval.toDouble() {
426 | return IO.invoke {
427 | Thread.sleep(forTimeInterval: timeInterval)
| `- error: cannot find 'Thread' in scope
428 | }
429 | } else {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:440:13: error: cannot find 'Thread' in scope
438 | static func sleep(_ interval: TimeInterval) -> IO<Failure, Void> {
439 | IO.invoke {
440 | Thread.sleep(forTimeInterval: interval)
| `- error: cannot find 'Thread' in scope
441 | }
442 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:561:21: error: cannot find 'DispatchGroup' in scope
559 | override internal func _unsafeRunSyncEither(on queue: Queue = .queue()) -> Trampoline<(Either<E, A>, Queue)> {
560 | var result: Either<E, A>?
561 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
562 | group.enter()
563 | let callback: Callback<E, A> = { either in
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:642:21: error: cannot find 'DispatchGroup' in scope
640 | override func _unsafeRunSyncEither(on queue: Queue = .queue()) -> Trampoline<(Either<E, Either<A, B>>, Queue)> {
641 | let result = Atomic<Either<(Either<E, A>, Queue), (Either<E, B>, Queue)>?>(nil)
642 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
643 | let parQueue1: Queue = .queue(label: queue.label + "raceA", qos: queue.qos)
644 | let parQueue2: Queue = .queue(label: queue.label + "raceB", qos: queue.qos)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:35:14: error: cannot find type 'DispatchQoS' in scope
33 | }
34 |
35 | var qos: DispatchQoS {
| `- error: cannot find type 'DispatchQoS' in scope
36 | switch queue {
37 | case ._queue(let queue):
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:686:21: error: cannot find 'DispatchGroup' in scope
684 | var a: (Either<E, A>, Queue)?
685 | var b: (Either<E, B>, Queue)?
686 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
687 | let parQueue1: Queue = .queue(label: queue.label + "parMap1", qos: queue.qos)
688 | let parQueue2: Queue = .queue(label: queue.label + "parMap2", qos: queue.qos)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:728:21: error: cannot find 'DispatchGroup' in scope
726 | var b: (Either<E, B>, Queue)?
727 | var c: (Either<E, C>, Queue)?
728 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
729 | let parQueue1: Queue = .queue(label: queue.label + "parMap1", qos: queue.qos)
730 | let parQueue2: Queue = .queue(label: queue.label + "parMap2", qos: queue.qos)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:890:9: error: generic parameter 'E' could not be inferred
579 | }
580 |
581 | internal class ContinueOn<E: Error, A>: IO<E, A> {
| `- note: 'E' declared as parameter to type 'ContinueOn'
582 | let io: IO<E, A>
583 | let queue: DispatchQueue
:
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
890 | ContinueOn(self, queue)
| `- error: generic parameter 'E' could not be inferred
891 | }
892 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:890:9: error: generic parameter 'A' could not be inferred
579 | }
580 |
581 | internal class ContinueOn<E: Error, A>: IO<E, A> {
| `- note: 'A' declared as parameter to type 'ContinueOn'
582 | let io: IO<E, A>
583 | let queue: DispatchQueue
:
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
890 | ContinueOn(self, queue)
| |- error: generic parameter 'A' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
891 | }
892 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:3:11: error: cannot find type 'DispatchTimeInterval' in scope
1 | import Foundation
2 |
3 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
4 | func toDouble() -> Double? {
5 | switch self {
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:16:14: error: cannot find type 'DispatchTimeInterval' in scope
14 | }
15 |
16 | func >=(lhs: DispatchTimeInterval, rhs: DispatchTimeInterval) -> Bool {
| `- error: cannot find type 'DispatchTimeInterval' in scope
17 | let now = DispatchTime.now()
18 | return now + lhs >= now + rhs
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:16:41: error: cannot find type 'DispatchTimeInterval' in scope
14 | }
15 |
16 | func >=(lhs: DispatchTimeInterval, rhs: DispatchTimeInterval) -> Bool {
| `- error: cannot find type 'DispatchTimeInterval' in scope
17 | let now = DispatchTime.now()
18 | return now + lhs >= now + rhs
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:21:49: error: cannot find type 'DispatchTimeInterval' in scope
19 | }
20 |
21 | func -(lhs: DispatchTime, rhs: DispatchTime) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
22 | let l = Int(lhs.rawValue)
23 | let r = Int(rhs.rawValue)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:21:13: error: cannot find type 'DispatchTime' in scope
19 | }
20 |
21 | func -(lhs: DispatchTime, rhs: DispatchTime) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTime' in scope
22 | let l = Int(lhs.rawValue)
23 | let r = Int(rhs.rawValue)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:21:32: error: cannot find type 'DispatchTime' in scope
19 | }
20 |
21 | func -(lhs: DispatchTime, rhs: DispatchTime) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTime' in scope
22 | let l = Int(lhs.rawValue)
23 | let r = Int(rhs.rawValue)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:17:15: error: cannot find 'DispatchTime' in scope
15 |
16 | func >=(lhs: DispatchTimeInterval, rhs: DispatchTimeInterval) -> Bool {
17 | let now = DispatchTime.now()
| `- error: cannot find 'DispatchTime' in scope
18 | return now + lhs >= now + rhs
19 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:21:21: error: cannot find type 'DispatchQueue' in scope
19 |
20 | private enum _Queue {
21 | case _queue(DispatchQueue)
| `- error: cannot find type 'DispatchQueue' in scope
22 | case _current
23 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:69:34: error: cannot find 'DispatchSpecificKey' in scope
67 |
68 | fileprivate enum Key {
69 | static let threadLabel = DispatchSpecificKey<String>()
| `- error: cannot find 'DispatchSpecificKey' in scope
70 | }
71 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:75:20: error: cannot find type 'DispatchQueue' in scope
73 |
74 | // MARK: - helpers
75 | internal extension DispatchQueue {
| `- error: cannot find type 'DispatchQueue' in scope
76 | var queue: Queue {
77 | .queue(self)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:81:18: error: cannot find type 'DispatchQueue' in scope
79 | }
80 |
81 | public extension DispatchQueue {
| `- error: cannot find type 'DispatchQueue' in scope
82 | static var currentLabel: String {
83 | DispatchQueue.getSpecific(key: Queue.Key.threadLabel) ?? "unknown-\(Date().timeIntervalSince1970)"
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:10:15: error: cannot find 'DispatchQueue' in scope
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
10 | queue(DispatchQueue(label: label, qos: qos))
| `- error: cannot find 'DispatchQueue' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:10:9: error: instance member 'queue' cannot be used on type 'Queue'
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
10 | queue(DispatchQueue(label: label, qos: qos))
| `- error: instance member 'queue' cannot be used on type 'Queue'
11 | }
12 |
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:10:9: error: cannot call value of non-function type 'Queue._Queue'
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
10 | queue(DispatchQueue(label: label, qos: qos))
| `- error: cannot call value of non-function type 'Queue._Queue'
11 | }
12 |
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:31:20: error: cannot find 'DispatchQueue' in scope
29 | return queue.label
30 | case ._current:
31 | return DispatchQueue.currentLabel
| `- error: cannot find 'DispatchQueue' in scope
32 | }
33 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:57:16: error: cannot find 'DispatchQueue' in scope
55 | switch queue {
56 | case ._queue(let queue):
57 | if DispatchQueue.currentLabel == queue.label {
| `- error: cannot find 'DispatchQueue' in scope
58 | return try work()
59 | } else {
[145/164] Compiling BowLiteEffects Kleisli+IO.swift
[146/164] Compiling BowLiteEffects BindingOperator.swift
[147/164] Compiling BowLiteEffects EnvIOBindingExpression.swift
[148/164] Compiling BowLiteEffects EnvIOBindingOperator.swift
[149/164] Compiling BowLiteEffects EnvIOBoundVar.swift
[150/164] Compiling BowLiteEffects EnvIO+ApplicativeError.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:23:18: error: cannot find type 'DispatchQueue' in scope
21 | /// - Returns: A computation that defers the execution of the provided function.
22 | static func `defer`(
23 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
24 | _ f: @escaping () -> EnvIO<Dependencies, Failure, Success>) -> EnvIO<Dependencies, Failure, Success> {
25 | EnvIO<Dependencies, Failure, Void>.lazy().continueOn(queue).flatMap(f)
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:34:18: error: cannot find type 'DispatchQueue' in scope
32 | /// - Returns: A computation that defers the execution of the provided function.
33 | static func later(
34 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
35 | _ f: @escaping () throws -> Success) -> EnvIO<Dependencies, Failure, Success> {
36 | Self.defer(queue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:51:18: error: cannot find type 'DispatchQueue' in scope
49 | /// - Returns: A computation that defers the execution of the provided value.
50 | static func delayOrRaise(
51 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
52 | _ f: @escaping () -> Either<Failure, Success>
53 | ) -> EnvIO<Dependencies, Failure, Success> {
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO.swift:523:30: error: cannot find type 'DispatchQueue' in scope
521 | /// - queue: A Dispatch Queue.
522 | /// - Returns: A computation that will run on the provided queue.
523 | func continueOn(_ queue: DispatchQueue) -> EnvIO<Dependencies, Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
524 | EnvIO { dependencies in
525 | self.run(dependencies).continueOn(queue)
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:36:27: error: extra trailing closure passed in call
34 | _ queue: DispatchQueue,
35 | _ f: @escaping () throws -> Success) -> EnvIO<Dependencies, Failure, Success> {
36 | Self.defer(queue) {
| `- error: extra trailing closure passed in call
37 | do {
38 | return pure(try f())
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:54:27: error: extra trailing closure passed in call
52 | _ f: @escaping () -> Either<Failure, Success>
53 | ) -> EnvIO<Dependencies, Failure, Success> {
54 | Self.defer(queue) { f().fold(Self.raiseError, Self.pure) }
| `- error: extra trailing closure passed in call
55 | }
56 |
[151/164] Compiling BowLiteEffects EnvIO+Async.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:23:18: error: cannot find type 'DispatchQueue' in scope
21 | /// - Returns: A computation that defers the execution of the provided function.
22 | static func `defer`(
23 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
24 | _ f: @escaping () -> EnvIO<Dependencies, Failure, Success>) -> EnvIO<Dependencies, Failure, Success> {
25 | EnvIO<Dependencies, Failure, Void>.lazy().continueOn(queue).flatMap(f)
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:34:18: error: cannot find type 'DispatchQueue' in scope
32 | /// - Returns: A computation that defers the execution of the provided function.
33 | static func later(
34 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
35 | _ f: @escaping () throws -> Success) -> EnvIO<Dependencies, Failure, Success> {
36 | Self.defer(queue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:51:18: error: cannot find type 'DispatchQueue' in scope
49 | /// - Returns: A computation that defers the execution of the provided value.
50 | static func delayOrRaise(
51 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
52 | _ f: @escaping () -> Either<Failure, Success>
53 | ) -> EnvIO<Dependencies, Failure, Success> {
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO.swift:523:30: error: cannot find type 'DispatchQueue' in scope
521 | /// - queue: A Dispatch Queue.
522 | /// - Returns: A computation that will run on the provided queue.
523 | func continueOn(_ queue: DispatchQueue) -> EnvIO<Dependencies, Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
524 | EnvIO { dependencies in
525 | self.run(dependencies).continueOn(queue)
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:36:27: error: extra trailing closure passed in call
34 | _ queue: DispatchQueue,
35 | _ f: @escaping () throws -> Success) -> EnvIO<Dependencies, Failure, Success> {
36 | Self.defer(queue) {
| `- error: extra trailing closure passed in call
37 | do {
38 | return pure(try f())
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:54:27: error: extra trailing closure passed in call
52 | _ f: @escaping () -> Either<Failure, Success>
53 | ) -> EnvIO<Dependencies, Failure, Success> {
54 | Self.defer(queue) { f().fold(Self.raiseError, Self.pure) }
| `- error: extra trailing closure passed in call
55 | }
56 |
[152/164] Compiling BowLiteEffects EnvIO+Concurrent.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:23:18: error: cannot find type 'DispatchQueue' in scope
21 | /// - Returns: A computation that defers the execution of the provided function.
22 | static func `defer`(
23 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
24 | _ f: @escaping () -> EnvIO<Dependencies, Failure, Success>) -> EnvIO<Dependencies, Failure, Success> {
25 | EnvIO<Dependencies, Failure, Void>.lazy().continueOn(queue).flatMap(f)
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:34:18: error: cannot find type 'DispatchQueue' in scope
32 | /// - Returns: A computation that defers the execution of the provided function.
33 | static func later(
34 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
35 | _ f: @escaping () throws -> Success) -> EnvIO<Dependencies, Failure, Success> {
36 | Self.defer(queue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:51:18: error: cannot find type 'DispatchQueue' in scope
49 | /// - Returns: A computation that defers the execution of the provided value.
50 | static func delayOrRaise(
51 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
52 | _ f: @escaping () -> Either<Failure, Success>
53 | ) -> EnvIO<Dependencies, Failure, Success> {
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO.swift:523:30: error: cannot find type 'DispatchQueue' in scope
521 | /// - queue: A Dispatch Queue.
522 | /// - Returns: A computation that will run on the provided queue.
523 | func continueOn(_ queue: DispatchQueue) -> EnvIO<Dependencies, Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
524 | EnvIO { dependencies in
525 | self.run(dependencies).continueOn(queue)
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:36:27: error: extra trailing closure passed in call
34 | _ queue: DispatchQueue,
35 | _ f: @escaping () throws -> Success) -> EnvIO<Dependencies, Failure, Success> {
36 | Self.defer(queue) {
| `- error: extra trailing closure passed in call
37 | do {
38 | return pure(try f())
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:54:27: error: extra trailing closure passed in call
52 | _ f: @escaping () -> Either<Failure, Success>
53 | ) -> EnvIO<Dependencies, Failure, Success> {
54 | Self.defer(queue) { f().fold(Self.raiseError, Self.pure) }
| `- error: extra trailing closure passed in call
55 | }
56 |
[153/164] Compiling BowLiteEffects EnvIO+Functor.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:23:18: error: cannot find type 'DispatchQueue' in scope
21 | /// - Returns: A computation that defers the execution of the provided function.
22 | static func `defer`(
23 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
24 | _ f: @escaping () -> EnvIO<Dependencies, Failure, Success>) -> EnvIO<Dependencies, Failure, Success> {
25 | EnvIO<Dependencies, Failure, Void>.lazy().continueOn(queue).flatMap(f)
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:34:18: error: cannot find type 'DispatchQueue' in scope
32 | /// - Returns: A computation that defers the execution of the provided function.
33 | static func later(
34 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
35 | _ f: @escaping () throws -> Success) -> EnvIO<Dependencies, Failure, Success> {
36 | Self.defer(queue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:51:18: error: cannot find type 'DispatchQueue' in scope
49 | /// - Returns: A computation that defers the execution of the provided value.
50 | static func delayOrRaise(
51 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
52 | _ f: @escaping () -> Either<Failure, Success>
53 | ) -> EnvIO<Dependencies, Failure, Success> {
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO.swift:523:30: error: cannot find type 'DispatchQueue' in scope
521 | /// - queue: A Dispatch Queue.
522 | /// - Returns: A computation that will run on the provided queue.
523 | func continueOn(_ queue: DispatchQueue) -> EnvIO<Dependencies, Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
524 | EnvIO { dependencies in
525 | self.run(dependencies).continueOn(queue)
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:36:27: error: extra trailing closure passed in call
34 | _ queue: DispatchQueue,
35 | _ f: @escaping () throws -> Success) -> EnvIO<Dependencies, Failure, Success> {
36 | Self.defer(queue) {
| `- error: extra trailing closure passed in call
37 | do {
38 | return pure(try f())
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:54:27: error: extra trailing closure passed in call
52 | _ f: @escaping () -> Either<Failure, Success>
53 | ) -> EnvIO<Dependencies, Failure, Success> {
54 | Self.defer(queue) { f().fold(Self.raiseError, Self.pure) }
| `- error: extra trailing closure passed in call
55 | }
56 |
[154/164] Compiling BowLiteEffects EnvIO+Monad.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:23:18: error: cannot find type 'DispatchQueue' in scope
21 | /// - Returns: A computation that defers the execution of the provided function.
22 | static func `defer`(
23 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
24 | _ f: @escaping () -> EnvIO<Dependencies, Failure, Success>) -> EnvIO<Dependencies, Failure, Success> {
25 | EnvIO<Dependencies, Failure, Void>.lazy().continueOn(queue).flatMap(f)
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:34:18: error: cannot find type 'DispatchQueue' in scope
32 | /// - Returns: A computation that defers the execution of the provided function.
33 | static func later(
34 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
35 | _ f: @escaping () throws -> Success) -> EnvIO<Dependencies, Failure, Success> {
36 | Self.defer(queue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:51:18: error: cannot find type 'DispatchQueue' in scope
49 | /// - Returns: A computation that defers the execution of the provided value.
50 | static func delayOrRaise(
51 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
52 | _ f: @escaping () -> Either<Failure, Success>
53 | ) -> EnvIO<Dependencies, Failure, Success> {
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO.swift:523:30: error: cannot find type 'DispatchQueue' in scope
521 | /// - queue: A Dispatch Queue.
522 | /// - Returns: A computation that will run on the provided queue.
523 | func continueOn(_ queue: DispatchQueue) -> EnvIO<Dependencies, Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
524 | EnvIO { dependencies in
525 | self.run(dependencies).continueOn(queue)
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:36:27: error: extra trailing closure passed in call
34 | _ queue: DispatchQueue,
35 | _ f: @escaping () throws -> Success) -> EnvIO<Dependencies, Failure, Success> {
36 | Self.defer(queue) {
| `- error: extra trailing closure passed in call
37 | do {
38 | return pure(try f())
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:54:27: error: extra trailing closure passed in call
52 | _ f: @escaping () -> Either<Failure, Success>
53 | ) -> EnvIO<Dependencies, Failure, Success> {
54 | Self.defer(queue) { f().fold(Self.raiseError, Self.pure) }
| `- error: extra trailing closure passed in call
55 | }
56 |
[155/164] Compiling BowLiteEffects EnvIO+MonadDefer.swift
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:23:18: error: cannot find type 'DispatchQueue' in scope
21 | /// - Returns: A computation that defers the execution of the provided function.
22 | static func `defer`(
23 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
24 | _ f: @escaping () -> EnvIO<Dependencies, Failure, Success>) -> EnvIO<Dependencies, Failure, Success> {
25 | EnvIO<Dependencies, Failure, Void>.lazy().continueOn(queue).flatMap(f)
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:34:18: error: cannot find type 'DispatchQueue' in scope
32 | /// - Returns: A computation that defers the execution of the provided function.
33 | static func later(
34 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
35 | _ f: @escaping () throws -> Success) -> EnvIO<Dependencies, Failure, Success> {
36 | Self.defer(queue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:51:18: error: cannot find type 'DispatchQueue' in scope
49 | /// - Returns: A computation that defers the execution of the provided value.
50 | static func delayOrRaise(
51 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
52 | _ f: @escaping () -> Either<Failure, Success>
53 | ) -> EnvIO<Dependencies, Failure, Success> {
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO.swift:523:30: error: cannot find type 'DispatchQueue' in scope
521 | /// - queue: A Dispatch Queue.
522 | /// - Returns: A computation that will run on the provided queue.
523 | func continueOn(_ queue: DispatchQueue) -> EnvIO<Dependencies, Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
524 | EnvIO { dependencies in
525 | self.run(dependencies).continueOn(queue)
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:36:27: error: extra trailing closure passed in call
34 | _ queue: DispatchQueue,
35 | _ f: @escaping () throws -> Success) -> EnvIO<Dependencies, Failure, Success> {
36 | Self.defer(queue) {
| `- error: extra trailing closure passed in call
37 | do {
38 | return pure(try f())
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:54:27: error: extra trailing closure passed in call
52 | _ f: @escaping () -> Either<Failure, Success>
53 | ) -> EnvIO<Dependencies, Failure, Success> {
54 | Self.defer(queue) { f().fold(Self.raiseError, Self.pure) }
| `- error: extra trailing closure passed in call
55 | }
56 |
[156/164] Emitting module BowLiteEffects
/host/spi-builder-workspace/Sources/BowLiteEffects/Atomic.swift:5:25: error: cannot find 'DispatchQueue' in scope
3 | /// An atomically modifiable reference to a value
4 | public final class Atomic<A> {
5 | private let queue = DispatchQueue(label: "Atomic serial queue")
| `- error: cannot find 'DispatchQueue' in scope
6 | private var _value: A
7 |
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:23:18: error: cannot find type 'DispatchQueue' in scope
21 | /// - Returns: A computation that defers the execution of the provided function.
22 | static func `defer`(
23 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
24 | _ f: @escaping () -> EnvIO<Dependencies, Failure, Success>) -> EnvIO<Dependencies, Failure, Success> {
25 | EnvIO<Dependencies, Failure, Void>.lazy().continueOn(queue).flatMap(f)
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:34:18: error: cannot find type 'DispatchQueue' in scope
32 | /// - Returns: A computation that defers the execution of the provided function.
33 | static func later(
34 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
35 | _ f: @escaping () throws -> Success) -> EnvIO<Dependencies, Failure, Success> {
36 | Self.defer(queue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO+Async.swift:51:18: error: cannot find type 'DispatchQueue' in scope
49 | /// - Returns: A computation that defers the execution of the provided value.
50 | static func delayOrRaise(
51 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
52 | _ f: @escaping () -> Either<Failure, Success>
53 | ) -> EnvIO<Dependencies, Failure, Success> {
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO.swift:299:19: error: cannot find type 'DispatchQueue' in scope
297 | public func unsafeRunSync(
298 | with dependencies: Dependencies,
299 | on queue: DispatchQueue = .main
| `- error: cannot find type 'DispatchQueue' in scope
300 | ) throws -> Success {
301 | try self.run(dependencies).unsafeRunSync(on: queue)
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO.swift:312:19: error: cannot find type 'DispatchQueue' in scope
310 | public func unsafeRunSyncEither(
311 | with dependencies: Dependencies,
312 | on queue: DispatchQueue = .main
| `- error: cannot find type 'DispatchQueue' in scope
313 | ) -> Either<Failure, Success> {
314 | self.run(dependencies).unsafeRunSyncEither(on: queue)
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO.swift:325:19: error: cannot find type 'DispatchQueue' in scope
323 | public func unsafeRunAsync(
324 | with dependepencies: Dependencies,
325 | on queue: DispatchQueue = .main,
| `- error: cannot find type 'DispatchQueue' in scope
326 | _ callback: @escaping Callback<Failure, Success> = { _ in }
327 | ) {
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO.swift:431:19: error: cannot find type 'DispatchQueue' in scope
429 | /// - Throws: Error of type `E` that may happen during the evaluation of the side-effects. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
430 | func unsafeRunSync(
431 | on queue: DispatchQueue = .main
| `- error: cannot find type 'DispatchQueue' in scope
432 | ) throws -> Success {
433 | try self.run(()).unsafeRunSync(on: queue)
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO.swift:441:19: error: cannot find type 'DispatchQueue' in scope
439 | /// - Returns: An Either wrapping errors in the left side and values on the right side. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
440 | func unsafeRunSyncEither(
441 | on queue: DispatchQueue = .main
| `- error: cannot find type 'DispatchQueue' in scope
442 | ) -> Either<Failure, Success> {
443 | self.run(()).unsafeRunSyncEither(on: queue)
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO.swift:452:19: error: cannot find type 'DispatchQueue' in scope
450 | /// - callback: A callback function to receive the results of the evaluation. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
451 | func unsafeRunAsync(
452 | on queue: DispatchQueue = .main,
| `- error: cannot find type 'DispatchQueue' in scope
453 | _ callback: @escaping Callback<Failure, Success> = { _ in }
454 | ) {
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO.swift:486:35: error: cannot find type 'DispatchTimeInterval' in scope
484 | /// - Parameter interval: Time to sleep.
485 | /// - Returns: A computation that sleeps for the specified amount of time.
486 | static func sleep(_ interval: DispatchTimeInterval) -> EnvIO<Dependencies, Failure, Void> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
487 | EnvIO { _ in IO.sleep(interval) }
488 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/EnvIO/EnvIO.swift:523:30: error: cannot find type 'DispatchQueue' in scope
521 | /// - queue: A Dispatch Queue.
522 | /// - Returns: A computation that will run on the provided queue.
523 | func continueOn(_ queue: DispatchQueue) -> EnvIO<Dependencies, Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
524 | EnvIO { dependencies in
525 | self.run(dependencies).continueOn(queue)
/host/spi-builder-workspace/Sources/BowLiteEffects/Foundation/URLSession.swift:9:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
7 |
8 | /// Utilities to perform data, download and upload tasks in a functional manner.
9 | public extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 | typealias DataIO = IO<Error, (response: URLResponse, data: Data)>
11 | typealias DownloadIO = IO<Error, (response: URLResponse, url: URL)>
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO+Async.swift:23:18: error: cannot find type 'DispatchQueue' in scope
21 | /// - Returns: A computation that defers the execution of the provided function.
22 | static func `defer`(
23 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
24 | _ f: @escaping () -> IO<Failure, Success>) -> IO<Failure, Success> {
25 | IO<Failure, Void>.lazy().continueOn(queue).flatMap(f)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO+Async.swift:34:18: error: cannot find type 'DispatchQueue' in scope
32 | /// - Returns: A computation that defers the execution of the provided function.
33 | static func later(
34 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
35 | _ f: @escaping () throws -> Success) -> IO<Failure, Success> {
36 | Self.defer(queue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO+Async.swift:51:18: error: cannot find type 'DispatchQueue' in scope
49 | /// - Returns: A computation that defers the execution of the provided value.
50 | static func delayOrRaise(
51 | _ queue: DispatchQueue,
| `- error: cannot find type 'DispatchQueue' in scope
52 | _ f: @escaping () -> Either<Failure, Success>
53 | ) -> IO<Failure, Success> {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:280:41: error: cannot find type 'DispatchQueue' in scope
278 | /// - Returns: Value produced after running the suspended side effects.
279 | /// - Throws: Error of type `Failure` that may happen during the evaluation of the side-effects. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
280 | public func unsafeRunSync(on queue: DispatchQueue = .main) throws -> Success {
| `- error: cannot find type 'DispatchQueue' in scope
281 | let either = self.unsafeRunSyncEither(on: queue)
282 | switch either {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:292:47: error: cannot find type 'DispatchQueue' in scope
290 | /// - Parameter queue: Dispatch queue used to execute the side effects. Defaults to the main queue.
291 | /// - Returns: An Either wrapping errors in the left side and values on the right side. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
292 | public func unsafeRunSyncEither(on queue: DispatchQueue = .main) -> Either<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
293 | self._unsafeRunSyncEither(on: .queue(queue)).run().0
294 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:4:32: error: cannot find type 'DispatchQueue' in scope
2 |
3 | internal struct Queue {
4 | static func queue(_ queue: DispatchQueue = .main) -> Queue {
| `- error: cannot find type 'DispatchQueue' in scope
5 | queue.setSpecific(key: Key.threadLabel, value: queue.label)
6 | return .init(queue: ._queue(queue))
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:9:43: error: cannot find type 'DispatchQoS' in scope
7 | }
8 |
9 | static func queue(label: String, qos: DispatchQoS = .default) -> Queue {
| `- error: cannot find type 'DispatchQoS' in scope
10 | queue(DispatchQueue(label: label, qos: qos))
11 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:308:35: error: cannot find type 'DispatchQueue' in scope
306 | /// - Parameter queue: Dispatch queue used to execute the side effects. Defaults to the main queue.
307 | /// - Returns: An IO that either contains the value produced or an error. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
308 | public func attempt(on queue: DispatchQueue = .main) -> IO<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
309 | do {
310 | let result = try self.unsafeRunSync(on: queue)
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:324:42: error: cannot find type 'DispatchQueue' in scope
322 | /// - queue: Dispatch queue used to execute the side effects. Defaults to the main queue.
323 | /// - callback: A callback function to receive the results of the evaluation. Errors of other types thrown from the evaluation of this IO will cause a fatal error.
324 | public func unsafeRunAsync(on queue: DispatchQueue = .main, _ callback: @escaping Callback<Failure, Success> = { _ in }) {
| `- error: cannot find type 'DispatchQueue' in scope
325 | queue.async {
326 | callback(self.unsafeRunSyncEither(on: queue))
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:424:35: error: cannot find type 'DispatchTimeInterval' in scope
422 | /// - Parameter interval: Interval of time to sleep.
423 | /// - Returns: An IO that sleeps for the specified amount of time.
424 | static func sleep(_ interval: DispatchTimeInterval) -> IO<Failure, Void> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
425 | if let timeInterval = interval.toDouble() {
426 | return IO.invoke {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:585:35: error: cannot find type 'DispatchQueue' in scope
583 | let queue: DispatchQueue
584 |
585 | init(_ io: IO<E, A>, _ queue: DispatchQueue) {
| `- error: cannot find type 'DispatchQueue' in scope
586 | self.io = io
587 | self.queue = queue
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:583:16: error: cannot find type 'DispatchQueue' in scope
581 | internal class ContinueOn<E: Error, A>: IO<E, A> {
582 | let io: IO<E, A>
583 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
584 |
585 | init(_ io: IO<E, A>, _ queue: DispatchQueue) {
/host/spi-builder-workspace/Sources/BowLiteEffects/IO/IO.swift:889:30: error: cannot find type 'DispatchQueue' in scope
887 | /// - queue: A Dispatch Queue.
888 | /// - Returns: A computation that will run on the provided queue.
889 | func continueOn(_ queue: DispatchQueue) -> IO<Failure, Success> {
| `- error: cannot find type 'DispatchQueue' in scope
890 | ContinueOn(self, queue)
891 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:3:11: error: cannot find type 'DispatchTimeInterval' in scope
1 | import Foundation
2 |
3 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
4 | func toDouble() -> Double? {
5 | switch self {
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:16:14: error: cannot find type 'DispatchTimeInterval' in scope
14 | }
15 |
16 | func >=(lhs: DispatchTimeInterval, rhs: DispatchTimeInterval) -> Bool {
| `- error: cannot find type 'DispatchTimeInterval' in scope
17 | let now = DispatchTime.now()
18 | return now + lhs >= now + rhs
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:16:41: error: cannot find type 'DispatchTimeInterval' in scope
14 | }
15 |
16 | func >=(lhs: DispatchTimeInterval, rhs: DispatchTimeInterval) -> Bool {
| `- error: cannot find type 'DispatchTimeInterval' in scope
17 | let now = DispatchTime.now()
18 | return now + lhs >= now + rhs
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:21:49: error: cannot find type 'DispatchTimeInterval' in scope
19 | }
20 |
21 | func -(lhs: DispatchTime, rhs: DispatchTime) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
22 | let l = Int(lhs.rawValue)
23 | let r = Int(rhs.rawValue)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:21:13: error: cannot find type 'DispatchTime' in scope
19 | }
20 |
21 | func -(lhs: DispatchTime, rhs: DispatchTime) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTime' in scope
22 | let l = Int(lhs.rawValue)
23 | let r = Int(rhs.rawValue)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/DispatchTimeInterval+Extensions.swift:21:32: error: cannot find type 'DispatchTime' in scope
19 | }
20 |
21 | func -(lhs: DispatchTime, rhs: DispatchTime) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTime' in scope
22 | let l = Int(lhs.rawValue)
23 | let r = Int(rhs.rawValue)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:21:21: error: cannot find type 'DispatchQueue' in scope
19 |
20 | private enum _Queue {
21 | case _queue(DispatchQueue)
| `- error: cannot find type 'DispatchQueue' in scope
22 | case _current
23 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:35:14: error: cannot find type 'DispatchQoS' in scope
33 | }
34 |
35 | var qos: DispatchQoS {
| `- error: cannot find type 'DispatchQoS' in scope
36 | switch queue {
37 | case ._queue(let queue):
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:69:34: error: cannot find 'DispatchSpecificKey' in scope
67 |
68 | fileprivate enum Key {
69 | static let threadLabel = DispatchSpecificKey<String>()
| `- error: cannot find 'DispatchSpecificKey' in scope
70 | }
71 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:75:20: error: cannot find type 'DispatchQueue' in scope
73 |
74 | // MARK: - helpers
75 | internal extension DispatchQueue {
| `- error: cannot find type 'DispatchQueue' in scope
76 | var queue: Queue {
77 | .queue(self)
/host/spi-builder-workspace/Sources/BowLiteEffects/Internal/Queue.swift:81:18: error: cannot find type 'DispatchQueue' in scope
79 | }
80 |
81 | public extension DispatchQueue {
| `- error: cannot find type 'DispatchQueue' in scope
82 | static var currentLabel: String {
83 | DispatchQueue.getSpecific(key: Queue.Key.threadLabel) ?? "unknown-\(Date().timeIntervalSince1970)"
/host/spi-builder-workspace/Sources/BowLiteEffects/MonadComprehensions/EnvIO/EnvIOConcurrent.swift:8:63: error: cannot find type 'DispatchQueue' in scope
6 | /// - Parameter queue: Queue where to run the effects from that point on.
7 | /// - Returns: A binding expression to be used in a Monad comprehension.
8 | public func continueOn<Dependencies, Failure: Error>(_ queue: DispatchQueue) -> EnvIOBindingExpression<Dependencies, Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
9 | EnvIOBoundVar<Dependencies, Failure, Void>.make() <- EnvIO.lazy().continueOn(queue)
10 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/MonadComprehensions/IO/IOConcurrent.swift:7:49: error: cannot find type 'DispatchQueue' in scope
5 | /// - Parameter queue: Queue where to run the effects from that point on.
6 | /// - Returns: A binding expression to be used in a Monad comprehension.
7 | public func continueOn<Failure: Error>(_ queue: DispatchQueue) -> IOBindingExpression<Failure> {
| `- error: cannot find type 'DispatchQueue' in scope
8 | IOBoundVar<Failure, Void>.make() <- IO.lazy().continueOn(queue)
9 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:141:48: error: cannot find type 'DispatchTimeInterval' in scope
139 | ///
140 | /// - Parameter f: Function computing the delay time based on the output of the schedule.
141 | public func addDelay(_ f: @escaping (B) -> DispatchTimeInterval) -> Schedule<R, A, State, B> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
142 | addDelayM { b in EnvIO<R, Never, DispatchTimeInterval>.pure(f(b)) }
143 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:141:31: error: @escaping attribute only applies to function types
139 | ///
140 | /// - Parameter f: Function computing the delay time based on the output of the schedule.
141 | public func addDelay(_ f: @escaping (B) -> DispatchTimeInterval) -> Schedule<R, A, State, B> {
| `- error: @escaping attribute only applies to function types
142 | addDelayM { b in EnvIO<R, Never, DispatchTimeInterval>.pure(f(b)) }
143 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:148:65: error: cannot find type 'DispatchTimeInterval' in scope
146 | ///
147 | /// - Parameter f: An effectful function that provides the delay time based on the output of the schedule.
148 | public func addDelayM(_ f: @escaping (B) -> EnvIO<R, Never, DispatchTimeInterval>) -> Schedule<R, A, State, B> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
149 | addDelayM { b in f(b).map { x in x.toDouble() ?? 0 } }
150 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:148:32: error: @escaping attribute only applies to function types
146 | ///
147 | /// - Parameter f: An effectful function that provides the delay time based on the output of the schedule.
148 | public func addDelayM(_ f: @escaping (B) -> EnvIO<R, Never, DispatchTimeInterval>) -> Schedule<R, A, State, B> {
| `- error: @escaping attribute only applies to function types
149 | addDelayM { b in f(b).map { x in x.toDouble() ?? 0 } }
150 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:486:31: error: cannot find type 'DispatchTimeInterval' in scope
484 | }
485 |
486 | extension Schedule where B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
487 | /// Provides a schedule from the given schedule which transforms the delays into effectufl sleeps.
488 | ///
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:490:107: error: cannot find type 'DispatchTimeInterval' in scope
488 | ///
489 | /// - Parameter s: A schedule producing time intervals.
490 | public static func delayed(_ s: Schedule<R, A, State, DispatchTimeInterval>) -> Schedule<R, A, State, DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
491 | s.addDelay(id)
492 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:490:59: error: cannot find type 'DispatchTimeInterval' in scope
488 | ///
489 | /// - Parameter s: A schedule producing time intervals.
490 | public static func delayed(_ s: Schedule<R, A, State, DispatchTimeInterval>) -> Schedule<R, A, State, DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
491 | s.addDelay(id)
492 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:504:36: error: cannot find type 'DispatchTime' in scope
502 | }
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTime' in scope
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
506 | EnvIO.pure(DispatchTime.now())
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:504:50: error: cannot find type 'DispatchTimeInterval' in scope
502 | }
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
506 | EnvIO.pure(DispatchTime.now())
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:504:78: error: cannot find type 'DispatchTimeInterval' in scope
502 | }
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
506 | EnvIO.pure(DispatchTime.now())
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:505:50: error: cannot find type 'DispatchTime' in scope
503 |
504 | extension Schedule where State == (DispatchTime, DispatchTimeInterval), B == DispatchTimeInterval {
505 | private static func now() -> EnvIO<R, Never, DispatchTime> {
| `- error: cannot find type 'DispatchTime' in scope
506 | EnvIO.pure(DispatchTime.now())
507 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:510:53: error: cannot find type 'DispatchTime' in scope
508 |
509 | /// Provides a schedule that recurs forever without a delay, returning the elapsed time since it began.
510 | public static func elapsed() -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTime' in scope
511 | Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval>(
512 | initial: now().map { s in (s, DispatchTimeInterval.seconds(0)) },
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:510:67: error: cannot find type 'DispatchTimeInterval' in scope
508 |
509 | /// Provides a schedule that recurs forever without a delay, returning the elapsed time since it began.
510 | public static func elapsed() -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
511 | Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval>(
512 | initial: now().map { s in (s, DispatchTimeInterval.seconds(0)) },
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:521:86: error: cannot find type 'DispatchTime' in scope
519 | ///
520 | /// - Parameter interval: Time interval for this schedule to recur.
521 | public static func duration(_ interval: DispatchTimeInterval) -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTime' in scope
522 | elapsed().untilOutput { x in x >= interval }
523 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:521:100: error: cannot find type 'DispatchTimeInterval' in scope
519 | ///
520 | /// - Parameter interval: Time interval for this schedule to recur.
521 | public static func duration(_ interval: DispatchTimeInterval) -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
522 | elapsed().untilOutput { x in x >= interval }
523 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:521:45: error: cannot find type 'DispatchTimeInterval' in scope
519 | ///
520 | /// - Parameter interval: Time interval for this schedule to recur.
521 | public static func duration(_ interval: DispatchTimeInterval) -> Schedule<R, A, (DispatchTime, DispatchTimeInterval), DispatchTimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
522 | elapsed().untilOutput { x in x >= interval }
523 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:530:43: error: cannot find type 'DispatchTimeInterval' in scope
528 | ///
529 | /// - Parameter interval: Time interval to wait between each action.
530 | public static func spaced(_ interval: DispatchTimeInterval) -> Schedule<R, A, State, Int> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
531 | forever().addDelay { _ in interval }
532 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:550:44: error: cannot find type 'DispatchTimeInterval' in scope
548 | /// - base: Base time interval to wait between repetitions.
549 | /// - factor: Factor for the exponential backoff. Defaults to 2.0.
550 | public static func exponential(_ base: DispatchTimeInterval, factor: Double = 2.0) -> Schedule<R, A, Int, TimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
551 | exponential(base.toDouble() ?? 1, factor: factor)
552 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:572:39: error: cannot find type 'DispatchTimeInterval' in scope
570 | ///
571 | /// - Parameter base: Base time interval to wait between repetitions.
572 | public static func linear(_ base: DispatchTimeInterval) -> Schedule<R, A, Int, TimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
573 | linear(base.toDouble() ?? 1)
574 | }
/host/spi-builder-workspace/Sources/BowLiteEffects/Schedule.swift:593:41: error: cannot find type 'DispatchTimeInterval' in scope
591 | ///
592 | /// - Parameter one: Time interval for the initial delay.
593 | public static func fibonacci(_ one: DispatchTimeInterval) -> Schedule<R, A, (TimeInterval, TimeInterval), TimeInterval> {
| `- error: cannot find type 'DispatchTimeInterval' in scope
594 | fibonacci(one.toDouble() ?? 1)
595 | }
BUILD FAILURE 6.1 wasm