import PackageDescription

let package = Package(
    name: "Moya",
    targets: [
        Target(
            name: "Moya"
        ),
        Target(
            name: "ReactiveMoya",
            dependencies: ["Moya"]
        ),
        Target(
            name: "RxMoya",
            dependencies: ["Moya"]
        )
    ],
    dependencies: [
        .Package(url: "https://github.com/Alamofire/Alamofire", majorVersion: 4),
        .Package(url: "https://github.com/ReactiveCocoa/ReactiveSwift", majorVersion: 1),
        .Package(url: "https://github.com/ReactiveX/RxSwift", majorVersion: 3),
        .Package(url: "https://github.com/antitypical/Result", majorVersion: 3)
    ],
    exclude: [
        "Tests"
    ]
)

import PackageDescription

let package = Package(
    name: "Moya",
    targets: [
        Target(
            name: "Moya"
        ),
        Target(
            name: "ReactiveMoya",
            dependencies: ["Moya"]
        ),
        Target(
            name: "RxMoya",
            dependencies: ["Moya"]
        )
    ],
    dependencies: [
        .Package(url: "https://github.com/Alamofire/Alamofire", majorVersion: 4),
        .Package(url: "https://github.com/ReactiveCocoa/ReactiveSwift", majorVersion: 1),
        .Package(url: "https://github.com/ReactiveX/RxSwift", majorVersion: 3)
    ],
    exclude: [
        "Tests"
    ]
)

--- 
+++ 
@@ -18,7 +18,8 @@
     dependencies: [
         .Package(url: "https://github.com/Alamofire/Alamofire", majorVersion: 4),
         .Package(url: "https://github.com/ReactiveCocoa/ReactiveSwift", majorVersion: 1),
-        .Package(url: "https://github.com/ReactiveX/RxSwift", majorVersion: 3)
+        .Package(url: "https://github.com/ReactiveX/RxSwift", majorVersion: 3),
+        .Package(url: "https://github.com/antitypical/Result", majorVersion: 3)
     ],
     exclude: [
         "Tests"
Add Result as an explicit dependency in SwiftPM

As noticed in #957