Bow is a library for Typed Functional Programming in Swift.
Clone or download
truizlop and juancazalla Add API docs to Syntax group (#110)
* Add docs to BooleanFunctions

* Add docs to Reverse

* Add docs to Curry

* Add docs to Memoization

* Add docs to Predef

* Add docs to PartialApplication

* Add docs to Typeclass

* Add docs to Kind

* Update Sources/Bow/Syntax/Curry.swift

Co-Authored-By: truizlop <truizlop@gmail.com>
Latest commit 9613a16 Jan 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add templates for issues and pull requests (#93) Jan 16, 2019
Bow.xcodeproj Add API docs to Syntax group (#110) Jan 22, 2019
BowPlayground.playground Add a playground to test Apr 26, 2018
Sources Add API docs to Syntax group (#110) Jan 22, 2019
Tests Rename data types (#112) Jan 17, 2019
docs Read GA id from config (#105) Jan 16, 2019
scripts Fix release process (#42) Jul 31, 2018
.gitignore Jekyll Site (#83) Jan 8, 2019
.swift-version Added Travis Support Apr 2, 2018
.travis.yml Split Bow in multiple targets (#60) Nov 16, 2018
Bow-BrightFutures-Info.plist Split Bow in multiple targets (#60) Nov 16, 2018
Bow-BrightFuturesTests-Info.plist Split Bow in multiple targets (#60) Nov 16, 2018
Bow-Effects-Info.plist Split Bow in multiple targets (#60) Nov 16, 2018
Bow-EffectsLaws-Info.plist Split Bow in multiple targets (#60) Nov 16, 2018
Bow-EffectsTests-Info.plist Split Bow in multiple targets (#60) Nov 16, 2018
Bow-Free-Info.plist Split Bow in multiple targets (#60) Nov 16, 2018
Bow-FreeTests-Info.plist Split Bow in multiple targets (#60) Nov 16, 2018
Bow-Generic-Info.plist Split Bow in multiple targets (#60) Nov 16, 2018
Bow-GenericTests-Info.plist Split Bow in multiple targets (#60) Nov 16, 2018
Bow-Optics-Info.plist Split Bow in multiple targets (#60) Nov 16, 2018
Bow-OpticsTests-Info.plist Split Bow in multiple targets (#60) Nov 16, 2018
Bow-RecursionSchemes-Info.plist Split Bow in multiple targets (#60) Nov 16, 2018
Bow-RecursionSchemesTests-Info.plist Split Bow in multiple targets (#60) Nov 16, 2018
Bow-Result-Info.plist Split Bow in multiple targets (#60) Nov 16, 2018
Bow-ResultTests-Info.plist Split Bow in multiple targets (#60) Nov 16, 2018
Bow-Rx-Info.plist Split Bow in multiple targets (#60) Nov 16, 2018
Bow-RxTests-Info.plist Split Bow in multiple targets (#60) Nov 16, 2018
Bow.podspec Update podspecs for release of version 0.3.0 (#84) Jan 8, 2019
BowBrightFutures.podspec Update podspecs for release of version 0.3.0 (#84) Jan 8, 2019
BowEffects.podspec Update podspecs for release of version 0.3.0 (#84) Jan 8, 2019
BowFree.podspec Update podspecs for release of version 0.3.0 (#84) Jan 8, 2019
BowGeneric.podspec Update podspecs for release of version 0.3.0 (#84) Jan 8, 2019
BowLaws-Info.plist Split Bow in multiple targets (#60) Nov 16, 2018
BowOptics.podspec Update podspecs for release of version 0.3.0 (#84) Jan 8, 2019
BowRecursionSchemes.podspec Update podspecs for release of version 0.3.0 (#84) Jan 8, 2019
BowResult.podspec Update podspecs for release of version 0.3.0 (#84) Jan 8, 2019
BowRx.podspec Update podspecs for release of version 0.3.0 (#84) Jan 8, 2019
Cartfile Fix broken dependencies (#64) Nov 21, 2018
Cartfile.private Fix broken dependencies (#64) Nov 21, 2018
Cartfile.resolved Split Bow in multiple targets (#60) Nov 16, 2018
LICENSE Add license (#56) Oct 23, 2018
Package.resolved Fix package manager (#69) Nov 23, 2018
Package.swift Fix package manager (#69) Nov 23, 2018
README.md Add gitter badge Jan 22, 2019
favicon.png Jekyll Site (#83) Jan 8, 2019

README.md

Build Status codecov Gitter

Bow is a library for Typed Functional Programming in Swift.

Modules

Bow is split in multiple modules that can be consumed independently. These modules are:

  • Bow: core library. Contains Higher Kinded Types emulation, function manipulation utilities, Typeclasses, Data Types, Monad Transformers and instances for primitive types.
  • BowOptics: module to work with different optics.
  • BowRecursionSchemes: module to work with recursion schemes.
  • BowFree: module to work with Free Monads.
  • BowGeneric: module to work with generic data types.
  • BowEffects: module to work with effects.
  • BowResult: module to provide an integration with Result.
  • BowBrightFutures: module to provide an integration with BrightFutures.
  • BowRx: module to provide an integration with RxSwift.

Bow is available using CocoaPods, Carthage and Swift Package Manager.

CocoaPods

You can consume each Bow module as a separate pod. You can add these lines to your Podfile at your convenience:

pod "Bow",                 "~> 0.3.0"
pod "BowOptics",           "~> 0.3.0"
pod "BowRecursionSchemes", "~> 0.3.0"
pod "BowFree",             "~> 0.3.0"
pod "BowGeneric",          "~> 0.3.0"
pod "BowResult",           "~> 0.3.0"
pod "BowEffects",          "~> 0.3.0"
pod "BowRx",               "~> 0.3.0"
pod "BowBrightFutures",    "~> 0.3.0"

Carthage

Carthage will download the whole Bow project, but it will compile individual frameworks for each module that you can use separately. Add this line to your Cartfile:

github "bow-swift/Bow" ~> 0.3.0

Swift Package Manager

Create a Package.swift file similar to the next one and use the dependencies at your convenience.

// swift-tools-version:4.0

import PackageDescription

let package = Package(
    name: "BowTestProject",
    dependencies: [
        .package(url: "https://github.com/bow-swift/bow.git", from: "0.3.0")
    ],
    targets: [
        .target(name: "BowTestProject",
                dependencies: [
                    "Bow",
                    "BowOptics",
                    "BowRecursionSchemes",
                    "BowFree",
                    "BowGeneric",
                    "BowEffects",
                    "BowResult",
                    "BowRx",
                    "BowBrightFutures"]
        )
    ]
)

To build it, just run:

$ swift build

Contributing

If you want to contribute to this library, you can check the Issues to see some of the pending task.

How to run the project

If you don't have carthage, install it first:

brew install carthage

After this, grab all the project dependencies running:

carthage bootstrap

Now, you can open Bow.xcodeproj with Xcode and run the test to see that everything is working.

License

Copyright (C) 2018 The Bow Authors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.