Skip to content

Commit

Permalink
Merge pull request #1 from spacenation/functional-package
Browse files Browse the repository at this point in the history
Adding functional package
  • Loading branch information
ay42 authored May 24, 2024
2 parents d491d1d + a405b3a commit 9d4398a
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 142 deletions.
9 changes: 9 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
"revision" : "31b5b18556610a5639d50eb56575b6a54db13f1c",
"version" : "1.1.0"
}
},
{
"identity" : "swift-functional",
"kind" : "remoteSourceControl",
"location" : "[email protected]:spacenation/swift-functional.git",
"state" : {
"revision" : "45aed19a2399e4100955db9ca7a2ea88009b6332",
"version" : "0.1.0"
}
}
],
"version" : 2
Expand Down
18 changes: 12 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ let package = Package(
targets: ["StringEncoder"])
],
dependencies: [
.package(url: "[email protected]:spacenation/swift-binary.git", .upToNextMajor(from: "1.1.0"))
.package(url: "[email protected]:spacenation/swift-binary.git", .upToNextMajor(from: "1.1.0")),
.package(url: "[email protected]:spacenation/swift-functional.git", .upToNextMajor(from: "0.1.0"))
],
targets: [
.target(
name: "Coder",
dependencies: [
.product(name: "Binary", package: "swift-binary")
.product(name: "Binary", package: "swift-binary"),
.product(name: "Functional", package: "swift-functional")
]
),
.testTarget(
Expand All @@ -42,7 +44,8 @@ let package = Package(
name: "BinaryDecoder",
dependencies: [
"Coder",
.product(name: "Binary", package: "swift-binary")
.product(name: "Binary", package: "swift-binary"),
.product(name: "Functional", package: "swift-functional")
]
),
.testTarget(name: "BinaryDecoderTests", dependencies: ["BinaryDecoder"]),
Expand All @@ -53,7 +56,8 @@ let package = Package(
name: "BinaryEncoder",
dependencies: [
"Coder",
.product(name: "Binary", package: "swift-binary")
.product(name: "Binary", package: "swift-binary"),
.product(name: "Functional", package: "swift-functional")
]
),
.testTarget(
Expand All @@ -64,7 +68,8 @@ let package = Package(
.target(
name: "StringDecoder",
dependencies: [
"Coder"
"Coder",
.product(name: "Functional", package: "swift-functional")
]
),
.testTarget(
Expand All @@ -75,7 +80,8 @@ let package = Package(
.target(
name: "StringEncoder",
dependencies: [
"Coder"
"Coder",
.product(name: "Functional", package: "swift-functional")
]
),
.testTarget(
Expand Down
1 change: 1 addition & 0 deletions Sources/Coder/Coder.swift
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@_exported import Binary
@_exported import Functional
33 changes: 0 additions & 33 deletions Sources/Coder/Currying/Curry.swift

This file was deleted.

37 changes: 0 additions & 37 deletions Sources/Coder/Currying/Uncurry.swift

This file was deleted.

5 changes: 0 additions & 5 deletions Sources/Coder/Functions/Constant.swift

This file was deleted.

9 changes: 0 additions & 9 deletions Sources/Coder/Functions/Flip.swift

This file was deleted.

5 changes: 0 additions & 5 deletions Sources/Coder/Functions/Identity.swift

This file was deleted.

9 changes: 0 additions & 9 deletions Sources/Coder/Functions/Reverse.swift

This file was deleted.

4 changes: 4 additions & 0 deletions Sources/StringDecoder/Predicates/Character+Predicates.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ public func isDigit(_ c: Character) -> Bool {
"0"..."9" ~= c
}

public func isPositiveDigit(_ c: Character) -> Bool {
"1"..."9" ~= c
}

public func isLetter(_ c: Character) -> Bool {
c.isLetter
}
Expand Down
18 changes: 0 additions & 18 deletions Tests/CoderTests/CurryingTests/CurryTests.swift

This file was deleted.

8 changes: 0 additions & 8 deletions Tests/CoderTests/CurryingTests/UncurryTests.swift

This file was deleted.

12 changes: 0 additions & 12 deletions Tests/CoderTests/FunctionsTests/FlipTests.swift

This file was deleted.

0 comments on commit 9d4398a

Please sign in to comment.