swift-coproduct
main
The Coproduct n-ary coproduct type for typed sum values in Swift. Source-only — guarded `#if hasFeature(VariadicEnum)`.
swift-atoms/swift-coproduct
Description
- Swift Tools 6.4.0
Description
{
"name": "swift-coproduct",
"path": "/usr/src/package",
"targets": [
{
"name": "Eliminator Macro Tests",
"path": "Tests/Eliminator Macro Tests",
"type": "test",
"c99name": "Eliminator_Macro_Tests",
"sources": [
"Compiler Tests.swift",
"Consumer Tests.swift",
"Effect Laws Tests.swift",
"Expansion Tests.swift"
],
"resources": [
{
"path": "/usr/src/package/Tests/Eliminator Macro Tests/Fixtures",
"rule": {
"copy": {}
}
}
],
"module_type": "SwiftTarget",
"target_dependencies": [
"Eliminator Macro",
"Eliminator Macro Plugin"
],
"product_dependencies": [
"SwiftSyntaxMacroExpansion",
"SwiftSyntaxMacrosGenericTestSupport"
]
},
{
"name": "Eliminator Macro Plugin",
"path": "Sources/Eliminator Macro Plugin",
"type": "macro",
"c99name": "Eliminator_Macro_Plugin",
"sources": [
"Macro.swift",
"Plugin.swift"
],
"module_type": "SwiftTarget",
"product_memberships": [
"Eliminator Macro",
"Eliminator Macro Plugin"
],
"target_dependencies": [
"Eliminator Macro Core"
],
"product_dependencies": [
"SwiftCompilerPlugin",
"SwiftSyntax",
"SwiftSyntaxMacros"
]
},
{
"name": "Eliminator Macro Core",
"path": "Sources/Eliminator Macro Core",
"type": "library",
"c99name": "Eliminator_Macro_Core",
"sources": [
"Eliminator.Derivation.swift",
"Eliminator.swift"
],
"module_type": "SwiftTarget",
"product_memberships": [
"Eliminator Macro",
"Eliminator Macro Plugin"
],
"target_dependencies": [
"Coproduct Syntax"
],
"product_dependencies": [
"Type Algebra Syntax",
"SwiftSyntax",
"SwiftSyntaxBuilder"
]
},
{
"name": "Eliminator Macro",
"path": "Sources/Eliminator Macro",
"type": "library",
"c99name": "Eliminator_Macro",
"sources": [
"Eliminator.swift"
],
"module_type": "SwiftTarget",
"product_memberships": [
"Eliminator Macro"
],
"target_dependencies": [
"Eliminator Macro Plugin"
]
},
{
"name": "Coproduct Tests",
"path": "Tests/Coproduct Tests",
"type": "test",
"c99name": "Coproduct_Tests",
"sources": [
"Coproduct Tests.swift"
],
"module_type": "SwiftTarget",
"target_dependencies": [
"Coproduct",
"Coproduct Test Support"
]
},
{
"name": "Coproduct Test Support",
"path": "Tests/Support",
"type": "library",
"c99name": "Coproduct_Test_Support",
"sources": [
"exports.swift"
],
"module_type": "SwiftTarget",
"product_memberships": [
"Coproduct Test Support"
],
"target_dependencies": [
"Coproduct"
]
},
{
"name": "Coproduct Syntax",
"path": "Sources/Coproduct Syntax",
"type": "library",
"c99name": "Coproduct_Syntax",
"sources": [
"Coproduct.Analysis.swift",
"Coproduct.swift"
],
"module_type": "SwiftTarget",
"product_memberships": [
"Coproduct Syntax",
"Eliminator Macro",
"Eliminator Macro Plugin"
],
"product_dependencies": [
"Type Algebra Syntax",
"SwiftSyntax"
]
},
{
"name": "Coproduct Macro Tests",
"path": "Tests/Coproduct Macro Tests",
"type": "test",
"c99name": "Coproduct_Macro_Tests",
"sources": [
"Analysis Tests.swift"
],
"module_type": "SwiftTarget",
"target_dependencies": [
"Coproduct Syntax"
],
"product_dependencies": [
"SwiftParser",
"SwiftSyntax"
]
},
{
"name": "Coproduct Foundation Integration",
"path": "Sources/Coproduct Foundation Integration",
"type": "library",
"c99name": "Coproduct_Foundation_Integration",
"sources": [
"exports.swift"
],
"module_type": "SwiftTarget",
"product_memberships": [
"Coproduct Foundation Integration"
],
"target_dependencies": [
"Coproduct"
]
},
{
"name": "Coproduct",
"path": "Sources/Coproduct",
"type": "library",
"c99name": "Coproduct",
"sources": [
"Coproduct+FlatMap.swift",
"Coproduct+Fold.swift",
"Coproduct+Map.swift",
"Coproduct+Never.swift",
"Coproduct+Swap.swift",
"Coproduct+Swift.BitwiseCopyable.swift",
"Coproduct+Swift.Comparable.swift",
"Coproduct+Swift.CustomStringConvertible.swift",
"Coproduct+Swift.Decodable.swift",
"Coproduct+Swift.Encodable.swift",
"Coproduct+Swift.Equatable.swift",
"Coproduct+Swift.Error.swift",
"Coproduct+Swift.Hashable.swift",
"Coproduct.swift"
],
"module_type": "SwiftTarget",
"product_memberships": [
"Coproduct",
"Coproduct Foundation Integration",
"Coproduct Test Support"
]
}
],
"products": [
{
"name": "Coproduct",
"type": {
"library": [
"automatic"
]
},
"targets": [
"Coproduct"
]
},
{
"name": "Coproduct Foundation Integration",
"type": {
"library": [
"automatic"
]
},
"targets": [
"Coproduct Foundation Integration"
]
},
{
"name": "Coproduct Test Support",
"type": {
"library": [
"automatic"
]
},
"targets": [
"Coproduct Test Support"
]
},
{
"name": "Coproduct Syntax",
"type": {
"library": [
"automatic"
]
},
"targets": [
"Coproduct Syntax"
]
},
{
"name": "Eliminator Macro",
"type": {
"library": [
"automatic"
]
},
"targets": [
"Eliminator Macro"
]
},
{
"name": "Eliminator Macro Plugin",
"type": {
"macro": null
},
"targets": [
"Eliminator Macro Plugin"
]
}
],
"platforms": [
{
"name": "macos",
"version": "27.0"
},
{
"name": "ios",
"version": "27.0"
},
{
"name": "tvos",
"version": "27.0"
},
{
"name": "watchos",
"version": "27.0"
},
{
"name": "visionos",
"version": "27.0"
}
],
"dependencies": [
{
"url": "https://github.com/swift-atoms/swift-algebra.git",
"type": "sourceControl",
"identity": "swift-algebra",
"requirement": {
"branch": [
"main"
]
}
},
{
"url": "https://github.com/swiftlang/swift-syntax.git",
"type": "sourceControl",
"identity": "swift-syntax",
"requirement": {
"range": [
{
"lower_bound": "603.0.2",
"upper_bound": "604.0.0"
}
]
}
}
],
"tools_version": "6.4",
"manifest_display_name": "swift-coproduct",
"swift_languages_versions": [
"6"
]
}
Package Dump
{
"name": "swift-coproduct",
"traits": [],
"targets": [
{
"name": "Coproduct",
"path": "Sources/Coproduct",
"type": "regular",
"exclude": [],
"settings": [
{
"kind": {
"strictMemorySafety": {}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "ExistentialAny"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "InternalImportsByDefault"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "MemberImportVisibility"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "NonisolatedNonsendingByDefault"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "InferIsolatedConformances"
}
},
"tool": "swift"
},
{
"kind": {
"enableExperimentalFeature": {
"_0": "Lifetimes"
}
},
"tool": "swift"
},
{
"kind": {
"treatAllWarnings": {
"_0": "error"
}
},
"tool": "swift"
}
],
"resources": [],
"dependencies": [],
"packageAccess": true
},
{
"name": "Coproduct Foundation Integration",
"path": "Sources/Coproduct Foundation Integration",
"type": "regular",
"exclude": [],
"settings": [
{
"kind": {
"strictMemorySafety": {}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "ExistentialAny"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "InternalImportsByDefault"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "MemberImportVisibility"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "NonisolatedNonsendingByDefault"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "InferIsolatedConformances"
}
},
"tool": "swift"
},
{
"kind": {
"enableExperimentalFeature": {
"_0": "Lifetimes"
}
},
"tool": "swift"
},
{
"kind": {
"treatAllWarnings": {
"_0": "error"
}
},
"tool": "swift"
}
],
"resources": [],
"dependencies": [
{
"target": [
"Coproduct",
null
]
}
],
"packageAccess": true
},
{
"name": "Coproduct Test Support",
"path": "Tests/Support",
"type": "regular",
"exclude": [],
"settings": [
{
"kind": {
"strictMemorySafety": {}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "ExistentialAny"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "InternalImportsByDefault"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "MemberImportVisibility"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "NonisolatedNonsendingByDefault"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "InferIsolatedConformances"
}
},
"tool": "swift"
},
{
"kind": {
"enableExperimentalFeature": {
"_0": "Lifetimes"
}
},
"tool": "swift"
},
{
"kind": {
"treatAllWarnings": {
"_0": "error"
}
},
"tool": "swift"
}
],
"resources": [],
"dependencies": [
{
"target": [
"Coproduct",
null
]
}
],
"packageAccess": true
},
{
"name": "Coproduct Tests",
"path": "Tests/Coproduct Tests",
"type": "test",
"exclude": [],
"settings": [
{
"kind": {
"strictMemorySafety": {}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "ExistentialAny"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "InternalImportsByDefault"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "MemberImportVisibility"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "NonisolatedNonsendingByDefault"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "InferIsolatedConformances"
}
},
"tool": "swift"
},
{
"kind": {
"enableExperimentalFeature": {
"_0": "Lifetimes"
}
},
"tool": "swift"
},
{
"kind": {
"treatAllWarnings": {
"_0": "error"
}
},
"tool": "swift"
}
],
"resources": [],
"dependencies": [
{
"target": [
"Coproduct",
null
]
},
{
"target": [
"Coproduct Test Support",
null
]
}
],
"packageAccess": true
},
{
"name": "Coproduct Syntax",
"type": "regular",
"exclude": [],
"settings": [
{
"kind": {
"strictMemorySafety": {}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "ExistentialAny"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "InternalImportsByDefault"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "MemberImportVisibility"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "NonisolatedNonsendingByDefault"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "InferIsolatedConformances"
}
},
"tool": "swift"
},
{
"kind": {
"enableExperimentalFeature": {
"_0": "Lifetimes"
}
},
"tool": "swift"
},
{
"kind": {
"treatAllWarnings": {
"_0": "error"
}
},
"tool": "swift"
}
],
"resources": [],
"dependencies": [
{
"product": [
"Type Algebra Syntax",
"swift-algebra",
null,
null
]
},
{
"product": [
"SwiftSyntax",
"swift-syntax",
null,
null
]
}
],
"packageAccess": true
},
{
"name": "Coproduct Macro Tests",
"type": "test",
"exclude": [],
"settings": [
{
"kind": {
"strictMemorySafety": {}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "ExistentialAny"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "InternalImportsByDefault"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "MemberImportVisibility"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "NonisolatedNonsendingByDefault"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "InferIsolatedConformances"
}
},
"tool": "swift"
},
{
"kind": {
"enableExperimentalFeature": {
"_0": "Lifetimes"
}
},
"tool": "swift"
},
{
"kind": {
"treatAllWarnings": {
"_0": "error"
}
},
"tool": "swift"
}
],
"resources": [],
"dependencies": [
{
"target": [
"Coproduct Syntax",
null
]
},
{
"product": [
"SwiftParser",
"swift-syntax",
null,
null
]
},
{
"product": [
"SwiftSyntax",
"swift-syntax",
null,
null
]
}
],
"packageAccess": true
},
{
"name": "Eliminator Macro Core",
"type": "regular",
"exclude": [],
"settings": [
{
"kind": {
"strictMemorySafety": {}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "ExistentialAny"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "InternalImportsByDefault"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "MemberImportVisibility"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "NonisolatedNonsendingByDefault"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "InferIsolatedConformances"
}
},
"tool": "swift"
},
{
"kind": {
"enableExperimentalFeature": {
"_0": "Lifetimes"
}
},
"tool": "swift"
},
{
"kind": {
"treatAllWarnings": {
"_0": "error"
}
},
"tool": "swift"
}
],
"resources": [],
"dependencies": [
{
"product": [
"Type Algebra Syntax",
"swift-algebra",
null,
null
]
},
{
"target": [
"Coproduct Syntax",
null
]
},
{
"product": [
"SwiftSyntax",
"swift-syntax",
null,
null
]
},
{
"product": [
"SwiftSyntaxBuilder",
"swift-syntax",
null,
null
]
}
],
"packageAccess": true
},
{
"name": "Eliminator Macro Plugin",
"type": "macro",
"exclude": [],
"settings": [],
"resources": [],
"dependencies": [
{
"target": [
"Eliminator Macro Core",
null
]
},
{
"product": [
"SwiftCompilerPlugin",
"swift-syntax",
null,
null
]
},
{
"product": [
"SwiftSyntax",
"swift-syntax",
null,
null
]
},
{
"product": [
"SwiftSyntaxMacros",
"swift-syntax",
null,
null
]
}
],
"packageAccess": true
},
{
"name": "Eliminator Macro",
"type": "regular",
"exclude": [],
"settings": [
{
"kind": {
"strictMemorySafety": {}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "ExistentialAny"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "InternalImportsByDefault"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "MemberImportVisibility"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "NonisolatedNonsendingByDefault"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "InferIsolatedConformances"
}
},
"tool": "swift"
},
{
"kind": {
"enableExperimentalFeature": {
"_0": "Lifetimes"
}
},
"tool": "swift"
},
{
"kind": {
"treatAllWarnings": {
"_0": "error"
}
},
"tool": "swift"
}
],
"resources": [],
"dependencies": [
{
"target": [
"Eliminator Macro Plugin",
null
]
}
],
"packageAccess": true
},
{
"name": "Eliminator Macro Tests",
"type": "test",
"exclude": [],
"settings": [
{
"kind": {
"enableExperimentalFeature": {
"_0": "MoveOnlyTuples"
}
},
"tool": "swift"
},
{
"kind": {
"strictMemorySafety": {}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "ExistentialAny"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "InternalImportsByDefault"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "MemberImportVisibility"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "NonisolatedNonsendingByDefault"
}
},
"tool": "swift"
},
{
"kind": {
"enableUpcomingFeature": {
"_0": "InferIsolatedConformances"
}
},
"tool": "swift"
},
{
"kind": {
"enableExperimentalFeature": {
"_0": "Lifetimes"
}
},
"tool": "swift"
},
{
"kind": {
"treatAllWarnings": {
"_0": "error"
}
},
"tool": "swift"
}
],
"resources": [
{
"path": "Fixtures",
"rule": {
"copy": {}
}
}
],
"dependencies": [
{
"target": [
"Eliminator Macro",
null
]
},
{
"target": [
"Eliminator Macro Plugin",
null
]
},
{
"product": [
"SwiftSyntaxMacroExpansion",
"swift-syntax",
null,
null
]
},
{
"product": [
"SwiftSyntaxMacrosGenericTestSupport",
"swift-syntax",
null,
null
]
}
],
"packageAccess": true
}
],
"products": [
{
"name": "Coproduct",
"type": {
"library": [
"automatic"
]
},
"targets": [
"Coproduct"
],
"settings": []
},
{
"name": "Coproduct Foundation Integration",
"type": {
"library": [
"automatic"
]
},
"targets": [
"Coproduct Foundation Integration"
],
"settings": []
},
{
"name": "Coproduct Test Support",
"type": {
"library": [
"automatic"
]
},
"targets": [
"Coproduct Test Support"
],
"settings": []
},
{
"name": "Coproduct Syntax",
"type": {
"library": [
"automatic"
]
},
"targets": [
"Coproduct Syntax"
],
"settings": []
},
{
"name": "Eliminator Macro",
"type": {
"library": [
"automatic"
]
},
"targets": [
"Eliminator Macro"
],
"settings": []
}
],
"pkgConfig": null,
"platforms": [
{
"options": [],
"version": "27.0",
"platformName": "macos"
},
{
"options": [],
"version": "27.0",
"platformName": "ios"
},
{
"options": [],
"version": "27.0",
"platformName": "tvos"
},
{
"options": [],
"version": "27.0",
"platformName": "watchos"
},
{
"options": [],
"version": "27.0",
"platformName": "visionos"
}
],
"providers": null,
"packageKind": {
"root": [
"/usr/src/package"
]
},
"dependencies": [
{
"sourceControl": [
{
"traits": [
{
"name": "default"
}
],
"identity": "swift-algebra",
"location": {
"remote": [
{
"urlString": "https://github.com/swift-atoms/swift-algebra.git"
}
]
},
"requirement": {
"branch": [
"main"
]
},
"productFilter": null
}
]
},
{
"sourceControl": [
{
"traits": [
{
"name": "default"
}
],
"identity": "swift-syntax",
"location": {
"remote": [
{
"urlString": "https://github.com/swiftlang/swift-syntax.git"
}
]
},
"requirement": {
"range": [
{
"lowerBound": "603.0.2",
"upperBound": "604.0.0"
}
]
},
"productFilter": null
}
]
}
],
"toolsVersion": {
"_version": "6.4.0"
},
"cLanguageStandard": null,
"cxxLanguageStandard": null,
"defaultLocalization": null,
"swiftLanguageVersions": [
"6"
]
}
Dependencies
- swift-algebraunspecified
- swift-syntax603.0.2
Dependencies
{
"url": "/usr/src/package",
"name": "swift-coproduct",
"path": "/usr/src/package",
"traits": [
"default"
],
"version": "unspecified",
"identity": "package",
"dependencies": [
{
"url": "https://github.com/swift-atoms/swift-algebra.git",
"name": "swift-algebra",
"path": "/usr/src/package/.build/checkouts/swift-algebra",
"traits": [
"default"
],
"version": "unspecified",
"identity": "swift-algebra",
"dependencies": [
{
"url": "https://github.com/swiftlang/swift-syntax.git",
"name": "swift-syntax",
"path": "/usr/src/package/.build/checkouts/swift-syntax",
"traits": [
"default"
],
"version": "603.0.2",
"identity": "swift-syntax",
"dependencies": []
}
]
},
{
"url": "https://github.com/swiftlang/swift-syntax.git",
"name": "swift-syntax",
"path": "/usr/src/package/.build/checkouts/swift-syntax",
"traits": [
"default"
],
"version": "603.0.2",
"identity": "swift-syntax",
"dependencies": []
}
]
}