Skip to content

Commit

Permalink
Swift playgrounds (#599)
Browse files Browse the repository at this point in the history
* make bow compatibles with swift playgrounds - fix foldable inference

* restore CI to use official nef version

minor changes
  • Loading branch information
miguelangel-dev committed May 4, 2020
1 parent 1961601 commit 17ff76f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
run: sudo xcode-select -s /Applications/Xcode_11.4.1.app/Contents/Developer
- name: Generate microsite
run: |
brew install https://raw.githubusercontent.com/bow-swift/homebrew-nef/master/nef.rb
brew update
brew install nef
brew install sourcekitten
gem install bundler -v 2.0.2
gem install cocoapods -v 1.9.1
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/nef-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
run: sudo xcode-select -s /Applications/Xcode_11.4.1.app/Contents/Developer
- name: Compile documentation
run: |
brew install https://raw.githubusercontent.com/bow-swift/homebrew-nef/master/nef.rb
brew update
brew install nef
gem install cocoapods -v 1.9.1
nef compile --project Documentation.app
2 changes: 1 addition & 1 deletion Sources/Bow/Typeclasses/Foldable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public extension Foldable {
option^.fold({ Eval.later({ Option.some(f(a)) }) },
{ b in g(a, Eval.now(b)).map(Option.some)^ })
})^
}).map { x in x^ }^
}).map { x in Option.fix(x) }^
}

/// Reduces the elements of a structure down to a single value by applying the provided aggregation function in a left-associative manner.
Expand Down

0 comments on commit 17ff76f

Please sign in to comment.