Functional programming in Swift

Overview

Carthage compatible Build Status Gitter chat

Swiftz

Swiftz is a Swift library for functional programming.

It defines functional data structures, functions, idioms, and extensions that augment the Swift standard library.

For a small, simpler way to introduce functional primitives into any codebase, see Swiftx.

Introduction

Swiftz draws inspiration from a number of functional libraries and languages. Chief among them are Scalaz, Prelude/Base, SML Basis, and the OCaml Standard Library. Elements of the library rely on their combinatorial semantics to allow declarative ideas to be expressed more clearly in Swift.

Swiftz is a proper superset of Swiftx that implements higher-level data types like Arrows, Lists, HLists, and a number of typeclasses integral to programming with the maximum amount of support from the type system.

To illustrate use of these abstractions, take these few examples:

Lists

import struct Swiftz.List

//: Cycles a finite list of numbers into an infinite list.
let finite : List<UInt> = [1, 2, 3, 4, 5]
let infiniteCycle = finite.cycle()

//: Lists also support the standard map, filter, and reduce operators.
let l : List<Int> = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

let twoToEleven = l.map(+1) // [2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
let even = l.filter((==0)  (%2)) // [2, 4, 6, 8, 10]
let sum = l.reduce(curry(+), initial: 0) // 55

//: Plus a few more.
let partialSums = l.scanl(curry(+), initial: 0) // [0, 1, 3, 6, 10, 15, 21, 28, 36, 45, 55]
let firstHalf = l.take(5) // [1, 2, 3, 4, 5]
let lastHalf = l.drop(5) // [6, 7, 8, 9, 10]

Semigroups and Monoids

let xs = [1, 2, 0, 3, 4]

import protocol Swiftz.Semigroup
import func Swiftz.sconcat
import struct Swiftz.Min

//: The least element of a list can be had with the Min Semigroup.
let smallestElement = sconcat(Min(2), t: xs.map { Min($0) }).value() // 0
 
import protocol Swiftz.Monoid
import func Swiftz.mconcat
import struct Swiftz.Sum

//: Or the sum of a list with the Sum Monoid.
let sum = mconcat(xs.map { Sum($0) }).value() // 10

import struct Swiftz.Product

//: Or the product of a list with the Product Monoid.
let product = mconcat(xs.map { Product($0) }).value() // 0

Arrows

import struct Swiftz.Function
import struct Swiftz.Either

//: An Arrow is a function just like any other.  Only this time around we
//: can treat them like a full algebraic structure and introduce a number
//: of operators to augment them.
let comp = Function.arr(+3)  Function.arr(*6)  Function.arr(/2)
let both = comp.apply(10) // 33

//: An Arrow that runs both operations on its input and combines both
//: results into a tuple.
let add5AndMultiply2 = Function.arr(+5) &&& Function.arr(*2)
let both = add5AndMultiply2.apply(10) // (15, 20)

//: Produces an Arrow that chooses a particular function to apply
//: when presented with the side of an Either.
let divideLeftMultiplyRight = Function.arr(/2) ||| Function.arr(*2)
let left = divideLeftMultiplyRight.apply(.Left(4)) // 2
let right = divideLeftMultiplyRight.apply(.Right(7)) // 14

Operators

See Operators for a list of supported operators.

Setup

To add Swiftz to your application:

Using Carthage

  • Add Swiftz to your Cartfile
  • Run carthage update
  • Drag the relevant copy of Swiftz into your project.
  • Expand the Link Binary With Libraries phase
  • Click the + and add Swiftz
  • Click the + at the top left corner to add a Copy Files build phase
  • Set the directory to Frameworks
  • Click the + and add Swiftz

Using Git Submodules

  • Clone Swiftz as a submodule into the directory of your choice
  • Run git submodule init -i --recursive
  • Drag Swiftz.xcodeproj or Swiftz-iOS.xcodeproj into your project tree as a subproject
  • Under your project's Build Phases, expand Target Dependencies
  • Click the + and add Swiftz
  • Expand the Link Binary With Libraries phase
  • Click the + and add Swiftz
  • Click the + at the top left corner to add a Copy Files build phase
  • Set the directory to Frameworks
  • Click the + and add Swiftz

Using Swift Package Manager

  • Add Swiftz to your Package.swift within your project's Package definition:
let package = Package(
	name: "MyProject",
	...
	dependencies: [
		.package(url: "https://github.com/typelift/Swiftz.git", from: "0.0.0")
		...
	],
	targets: [
		.target(
            name: "MyProject",
            dependencies: ["Swiftz"]),
        ...
	]
)

System Requirements

Swiftz supports OS X 10.9+ and iOS 8.0+.

License

Swiftz is released under the BSD license.

Comments
  • Arg order in <^> vs >>-

    Arg order in <^> vs >>-

    Is there a reason why <^> and >>- don't take their args in the same order? Should one of them be switched (eg <^>) or do you recommend using the map method directly in that case?

    Thanks!

    question 
    opened by aryairani 39
  • Could you provide more details in readme on how to consume your framework

    Could you provide more details in readme on how to consume your framework

    Could you update the readme with more detailed info on how to consume a framework. I know it's not an issue with your code (it's my issue as an XCode beginner). I just can't ever figure out how to consume frameworks. Apple makes it seem as if you just drag and drop (which appears to work until you actually try to build and the linker yells at you)

    I'm trying to follow your instructions on your readme.

    1. Build .framework. (I cloned your repo, opened the workspace and compiled. I see 2 projects each with Products folders each containing 4 frameworks. I also see swifz_core.framework under the root of swiftz project. It is "red", as are several of the test frameworks. I can successfully build with Command B. I get an error that Tests Failed if I run them with Command U. Details below.
    2. Copy it to your project. Not sure what "it" refers to. Perhaps it now refers to both swiftz_core.framework AND swiftz.framework? And I'm not sure what it means to copy it to my project. I've tried several things both with this framework (and while trying to consume the testing framework Sleipnir; also with no success). One of the things I tried was just dragging the framework from where it was in the XCode project navigator in the Swiftz workspace to the XCode window containing my project (dropping it in the Project navigator).
    3. Add a build phase to copy frameworks. This doesn't seem to be an option. I added a build phase to "copy files" and then dragged swiftz from where it was in the project navigator to this phase and chose a destination of Frameworks. So now after attempting to build I see the framework in two locations: a) where I first dropped it, and b) in a Frameworks folder.
    4. I have no idea where to find the code signing flags. Next to where I dropped in in build phases is a checked box that says "Code sign on copy".
    5. I have no idea where to find this either.

    The way things stand I get a linker error: swiftz framework cannot be found.

    Thanks for any pointers to documentation that will get me on the right track. Would really love to be able to play around with Swiftz.

    Test Output

    2014-11-01 11:14:37.419 xctest[3562:119069] The test bundle at /Users/mgwelch/Library/Developer/Xcode/DerivedData/swiftz-dfchxmsrsusopsgocnqvrawwpzyp/Build/Products/Debug/swiftz_coreTests.xctest could not be loaded because an unanticipated error occurred. 2014-11-01 11:14:37.419 xctest[3562:119069] Detailed error information: Error Domain=NSCocoaErrorDomain Code=3587 "The bundle “swiftz_coreTests” couldn’t be loaded because it is damaged or missing necessary resources." (dlopen_preflight(/Users/mgwelch/Library/Developer/Xcode/DerivedData/swiftz-dfchxmsrsusopsgocnqvrawwpzyp/Build/Products/Debug/swiftz_coreTests.xctest/Contents/MacOS/swiftz_coreTests): Library not loaded: @rpath/libswiftAppKit.dylib Referenced from: /Users/mgwelch/Library/Developer/Xcode/DerivedData/swiftz-dfchxmsrsusopsgocnqvrawwpzyp/Build/Products/Debug/swiftz_core.framework/Versions/A/swiftz_core Reason: image not found) UserInfo=0x1005002a0 {NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Users/mgwelch/Library/Developer/Xcode/DerivedData/swiftz-dfchxmsrsusopsgocnqvrawwpzyp/Build/Products/Debug/swiftz_coreTests.xctest/Contents/MacOS/swiftz_coreTests, NSDebugDescription=dlopen_preflight(/Users/mgwelch/Library/Developer/Xcode/DerivedData/swiftz-dfchxmsrsusopsgocnqvrawwpzyp/Build/Products/Debug/swiftz_coreTests.xctest/Contents/MacOS/swiftz_coreTests): Library not loaded: @rpath/libswiftAppKit.dylib Referenced from: /Users/mgwelch/Library/Developer/Xcode/DerivedData/swiftz-dfchxmsrsusopsgocnqvrawwpzyp/Build/Products/Debug/swiftz_core.framework/Versions/A/swiftz_core Reason: image not found, NSBundlePath=/Users/mgwelch/Library/Developer/Xcode/DerivedData/swiftz-dfchxmsrsusopsgocnqvrawwpzyp/Build/Products/Debug/swiftz_coreTests.xctest, NSLocalizedDescription=The bundle “swiftz_coreTests” couldn’t be loaded because it is damaged or missing necessary resources.} 2014-11-01 11:14:37.420 xctest[3562:119069] Usage: xctest [-XCTest Self | All | None | ] 2014-11-01 11:14:37.420 xctest[3562:119069] Couldn't posix_spawn: error 8

    opened by michaelgwelch 30
  • Add sequence functions for various monads

    Add sequence functions for various monads

    @CodaFi Is this what you were after (re: sequence conversation on Twitter https://twitter.com/CodaFi_/status/707423595601891328)?

    sequence added for:

    • Array
    • Either
    • Identity
    • List
    • Optional
    • Proxy
    • State
    • String
    • Stream
    • Writer

    I haven't been able to get Reader to type check.

    opened by ryanbooker 24
  • Monoidal instead of Applicative

    Monoidal instead of Applicative

    The http://github.com/non/cats project has been exploring favoring the just as powerful (Monoidal)[https://wiki.haskell.org/Typeclassopedia#Alternative_formulation] typeclass over Applicative.

    Applicative can be cumbersome in languages that don't default to partial function application and I also think it has a more intuitive definition than Applicative since it's symmetrical as well as having much nicer laws (naturality, left and right identity, and associativity).

    You can also get apply builders almost for free since map2, map3, map4 just become map on tuple2, tuple3, tuple4.

    opened by adamkuipers 23
  • Split JSON Out of Swiftz

    Split JSON Out of Swiftz

    @mpurland's recent pull requests have made it clear to me that it would be more useful to have JSON exist outside of this framework. Because it remains the one component that doesn't interact all that much with Swiftz as a whole, and is the last thing that requires Foundation, I figure it would do just fine as a standalone framework.

    Names, comments, criticisms, objections?

    enhancement question 
    opened by CodaFi 22
  • Injection / Bijection wanted?

    Injection / Bijection wanted?

    Hey guys,

    I'm the author of Twitter's Bijection library in Scala, and have found the Injection and Bijection typeclasses to be extremely useful. I'd love to get these, and a few other typeclasses, into swiftz. Here's some extremely early playing around:

    // Playing around with the Injection typeclass.
    protocol Injection {
        typealias T
        typealias U
        func apply(T) -> U
        func invert(U) -> T?
    }
    
    class IntInjection: Injection {
        func apply(i: Int) -> String {
            return String(i)
        }
        func invert(s: String) -> Int? {
            return s.toInt()
        }
    }
    
    let i = IntInjection()
    i.apply(10)
    i.invert("10")
    

    Would you guys be interested in taking this pull req? I don't want to send it over if this is beyond the library scope.

    One other Q:

    • Would you take pull reqs for implementations of associative datastructures like those in Algebird? Or is Swiftz meant to contain typeclasses only?
    enhancement 
    opened by sritchie 20
  • Subtree Split the Core

    Subtree Split the Core

    Related to #118

    I think with #131 it's high time the core became its own µFramework and possibly get a name change.

    Thoughts, ideas, names, cash, I'll take them all.

    opened by CodaFi 17
  • Carthage Is Only Building The Mac Scheme

    Carthage Is Only Building The Mac Scheme

    Running carthage build --no-skip-current causes only the OS X project to be found and that scheme to be built by Carthage. In some rare cases (after first checkouts for libraries that depend on Swiftx and Swiftz), Carthage will report that it cannot find the Swiftz-iOS scheme, but future attempts to run carthage build will not report said error further.

    I'm not entirely sure how to fix this one. xcodebuild can see all the right schemes in our project directory but nothing for iOS is being built.

    //cc @jspahrsummers

    bug 
    opened by CodaFi 14
  • Functor

    Functor

    With these 2 problems:

    1. No implicit resolution of instances.
    2. No kinds.

    I propose explicitly providing FA and FB and writing lots of code.

    Alternatively, in xsharpx and functional java, you just write map on everything and don't inherit.

    I'm not sure what is the best approach. Ideas?

    enhancement bugreport cantfix 
    opened by mxswd 13
  • Install issues with Carthage

    Install issues with Carthage

    My Cartfile consists of the following two lines

    # swiftz
    github "typelift/Swiftz" ~> 0.2
    

    When I run carthage update I receive the following console vomit. Any guidance? I have Xcode 6.3.2 installed alongside the latest beta. xcode-select points at the mac app store installed 6.3.2

    $ carthage update
    *** Fetching Swiftz
    *** Checking out Swiftz at "v0.2.2"
    *** xcodebuild output can be found in /var/folders/dw/rbk312qs7q74dpqcrdvrxbtm0000gn/T/carthage-xcodebuild.FGXXEe.log
    *** Building scheme "SwiftCheck" in Swiftz.xcodeproj
    *** Building scheme "SwiftCheck-iOS" in Swiftz.xcodeproj
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:42:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types/_ct_rune_t.h:31:9: error: unknown type name '__darwin_ct_rune_t'; did you mean '__darwin_wctrans_t'?
    <unknown>:0: error: too many errors emitted, stopping now
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: error: could not build module 'CoreFoundation'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/objc/objc.h:31:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/mach-o/arch.h:32:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/dispatch/dispatch.h:25:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/os/base.h:24:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:32:10: error: could not build module 'Darwin'
    /Users/tj/Development/Comb/Carthage/Checkouts/Swiftz/Carthage/Checkouts/SwiftCheck/SwiftCheck/SwiftCheck.h:9:9: error: could not build module 'Foundation'
    <unknown>:0: error: could not build Objective-C module 'SwiftCheck'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:42:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types/_ct_rune_t.h:31:9: error: unknown type name '__darwin_ct_rune_t'; did you mean '__darwin_wctrans_t'?
    <unknown>:0: error: too many errors emitted, stopping now
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: error: could not build module 'CoreFoundation'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/objc/objc.h:31:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/mach-o/arch.h:32:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/dispatch/dispatch.h:25:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/os/base.h:24:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:32:10: error: could not build module 'Darwin'
    /Users/tj/Development/Comb/Carthage/Checkouts/Swiftz/Carthage/Checkouts/SwiftCheck/SwiftCheck/SwiftCheck.h:9:9: error: could not build module 'Foundation'
    <unknown>:0: error: could not build Objective-C module 'SwiftCheck'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:42:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types/_ct_rune_t.h:31:9: error: unknown type name '__darwin_ct_rune_t'; did you mean '__darwin_wctrans_t'?
    <unknown>:0: error: too many errors emitted, stopping now
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: error: could not build module 'CoreFoundation'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/objc/objc.h:31:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/mach-o/arch.h:32:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/dispatch/dispatch.h:25:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/os/base.h:24:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:32:10: error: could not build module 'Darwin'
    /Users/tj/Development/Comb/Carthage/Checkouts/Swiftz/Carthage/Checkouts/SwiftCheck/SwiftCheck/SwiftCheck.h:9:9: error: could not build module 'Foundation'
    <unknown>:0: error: could not build Objective-C module 'SwiftCheck'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:42:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types/_ct_rune_t.h:31:9: error: unknown type name '__darwin_ct_rune_t'; did you mean '__darwin_wctrans_t'?
    <unknown>:0: error: too many errors emitted, stopping now
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: error: could not build module 'CoreFoundation'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/objc/objc.h:31:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/mach-o/arch.h:32:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/dispatch/dispatch.h:25:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/os/base.h:24:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:32:10: error: could not build module 'Darwin'
    /Users/tj/Development/Comb/Carthage/Checkouts/Swiftz/Carthage/Checkouts/SwiftCheck/SwiftCheck/SwiftCheck.h:9:9: error: could not build module 'Foundation'
    <unknown>:0: error: could not build Objective-C module 'SwiftCheck'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:42:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types/_ct_rune_t.h:31:9: error: unknown type name '__darwin_ct_rune_t'; did you mean '__darwin_wctrans_t'?
    <unknown>:0: error: too many errors emitted, stopping now
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: error: could not build module 'CoreFoundation'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/objc/objc.h:31:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/mach-o/arch.h:32:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/dispatch/dispatch.h:25:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/os/base.h:24:10: error: could not build module 'Darwin'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:32:10: error: could not build module 'Darwin'
    /Users/tj/Development/Comb/Carthage/Checkouts/Swiftz/Carthage/Checkouts/SwiftCheck/SwiftCheck/SwiftCheck.h:9:9: error: could not build module 'Foundation'
    <unknown>:0: error: could not build Objective-C module 'SwiftCheck'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:42:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types/_ct_rune_t.h:31:9: error: unknown type name '__darwin_ct_rune_t'; did you mean '__darwin_wctrans_t'?
    <unknown>:0: error: too many errors emitted, stopping now
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:A shell task failed with exit code 65:
    2015-05-24 22:06:05.058 xcodebuild[43324:3111771] [MT] PluginLoading: Required plug-in compatibility UUID E969541F-E6F9-4D25-8158-72DC3545A6C6 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SparkInspectorXcodePlugin.xcplugin' not present in DVTPlugInCompatibilityUUIDs
    2015-05-24 22:06:08.006 xcodebuild[43324:3111776]  DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-7706/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/SpecificationTypes/BuiltInSpecifications/Compilers/XCGccMakefileDependencies.m:77
    Details:  Failed to load dependencies output contents from ``/Users/tj/Library/Developer/Xcode/DerivedData/Swiftz-hkfgckzzsoctascbsjeuhqstulee/Build/Intermediates/SwiftCheck.build/Release-iphoneos/SwiftCheck-iOS.build/Objects-normal/arm64/Random.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “Random.d” couldn’t be opened because there is no such file." UserInfo=0x7fb1e60c31d0 {NSFilePath=/Users/tj/Library/Developer/Xcode/DerivedData/Swiftz-hkfgckzzsoctascbsjeuhqstulee/Build/Intermediates/SwiftCheck.build/Release-iphoneos/SwiftCheck-iOS.build/Objects-normal/arm64/Random.d, NSUnderlyingError=0x7fb1e60d7a50 "The operation couldn’t be completed. No such file or directory"}. User info: {
        NSFilePath = "/Users/tj/Library/Developer/Xcode/DerivedData/Swiftz-hkfgckzzsoctascbsjeuhqstulee/Build/Intermediates/SwiftCheck.build/Release-iphoneos/SwiftCheck-iOS.build/Objects-normal/arm64/Random.d";
        NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
    }.
    Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, void (^__strong)(NSString *__strong))
    Thread:   <NSThread: 0x7fb1e60c3210>{number = 9, name = (null)}
    Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
    2015-05-24 22:06:08.023 xcodebuild[43324:3111776]  DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-7706/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/SpecificationTypes/BuiltInSpecifications/Compilers/XCGccMakefileDependencies.m:77
    Details:  Failed to load dependencies output contents from ``/Users/tj/Library/Developer/Xcode/DerivedData/Swiftz-hkfgckzzsoctascbsjeuhqstulee/Build/Intermediates/SwiftCheck.build/Release-iphoneos/SwiftCheck-iOS.build/Objects-normal/arm64/Rose.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “Rose.d” couldn’t be opened because there is no such file." UserInfo=0x7fb1e0fe6630 {NSFilePath=/Users/tj/Library/Developer/Xcode/DerivedData/Swiftz-hkfgckzzsoctascbsjeuhqstulee/Build/Intermediates/SwiftCheck.build/Release-iphoneos/SwiftCheck-iOS.build/Objects-normal/arm64/Rose.d, NSUnderlyingError=0x7fb1e3c75010 "The operation couldn’t be completed. No such file or directory"}. User info: {
        NSFilePath = "/Users/tj/Library/Developer/Xcode/DerivedData/Swiftz-hkfgckzzsoctascbsjeuhqstulee/Build/Intermediates/SwiftCheck.build/Release-iphoneos/SwiftCheck-iOS.build/Objects-normal/arm64/Rose.d";
        NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
    }.
    Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, void (^__strong)(NSString *__strong))
    Thread:   <NSThread: 0x7fb1e60c3210>{number = 9, name = (null)}
    Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
    2015-05-24 22:06:08.040 xcodebuild[43324:3111776]  DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-7706/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/SpecificationTypes/BuiltInSpecifications/Compilers/XCGccMakefileDependencies.m:77
    Details:  Failed to load dependencies output contents from ``/Users/tj/Library/Developer/Xcode/DerivedData/Swiftz-hkfgckzzsoctascbsjeuhqstulee/Build/Intermediates/SwiftCheck.build/Release-iphoneos/SwiftCheck-iOS.build/Objects-normal/arm64/State.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “State.d” couldn’t be opened because there is no such file." UserInfo=0x7fb1e3cddc30 {NSFilePath=/Users/tj/Library/Developer/Xcode/DerivedData/Swiftz-hkfgckzzsoctascbsjeuhqstulee/Build/Intermediates/SwiftCheck.build/Release-iphoneos/SwiftCheck-iOS.build/Objects-normal/arm64/State.d, NSUnderlyingError=0x7fb1e3cde830 "The operation couldn’t be completed. No such file or directory"}. User info: {
        NSFilePath = "/Users/tj/Library/Developer/Xcode/DerivedData/Swiftz-hkfgckzzsoctascbsjeuhqstulee/Build/Intermediates/SwiftCheck.build/Release-iphoneos/SwiftCheck-iOS.build/Objects-normal/arm64/State.d";
        NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
    }.
    Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, void (^__strong)(NSString *__strong))
    Thread:   <NSThread: 0x7fb1e60c3210>{number = 9, name = (null)}
    Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
    2015-05-24 22:06:08.059 xcodebuild[43324:3111776]  DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-7706/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/SpecificationTypes/BuiltInSpecifications/Compilers/XCGccMakefileDependencies.m:77
    Details:  Failed to load dependencies output contents from ``/Users/tj/Library/Developer/Xcode/DerivedData/Swiftz-hkfgckzzsoctascbsjeuhqstulee/Build/Intermediates/SwiftCheck.build/Release-iphoneos/SwiftCheck-iOS.build/Objects-normal/arm64/Test.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “Test.d” couldn’t be opened because there is no such file." UserInfo=0x7fb1e6248e50 {NSFilePath=/Users/tj/Library/Developer/Xcode/DerivedData/Swiftz-hkfgckzzsoctascbsjeuhqstulee/Build/Intermediates/SwiftCheck.build/Release-iphoneos/SwiftCheck-iOS.build/Objects-normal/arm64/Test.d, NSUnderlyingError=0x7fb1e6267fe0 "The operation couldn’t be completed. No such file or directory"}. User info: {
        NSFilePath = "/Users/tj/Library/Developer/Xcode/DerivedData/Swiftz-hkfgckzzsoctascbsjeuhqstulee/Build/Intermediates/SwiftCheck.build/Release-iphoneos/SwiftCheck-iOS.build/Objects-normal/arm64/Test.d";
        NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
    }.
    Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, void (^__strong)(NSString *__strong))
    Thread:   <NSThread: 0x7fb1e60c3210>{number = 9, name = (null)}
    Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
    2015-05-24 22:06:08.077 xcodebuild[43324:3111776]  DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-7706/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/SpecificationTypes/BuiltInSpecifications/Compilers/XCGccMakefileDependencies.m:77
    Details:  Failed to load dependencies output contents from ``/Users/tj/Library/Developer/Xcode/DerivedData/Swiftz-hkfgckzzsoctascbsjeuhqstulee/Build/Intermediates/SwiftCheck.build/Release-iphoneos/SwiftCheck-iOS.build/Objects-normal/arm64/Testable.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “Testable.d” couldn’t be opened because there is no such file." UserInfo=0x7fb1e3cdf740 {NSFilePath=/Users/tj/Library/Developer/Xcode/DerivedData/Swiftz-hkfgckzzsoctascbsjeuhqstulee/Build/Intermediates/SwiftCheck.build/Release-iphoneos/SwiftCheck-iOS.build/Objects-normal/arm64/Testable.d, NSUnderlyingError=0x7fb1e3cdf840 "The operation couldn’t be completed. No such file or directory"}. User info: {
        NSFilePath = "/Users/tj/Library/Developer/Xcode/DerivedData/Swiftz-hkfgckzzsoctascbsjeuhqstulee/Build/Intermediates/SwiftCheck.build/Release-iphoneos/SwiftCheck-iOS.build/Objects-normal/arm64/Testable.d";
        NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
    }.
    Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, void (^__strong)(NSString *__strong))
    Thread:   <NSThread: 0x7fb1e60c3210>{number = 9, name = (null)}
    Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
    ** BUILD FAILED **
    
    
    The following build commands failed:
        CompileSwift normal arm64 /Users/tj/Development/Comb/Carthage/Checkouts/Swiftz/Carthage/Checkouts/SwiftCheck/SwiftCheck/Arbitrary.swift
        CompileSwift normal arm64 /Users/tj/Development/Comb/Carthage/Checkouts/Swiftz/Carthage/Checkouts/SwiftCheck/SwiftCheck/Check.swift
        CompileSwift normal arm64 /Users/tj/Development/Comb/Carthage/Checkouts/Swiftz/Carthage/Checkouts/SwiftCheck/SwiftCheck/Combinators.swift
        CompileSwift normal arm64 /Users/tj/Development/Comb/Carthage/Checkouts/Swiftz/Carthage/Checkouts/SwiftCheck/SwiftCheck/Gen.swift
        CompileSwift normal arm64 /Users/tj/Development/Comb/Carthage/Checkouts/Swiftz/Carthage/Checkouts/SwiftCheck/SwiftCheck/Lattice.swift
        CompileSwift normal arm64 /Users/tj/Development/Comb/Carthage/Checkouts/Swiftz/Carthage/Checkouts/SwiftCheck/SwiftCheck/Modifiers.swift
        CompileSwift normal arm64 /Users/tj/Development/Comb/Carthage/Checkouts/Swiftz/Carthage/Checkouts/SwiftCheck/SwiftCheck/Operators.swift
        CompileSwift normal arm64 /Users/tj/Development/Comb/Carthage/Checkouts/Swiftz/Carthage/Checkouts/SwiftCheck/SwiftCheck/Property.swift
        CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
    (9 failures)
    
    bugreport 
    opened by griotspeak 12
  • Should fmap use <§> for consistency with function application: §?

    Should fmap use <§> for consistency with function application: §?

    In Haskell, I think <$> was chosen for fmap, because $ is used for function application. Perhaps this consistency should be brought to Swiftz's fmap.

    Should fmap use <§> for consistency with function application: §?

    opened by ryanbooker 12
  • [FEAT-17211]-iOS-add-securityconfig-json-on-iOS-repos

    [FEAT-17211]-iOS-add-securityconfig-json-on-iOS-repos

    What's in this pull request?

    Add securityconfig.json file in the root directory of the repository as PRs are complaining with the automated comment:

    securityconfig.json file is missing.

    https://arnoldmedia.jira.com/browse/FEAT-17211

    Solution

    Added securityconfig.json file in the root directory that contains the project file File securityconfig.json just needs to be added in filesystem and there is no need to add the file to project.

    securityconfig.json file content: { "team": "Berlin", "team_owner": "Dan Eckert", "team_poc": "Dimitrios Georgakopoulos", "risk_assessment": { "usesDeidentifiedData": false, "sourcedFromPHIorPII": false, "appPubliclyAccessible": true, "containsPII": true, "containsPHI": true } }

    opened by ishwardeo-omni 0
  • Migrated to Xcode 11  swift 5 and supporting Swiftx new version

    Migrated to Xcode 11 swift 5 and supporting Swiftx new version

    What's in this pull request?

    Provided support for xcode 11 and swift 5 and updated

    Why merge this pull request?

    Updated the dependency like swiftcheck for supporting xcode 11 and swift 5

    @joshvera @ryanbooker @josephlord @dtchepak Please review and merge

    opened by pushp1989 0
  • Swiftz-Swift.h is not produced in Headers folder of Framework

    Swiftz-Swift.h is not produced in Headers folder of Framework

    Version

    Tag 0.6.3

    Reproducible also on

    commit 556236ad2d7c7420eea4301cf69b09575905a508 (HEAD -> master, origin/master, origin/HEAD)
    Merge: 5afb898 4915ce0
    Author: Robert Widmann <[email protected]>
    Date:   Sun Apr 22 09:15:25 2018 -0400
    

    Environment

    macOS High Sierra, 10.13.4 (17E202)

    Description

    Swiftz-Swfit.h header file is not produced when the framework is archived

    Steps To Reproduce

    carthage build --archive

    Expected Result

    Swiftz-Swfit.h header file is produced when the framework is archived

    Actual Result

    Swiftz-Swfit.h header file is not produced when the framework is archived

    Additional information

    The file is relatively important since carthage uses it to determine whether a binary artifact is still valid in the build Carthage/Build folder when using --cache-builds

    See https://github.com/Carthage/Carthage/issues/2619

    opened by tmspzz 0
  • Updated name of file containing Cartesian.

    Updated name of file containing Cartesian.

    The Cartesian Monoidal Functor "Cartesian" was in Monoidal.swift. This commit just renames the file to match the protocol it contains.

    What's in this pull request?

    The commit merely changes the filename Monoidal.swift to Cartesian.swift to match the protocol it contains.

    Why merge this pull request?

    It will be more obvious to folks which file to open when looking for the Cartesian protocol.

    What's worth discussing about this pull request?

    Probably not much.

    What downsides are there to merging this pull request?

    None.

    opened by natechan 0
  • Cocoapods: support for newest versions

    Cocoapods: support for newest versions

    Description

    It seems Swiftz specs are not available in main repo of Cocoapods

    pod search Swiftz
    -> Swiftz (0.5.0)
       Swiftz is a Swift library for functional programming.
       pod 'Swiftz', '~> 0.5.0'
       - Homepage: https://github.com/typelift/Swiftz
       - Source:   https://github.com/typelift/Swiftz.git
       - Versions: 0.5.0, 0.4.0, 0.3.1, 0.3.0, 0.2.4, 0.2.2 [master repo]
    

    I see that Cocoapods is not mentionned in Readme as setup, so I am just wondering if it is supported or not

    Expected Result

    Upload missing versions to Cocoapods trunk

    opened by netbe 2
Releases(0.8.0)
  • 0.8.0(Mar 29, 2019)

  • 0.7.0(Nov 4, 2017)

  • 0.6.3(Apr 2, 2017)

  • 0.6.2(Mar 15, 2017)

  • 0.6.1(Nov 20, 2016)

  • 0.6.0(Sep 18, 2016)

  • v0.5.1(Sep 6, 2016)

    ⚠️ Swiftz now requires Swift 2.3 ⚠️

    In addition to bumping the version requirements, we now include support for the Monoidal typeclass.

    Source code(tar.gz)
    Source code(zip)
  • v0.5.0(Mar 24, 2016)

  • v0.4.0(Jan 4, 2016)

    :warning: Breaking Changes Ahead :warning:

    Swiftz has just turned 0.4.0! Here's what we changed:

    • Swiftz now has watchOS and tvOS targets.
    • JSON support has been moved into the new Tyro framework. Point your package manager accordingly!
    • Swiftz no longer links with Foundation.
    • More structures now have lawful tests.
    • Writer now has a friend, the Reader monad.
    • Tuple2 has been removed entirely.
    • Unit has been added.
    Source code(tar.gz)
    Source code(zip)
  • v0.3.1(Oct 6, 2015)

  • v0.3.0(Sep 16, 2015)

    :warning: Breaking Changes Ahead :warning:

    Swiftz now fully supports Swift 2.0 in all its two-point-oh glory. Changes due to language updates include:

    • Removed all the boxing
    • No, seriously, it's all gone. Use the Identity Functor instead.
    • Removed EitherBF,Either is now a Bifunctor on its own
    • Many, many free functions have been moved into extensions.
    • Our Dictionary extension now comes with a full set of useful functions and combinators.
    • Functions in the Character extension have been changed to property getters.
    • Array is now a Monoid
    • Proxy has been added
    • The Writer Monad has been added
    • Num has been renamed to NumericType
    • The RealType and IntegralType protocols have been added
    • Ratio has been added
    • Arrow Extensions have been brought back
    • Result<T> has been removed. Please use Either<ErrorType, T>
    • Infinite Streams have been added
    • While we're on the subject of Streams, have you seen our new framework Aquifer?

    Overall Framework changes include:

    • Lenses have been split into their own package, Focus.
    • Operators have been split into their own package and standardized throughout all of TypeLift.
    • Added the Foldable typeclass
    • Additions to the Applicative and Monad typeclasses have been added in the form of the ApplicativeOps and MonadOps typeclasses
    • More tests now use SwiftCheck, also more tests in general!
    Source code(tar.gz)
    Source code(zip)
  • v0.2.4(Jun 1, 2015)

  • v0.2.3(May 31, 2015)

    • Strings are now first class citizens of this framework!
    • Fixes the deployment target of the iOS and OS X framework.
    • Re-enables support for Travis and Xcode 6.3.x.

    :warning: Breaking Changes Ahead :warning:

    This is the last release of Swiftz that defines the (deprecated) concurrency abstractions. Transition all code from Swiftz to Concurrent now!

    Source code(tar.gz)
    Source code(zip)
  • v0.2.2(May 19, 2015)

  • v0.2.1(May 14, 2015)

    Deprecates all concurrency abstractions and removes any support Swiftz may have had for them. These abstractions will continue to function for 2 more dot releases. After that they will be removed. Please migrate existing code to Concurrent.framework.

    Source code(tar.gz)
    Source code(zip)
  • v0.2.0(May 9, 2015)

    Welp, we did it. Swiftz now fully supports Swift 1.2 along with a huge number of fixes and improvements. Unfortunately in keeping up with the neighborhood we've lost any semblance of support from Travis. Our build status will stay firmly in the red until they can give us a box running 10.10 to build on.

    Such is life.

    Anyhow, changes:

    • Full support for Swift 1.2
    • General and sweeping changes to documentation
    • Updates to code formatting and whitespace control
    • Testing is now done using SwiftCheck along with XCTest. In future versions we will go SwiftCheck only
    • Added extreme(_:_:) the dual to span(_:_:)
    • Lists can now be initialized with arrays directly.
    • Maybe is now a Monad
    • Proper operators for Functor, Applicative, and Monad methods have been added to List and Maybe
    • Maybe now supports a fold, fromMaybe(), and case analysis, maybe()
    • Int and UInt now have Num instances
    • coalesce has been temporarily removed.
    • Set has been removed
    • State is now Applicative and a Monad
    • String.lines() and String.unlines() are more efficient
    • scanl now behaves properly when given the empty list
    Source code(tar.gz)
    Source code(zip)
  • v0.1.4(Feb 8, 2015)

    This release contains numerous improvements to Set and Array.

    Set:

    • Adds reduce, partition, and remove.
    • Adds toList/toArray

    Array:

    • Adds a matcher for destructuring.
    • Adds head/tail to ArrayExt
    • Adds take and drop to ArrayExt
    • Simplifies the definition of many combinators with the matcher.
    Source code(tar.gz)
    Source code(zip)
  • v0.1.3(Feb 8, 2015)

    Improvements to JSON:

    • The decoding mechanism now uses Self constraints.
    • Direct instances of JSONDecodable types now replace the old shims.
    • JSONDecodable is easier to adopt for custom types like NSURL, NSString, NSDecimalNumber, etc.
    • Adds support for traversing into nested JSON objects.

    General Improvements:

    • Adds the Monoid Coproduct of Monoids (Dither).
    • Updates to the latest Swiftx

    Bug Fixes:

    • Unifies the Sectioning mechanism with Swiftx.
    • splitAt(_:, _:) now works on lists where n is larger than list.count (h/t @hffmnn)
    • Fixes the Carthage build by codesigning and copying the framework on testing builds.
    Source code(tar.gz)
    Source code(zip)
  • v0.1.2(Jan 30, 2015)

  • v0.1.1(Jan 29, 2015)

    Simplifies the Num, Semigroup, and Monoid protocols.

    • Prefer Self declarations over associated types.
    • Make certain invariants (e.g. the identity element) class variables.
    • Simplify multi-parameter Monoids and Semigroups with newtype-style structures.
    • Adds the First and Last Monoids.
    • Adds the Nil Adjunction Semigroup.
    Source code(tar.gz)
    Source code(zip)
  • v0.1.0(Jan 26, 2015)

    Swiftz is a library of higher-level types and functional abstractions in Swift. This release includes

    Data Types

    • ArrayZipper
    • Chan
    • Future/GCDExecutionContext
    • HList
    • Iso
    • IxCont, IxStore, IxMultiStore, IxState
    • JSON
    • Lens
    • List
    • MVar
    • Maybe
    • Sum, Product, Min, Max
    • Num
    • Prism
    • Set
    • Those

    Typeclasses

    • Applicative
    • Arrow
    • Bifunctor
    • Bounded
    • Category
    • Comonad
    • Copointed
    • Functor
    • Semigroup, Monoid
    • Pointed

    Extensions

    • Array
    • Character
    • Dictionary
    • Optional
    • Tuples
    Source code(tar.gz)
    Source code(zip)
Owner
TypeLift
Libraries to simplify development of Swift programs by utilising the type system.
TypeLift
Functional programming in Swift

Swiftz Swiftz is a Swift library for functional programming. It defines functional data structures, functions, idioms, and extensions that augment the

TypeLift 3.3k Dec 25, 2022
🏹 Bow is a cross-platform library for Typed Functional Programming in Swift

Bow is a cross-platform library for Typed Functional Programming in Swift. Documentation All documentation and API reference is published in our websi

Bow 613 Dec 20, 2022
Functional programming in Swift

Swiftz Swiftz is a Swift library for functional programming. It defines functional data structures, functions, idioms, and extensions that augment the

TypeLift 3.3k Jan 6, 2023
Functional chaining and promises in Swift

Forbind Functional chaining and promises in Swift Note: still in an experimental state. Everything could change. I would love some feedback on this. W

Ulrik Flænø Damm 45 Sep 1, 2022
Collection of must-have functional Swift tools

NOTE: This project has been merged with and superceded by Rob Rix's Result µframework. LlamaKit Collection of must-have functional tools. Trying to be

null 619 Aug 5, 2022
A functional utility belt implemented as Swift 2.0 protocol extensions.

Oriole [![CI Status](http://img.shields.io/travis/Tyler Thompson/Oriole.svg?style=flat)](https://travis-ci.org/Tyler Thompson/Oriole) Oriole is a set

Tyler Paul Thompson 11 Aug 10, 2019
Functional JSON parsing library for Swift

Argo Argo is a library that lets you extract models from JSON or similar structures in a way that's concise, type-safe, and easy to extend. Using Argo

thoughtbot, inc. 3.5k Jan 7, 2023
Functional data types and functions for any project

Swiftx Swiftx is a Swift library containing functional abstractions and extensions to the Swift Standard Library. Swiftx is a smaller and simpler way

TypeLift 219 Aug 30, 2022
Swift µframework with extensions for the Optional Type

OptionalExtensions Why? Swift's Optional is pretty awesome, but it can always get better. This repository is an humble attempt to add some utility met

Rui Peres 183 Dec 15, 2022
Infix operators for monadic functions in Swift

Indecipherable symbols that some people claim have actual meaning. Please see the documentation for installation instructions. What's included? Import

thoughtbot, inc. 825 Dec 7, 2022
A set of Swift extensions for standard types and classes.

ExSwift Set of Swift extensions for standard types and classes. Installation Because of Xcode errors it's not possible to integrate this project with

Pierluigi D'Andrea 3.4k Dec 27, 2022
🏹 Bow is a cross-platform library for Typed Functional Programming in Swift

Bow is a cross-platform library for Typed Functional Programming in Swift. Documentation All documentation and API reference is published in our websi

Bow 613 Dec 20, 2022
Functional programming in Swift

Swiftz Swiftz is a Swift library for functional programming. It defines functional data structures, functions, idioms, and extensions that augment the

TypeLift 3.3k Dec 25, 2022
Functional programming tools and experiments in Swift.

Funky The documentation (courtesy of realm/jazzy) is available here: https://brynbellomy.github.io/Funky Master branch is currently compatible with: S

Bryn Bellomy 12 May 2, 2017
Swift µframework of simple functional programming tools

Prelude This is a Swift µframework providing a number of simple functions that I use in many of my other frameworks. Rather than continue to reimpleme

Rob Rix 405 Jun 29, 2022
Functional programming in Swift

Swiftz Swiftz is a Swift library for functional programming. It defines functional data structures, functions, idioms, and extensions that augment the

TypeLift 3.3k Dec 25, 2022
🏹 Bow is a cross-platform library for Typed Functional Programming in Swift

Bow is a cross-platform library for Typed Functional Programming in Swift. Documentation All documentation and API reference is published in our websi

Bow 613 Dec 20, 2022
An experimental functional programming language with dependent types, inspired by Swift and Idris.

Kara An experimental functional programming language with dependent types, inspired by Swift and Idris. Motivation Development of Kara is motivated by

null 40 Sep 17, 2022
iOS native app demo with Xcode and Swift using MVVM architecture and Apple's Combine framework for functional reactive programming, all with UIKit

iOS (Swift 5): MVVM test with Combine and UIKit MVVM and functional reactive programming (FRP) are very used in iOS development inside companies. Here

Koussaïla BEN MAMAR 2 Dec 31, 2021
Functional programming in Swift

Swiftz Swiftz is a Swift library for functional programming. It defines functional data structures, functions, idioms, and extensions that augment the

TypeLift 3.3k Jan 6, 2023