swift-bifunctor
main
Categorical bifunctor structure for Swift — distributivity isos between Pair (binary product) and Either (binary coproduct).
swift-atoms/swift-bifunctor
Description
- Swift Tools 6.4.0
Description
{
"name": "swift-bifunctor",
"path": "/usr/src/package",
"targets": [
{
"name": "Bifunctor Tests",
"path": "Tests/Bifunctor Tests",
"type": "test",
"c99name": "Bifunctor_Tests",
"sources": [
"Bifunctor.Distributivity Tests.swift"
],
"module_type": "SwiftTarget",
"target_dependencies": [
"Bifunctor",
"Bifunctor Test Support"
],
"product_dependencies": [
"Pair",
"Either"
]
},
{
"name": "Bifunctor Test Support",
"path": "Tests/Support",
"type": "library",
"c99name": "Bifunctor_Test_Support",
"sources": [
"Bifunctor Test Support.swift"
],
"module_type": "SwiftTarget",
"product_memberships": [
"Bifunctor Test Support"
],
"target_dependencies": [
"Bifunctor"
]
},
{
"name": "Bifunctor Macro Tests",
"path": "Tests/Bifunctor Macro Tests",
"type": "test",
"c99name": "Bifunctor_Macro_Tests",
"sources": [
"Consumer Tests.swift",
"Nested Laws Tests.swift"
],
"module_type": "SwiftTarget",
"target_dependencies": [
"Bifunctor Macro"
]
},
{
"name": "Bifunctor Macro Plugin",
"path": "Sources/Bifunctor Macro Plugin",
"type": "macro",
"c99name": "Bifunctor_Macro_Plugin",
"sources": [
"Macro.swift",
"Plugin.swift"
],
"module_type": "SwiftTarget",
"product_memberships": [
"Bifunctor Macro",
"Bifunctor Macro Plugin"
],
"target_dependencies": [
"Bifunctor Macro Core"
],
"product_dependencies": [
"SwiftCompilerPlugin",
"SwiftSyntax",
"SwiftSyntaxMacros"
]
},
{
"name": "Bifunctor Macro Core",
"path": "Sources/Bifunctor Macro Core",
"type": "library",
"c99name": "Bifunctor_Macro_Core",
"sources": [
"Derivation.swift"
],
"module_type": "SwiftTarget",
"product_memberships": [
"Bifunctor Macro",
"Bifunctor Macro Plugin"
],
"product_dependencies": [
"Type Algebra Syntax",
"SwiftSyntax",
"SwiftSyntaxBuilder"
]
},
{
"name": "Bifunctor Macro",
"path": "Sources/Bifunctor Macro",
"type": "library",
"c99name": "Bifunctor_Macro",
"sources": [
"Bifunctor.swift"
],
"module_type": "SwiftTarget",
"product_memberships": [
"Bifunctor Macro"
],
"target_dependencies": [
"Bifunctor Macro Plugin"
]
},
{
"name": "Bifunctor",
"path": "Sources/Bifunctor",
"type": "library",
"c99name": "Bifunctor",
"sources": [
"Bifunctor.Distributivity.swift",
"Bifunctor.swift"
],
"module_type": "SwiftTarget",
"product_memberships": [
"Bifunctor",
"Bifunctor Test Support"
],
"product_dependencies": [
"Pair",
"Either"
]
}
],
"products": [
{
"name": "Bifunctor",
"type": {
"library": [
"automatic"
]
},
"targets": [
"Bifunctor"
]
},
{
"name": "Bifunctor Test Support",
"type": {
"library": [
"automatic"
]
},
"targets": [
"Bifunctor Test Support"
]
},
{
"name": "Bifunctor Macro",
"type": {
"library": [
"automatic"
]
},
"targets": [
"Bifunctor Macro"
]
},
{
"name": "Bifunctor Macro Plugin",
"type": {
"macro": null
},
"targets": [
"Bifunctor 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/swift-atoms/swift-product.git",
"type": "sourceControl",
"identity": "swift-product",
"requirement": {
"branch": [
"main"
]
}
},
{
"url": "https://github.com/swift-atoms/swift-pair.git",
"type": "sourceControl",
"identity": "swift-pair",
"requirement": {
"branch": [
"main"
]
}
},
{
"url": "https://github.com/swift-atoms/swift-either.git",
"type": "sourceControl",
"identity": "swift-either",
"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-bifunctor",
"swift_languages_versions": [
"6"
]
}
Package Dump
{
"name": "swift-bifunctor",
"traits": [],
"targets": [
{
"name": "Bifunctor",
"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": [
"Pair",
"swift-pair",
null,
null
]
},
{
"product": [
"Either",
"swift-either",
null,
null
]
}
],
"packageAccess": true
},
{
"name": "Bifunctor 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": [
"Bifunctor",
null
]
}
],
"packageAccess": true
},
{
"name": "Bifunctor 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": [
"Bifunctor",
null
]
},
{
"target": [
"Bifunctor Test Support",
null
]
},
{
"product": [
"Pair",
"swift-pair",
null,
null
]
},
{
"product": [
"Either",
"swift-either",
null,
null
]
}
],
"packageAccess": true
},
{
"name": "Bifunctor 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
]
},
{
"product": [
"SwiftSyntax",
"swift-syntax",
null,
null
]
},
{
"product": [
"SwiftSyntaxBuilder",
"swift-syntax",
null,
null
]
}
],
"packageAccess": true
},
{
"name": "Bifunctor Macro Plugin",
"type": "macro",
"exclude": [],
"settings": [],
"resources": [],
"dependencies": [
{
"target": [
"Bifunctor Macro Core",
null
]
},
{
"product": [
"SwiftCompilerPlugin",
"swift-syntax",
null,
null
]
},
{
"product": [
"SwiftSyntax",
"swift-syntax",
null,
null
]
},
{
"product": [
"SwiftSyntaxMacros",
"swift-syntax",
null,
null
]
}
],
"packageAccess": true
},
{
"name": "Bifunctor 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": [
"Bifunctor Macro Plugin",
null
]
}
],
"packageAccess": true
},
{
"name": "Bifunctor 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": [
"Bifunctor Macro",
null
]
}
],
"packageAccess": true
}
],
"products": [
{
"name": "Bifunctor",
"type": {
"library": [
"automatic"
]
},
"targets": [
"Bifunctor"
],
"settings": []
},
{
"name": "Bifunctor Test Support",
"type": {
"library": [
"automatic"
]
},
"targets": [
"Bifunctor Test Support"
],
"settings": []
},
{
"name": "Bifunctor Macro",
"type": {
"library": [
"automatic"
]
},
"targets": [
"Bifunctor 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-product",
"location": {
"remote": [
{
"urlString": "https://github.com/swift-atoms/swift-product.git"
}
]
},
"requirement": {
"branch": [
"main"
]
},
"productFilter": null
}
]
},
{
"sourceControl": [
{
"traits": [
{
"name": "default"
}
],
"identity": "swift-pair",
"location": {
"remote": [
{
"urlString": "https://github.com/swift-atoms/swift-pair.git"
}
]
},
"requirement": {
"branch": [
"main"
]
},
"productFilter": null
}
]
},
{
"sourceControl": [
{
"traits": [
{
"name": "default"
}
],
"identity": "swift-either",
"location": {
"remote": [
{
"urlString": "https://github.com/swift-atoms/swift-either.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-productunspecified
- swift-pairunspecified
- swift-eitherunspecified
- swift-syntax603.0.2
Dependencies
{
"url": "/usr/src/package",
"name": "swift-bifunctor",
"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/swift-atoms/swift-product.git",
"name": "swift-product",
"path": "/usr/src/package/.build/checkouts/swift-product",
"traits": [
"default"
],
"version": "unspecified",
"identity": "swift-product",
"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/swift-atoms/swift-operation.git",
"name": "swift-operation",
"path": "/usr/src/package/.build/checkouts/swift-operation",
"traits": [
"default"
],
"version": "unspecified",
"identity": "swift-operation",
"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": []
}
]
},
{
"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/swift-atoms/swift-pair.git",
"name": "swift-pair",
"path": "/usr/src/package/.build/checkouts/swift-pair",
"traits": [
"default"
],
"version": "unspecified",
"identity": "swift-pair",
"dependencies": []
},
{
"url": "https://github.com/swift-atoms/swift-either.git",
"name": "swift-either",
"path": "/usr/src/package/.build/checkouts/swift-either",
"traits": [
"default"
],
"version": "unspecified",
"identity": "swift-either",
"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": []
}
]
}