GithubHelp home page GithubHelp logo

dragna / bow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bow-swift/bow

0.0 1.0 0.0 115.16 MB

Bow is a library for Typed Functional Programming in Swift.

Home Page: https://bow-swift.io

License: Other

Ruby 1.48% Swift 98.51% Shell 0.01%

bow's Introduction

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.
  • 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.4.0"
pod "BowOptics",           "~> 0.4.0"
pod "BowRecursionSchemes", "~> 0.4.0"
pod "BowFree",             "~> 0.4.0"
pod "BowGeneric",          "~> 0.4.0"
pod "BowEffects",          "~> 0.4.0"
pod "BowRx",               "~> 0.4.0"
pod "BowBrightFutures",    "~> 0.4.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.4.0

Swift Package Manager

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

// swift-tools-version:5.0

import PackageDescription

let package = Package(
    name: "BowTestProject",
    dependencies: [
        .package(url: "https://github.com/bow-swift/bow.git", from: "0.4.0")
    ],
    targets: [
        .target(name: "BowTestProject",
                dependencies: [
                    "Bow",
                    "BowOptics",
                    "BowRecursionSchemes",
                    "BowFree",
                    "BowGeneric",
                    "BowEffects",
                    "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.

bow's People

Contributors

antoniomateogomez avatar calvellido avatar conradomateu avatar gitter-badger avatar israelperezglez avatar miguelangel-dev avatar pietrocaselani avatar raulraja avatar truizlop avatar tylos avatar victorg1991 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.