Skip to content

Commit 68fcd8e

Browse files
authored
Merge pull request #33 from typelift/broomburgo-patch-1
Update README.md
2 parents 2db6162 + 31f63e5 commit 68fcd8e

File tree

17 files changed

+42
-27
lines changed

17 files changed

+42
-27
lines changed

.gitmodules

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[submodule "Carthage/Checkouts/FileCheck"]
2+
path = Carthage/Checkouts/FileCheck
3+
url = https://github.com/trill-lang/FileCheck.git
4+
[submodule "Carthage/Checkouts/SwiftCheck"]
5+
path = Carthage/Checkouts/SwiftCheck
6+
url = https://github.com/typelift/SwiftCheck.git
7+
[submodule "Carthage/Checkouts/Operadics"]
8+
path = Carthage/Checkouts/Operadics
9+
url = https://github.com/typelift/Operadics.git

Abstract.xcodeproj/project.pbxproj

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@
100100
38A14E501F2A2DAB00A2900C /* SwiftCheck.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 0951F2421F09690200EA362C /* SwiftCheck.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
101101
38A14E521F2A2DC300A2900C /* SwiftCheck.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 0951F2441F09690200EA362C /* SwiftCheck.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
102102
38A14E531F2A2DCB00A2900C /* SwiftCheck.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0951F2441F09690200EA362C /* SwiftCheck.framework */; };
103+
38E185801FD7E50700208B0A /* Arbitrary.generated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 387A1DBF1F7909A000928A8C /* Arbitrary.generated.swift */; };
104+
38E185811FD7E50700208B0A /* CustomArbitraryTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 387A1DC01F7909A000928A8C /* CustomArbitraryTypes.swift */; };
105+
38E185821FD7E50800208B0A /* Arbitrary.generated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 387A1DBF1F7909A000928A8C /* Arbitrary.generated.swift */; };
106+
38E185831FD7E50800208B0A /* CustomArbitraryTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 387A1DC01F7909A000928A8C /* CustomArbitraryTypes.swift */; };
107+
38E185841FD7E50900208B0A /* Arbitrary.generated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 387A1DBF1F7909A000928A8C /* Arbitrary.generated.swift */; };
108+
38E185851FD7E50900208B0A /* CustomArbitraryTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 387A1DC01F7909A000928A8C /* CustomArbitraryTypes.swift */; };
103109
/* End PBXBuildFile section */
104110

105111
/* Begin PBXContainerItemProxy section */
@@ -672,7 +678,9 @@
672678
buildActionMask = 2147483647;
673679
files = (
674680
380A4B321F1BF83B002D70E0 /* SemiringTests.generated.swift in Sources */,
681+
38E185831FD7E50800208B0A /* CustomArbitraryTypes.swift in Sources */,
675682
380A4B211F1BE383002D70E0 /* MonoidTests.generated.swift in Sources */,
683+
38E185821FD7E50800208B0A /* Arbitrary.generated.swift in Sources */,
676684
380A4B1B1F1B775F002D70E0 /* WrapperTests.generated.swift in Sources */,
677685
380A4B161F1B7336002D70E0 /* SemigroupTests.generated.swift in Sources */,
678686
380A4B261F1BF5BE002D70E0 /* CommutativeMonoidTests.generated.swift in Sources */,
@@ -709,7 +717,9 @@
709717
buildActionMask = 2147483647;
710718
files = (
711719
380A4B331F1BF83B002D70E0 /* SemiringTests.generated.swift in Sources */,
720+
38E185851FD7E50900208B0A /* CustomArbitraryTypes.swift in Sources */,
712721
380A4B221F1BE383002D70E0 /* MonoidTests.generated.swift in Sources */,
722+
38E185841FD7E50900208B0A /* Arbitrary.generated.swift in Sources */,
713723
380A4B1C1F1B775F002D70E0 /* WrapperTests.generated.swift in Sources */,
714724
380A4B171F1B7336002D70E0 /* SemigroupTests.generated.swift in Sources */,
715725
380A4B271F1BF5BF002D70E0 /* CommutativeMonoidTests.generated.swift in Sources */,
@@ -768,7 +778,9 @@
768778
buildActionMask = 2147483647;
769779
files = (
770780
380A4B311F1BF83B002D70E0 /* SemiringTests.generated.swift in Sources */,
781+
38E185811FD7E50700208B0A /* CustomArbitraryTypes.swift in Sources */,
771782
380A4B201F1BE383002D70E0 /* MonoidTests.generated.swift in Sources */,
783+
38E185801FD7E50700208B0A /* Arbitrary.generated.swift in Sources */,
772784
380A4B1A1F1B775F002D70E0 /* WrapperTests.generated.swift in Sources */,
773785
380A4B151F1B7336002D70E0 /* SemigroupTests.generated.swift in Sources */,
774786
380A4B251F1BF5BD002D70E0 /* CommutativeMonoidTests.generated.swift in Sources */,
@@ -848,7 +860,6 @@
848860
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
849861
MTL_ENABLE_DEBUG_INFO = YES;
850862
ONLY_ACTIVE_ARCH = YES;
851-
OTHER_SWIFT_FLAGS = "-DXCODE_BUILD";
852863
PRODUCT_BUNDLE_IDENTIFIER = com.typelift.Abstract;
853864
PRODUCT_NAME = Abstract;
854865
SDKROOT = iphoneos;
@@ -909,7 +920,6 @@
909920
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
910921
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
911922
MTL_ENABLE_DEBUG_INFO = NO;
912-
OTHER_SWIFT_FLAGS = "-DXCODE_BUILD";
913923
PRODUCT_BUNDLE_IDENTIFIER = com.typelift.Abstract;
914924
PRODUCT_NAME = Abstract;
915925
SDKROOT = iphoneos;
@@ -1097,7 +1107,6 @@
10971107
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
10981108
MTL_ENABLE_DEBUG_INFO = YES;
10991109
ONLY_ACTIVE_ARCH = YES;
1100-
OTHER_SWIFT_FLAGS = "-DXCODE_BUILD";
11011110
PRODUCT_BUNDLE_IDENTIFIER = com.typelift.Abstract;
11021111
PRODUCT_MODULE_NAME = "$(PRODUCT_NAME:c99extidentifier)";
11031112
PRODUCT_NAME = Abstract;
@@ -1166,7 +1175,6 @@
11661175
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
11671176
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
11681177
MTL_ENABLE_DEBUG_INFO = NO;
1169-
OTHER_SWIFT_FLAGS = "-DXCODE_BUILD";
11701178
PRODUCT_BUNDLE_IDENTIFIER = com.typelift.Abstract;
11711179
PRODUCT_MODULE_NAME = "$(PRODUCT_NAME:c99extidentifier)";
11721180
PRODUCT_NAME = Abstract;
@@ -1363,7 +1371,6 @@
13631371
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
13641372
MTL_ENABLE_DEBUG_INFO = YES;
13651373
ONLY_ACTIVE_ARCH = YES;
1366-
OTHER_SWIFT_FLAGS = "-DXCODE_BUILD";
13671374
PRODUCT_BUNDLE_IDENTIFIER = com.typelift.Abstract;
13681375
PRODUCT_MODULE_NAME = "$(PRODUCT_NAME:c99extidentifier)";
13691376
PRODUCT_NAME = Abstract;
@@ -1432,7 +1439,6 @@
14321439
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
14331440
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
14341441
MTL_ENABLE_DEBUG_INFO = NO;
1435-
OTHER_SWIFT_FLAGS = "-DXCODE_BUILD";
14361442
PRODUCT_BUNDLE_IDENTIFIER = com.typelift.Abstract;
14371443
PRODUCT_MODULE_NAME = "$(PRODUCT_NAME:c99extidentifier)";
14381444
PRODUCT_NAME = Abstract;
@@ -1510,7 +1516,6 @@
15101516
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
15111517
MTL_ENABLE_DEBUG_INFO = YES;
15121518
ONLY_ACTIVE_ARCH = YES;
1513-
OTHER_SWIFT_FLAGS = "-DXCODE_BUILD";
15141519
PRODUCT_BUNDLE_IDENTIFIER = com.typelift.Abstract;
15151520
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
15161521
SDKROOT = macosx;
@@ -1579,7 +1584,6 @@
15791584
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
15801585
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
15811586
MTL_ENABLE_DEBUG_INFO = NO;
1582-
OTHER_SWIFT_FLAGS = "-DXCODE_BUILD";
15831587
PRODUCT_BUNDLE_IDENTIFIER = com.typelift.Abstract;
15841588
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
15851589
SDKROOT = macosx;

Cartfile.resolved

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
github "trill-lang/FileCheck" "0.0.5"
12
github "typelift/Operadics" "0.2.3"
2-
github "typelift/SwiftCheck" "0.8.1"
3+
github "typelift/SwiftCheck" "0.9.1"

Carthage/Checkouts/FileCheck

Submodule FileCheck added at 1c96658

Carthage/Checkouts/Operadics

Submodule Operadics added at bc8cdd8

Carthage/Checkouts/SwiftCheck

Submodule SwiftCheck added at df82fb8

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The library also provides tools to test the concrete types for the axioms requir
1818

1919
## Setup
2020

21-
`Abstract` is compatible with [Carthage](https://github.com/Carthage/Carthage): please refer to Carthage documentation for how to add `Abstract` as a dependency of your project.
21+
To clone `Abstract` please run `git clone REPOSITORY_URL --recursive` to properly clone submodules.
2222

2323
### SwiftPM
2424
Please add this line to your `Package.swift` file's dependencies section:
@@ -30,6 +30,9 @@ Please add this line to your `Package.swift` file's dependencies section:
3030

3131
To use the structures in this library, add `"Abstract"` to your target's dependencies. To additionally test algebraic laws with the framework, add `"Abstract"` as a dependency to the relevant `testTarget`s.
3232

33+
### Carthage
34+
`Abstract` is compatible with [Carthage](https://github.com/Carthage/Carthage): please refer to Carthage documentation for how to add `Abstract` as a dependency of your project.
35+
3336
------
3437

3538
## How to use this
@@ -323,7 +326,7 @@ struct Process<T> {
323326
}
324327
```
325328

326-
Let's also assume that we have a bunch of processes that we want to run, and then combine all the values into a single one. Running all the processes in sequence and then collecting all the values could be tedious and inefficient, but running them in parallel, maybe in a distributed way, could be dangerous, unpredictable and hard to coordinate.
329+
Let's also assume we have a bunch of processes that we want to run, and then combine all the values into a single one. Running all the processes in sequence and then collecting all the values could be tedious and inefficient, but running them in parallel, maybe in a distributed way, could be dangerous, unpredictable and hard to coordinate.
327330

328331
We would like to take advantage of the abstract algebraic structures defined in `Abstract` to simplify the problem. Everything depends on the `T` value: it turns out that, if `T` has certain properties, we can actually run our processes in a distributed and efficient way without any risk.
329332

Sources/Abstract/BoundedSemilattice.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A Bounded Semilattice is a Commutative Monoid in which the operation is idempote
66
a <> b <> b = a <> b
77
*/
88

9-
#if !XCODE_BUILD
9+
#if SWIFT_PACKAGE
1010
import Operadics
1111
#endif
1212

Sources/Abstract/CommutativeMonoid.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A Commutative Monoid is a Monoid in which the operation is commutative, thus:
66
a <> b = b <> a
77
*/
88

9-
#if !XCODE_BUILD
9+
#if SWIFT_PACKAGE
1010
import Operadics
1111
#endif
1212

Sources/Abstract/Homomorphism.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !XCODE_BUILD
1+
#if SWIFT_PACKAGE
22
import Operadics
33
#endif
44

0 commit comments

Comments
 (0)