Skip to content

Commit 17ff76f

Browse files
Swift playgrounds (#599)
* make bow compatibles with swift playgrounds - fix foldable inference * restore CI to use official nef version minor changes
1 parent 1961601 commit 17ff76f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/deploy-docs.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
run: sudo xcode-select -s /Applications/Xcode_11.4.1.app/Contents/Developer
1616
- name: Generate microsite
1717
run: |
18-
brew install https://raw.githubusercontent.com/bow-swift/homebrew-nef/master/nef.rb
18+
brew update
19+
brew install nef
1920
brew install sourcekitten
2021
gem install bundler -v 2.0.2
2122
gem install cocoapods -v 1.9.1

.github/workflows/nef-compile.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
run: sudo xcode-select -s /Applications/Xcode_11.4.1.app/Contents/Developer
1313
- name: Compile documentation
1414
run: |
15-
brew install https://raw.githubusercontent.com/bow-swift/homebrew-nef/master/nef.rb
15+
brew update
16+
brew install nef
1617
gem install cocoapods -v 1.9.1
1718
nef compile --project Documentation.app

Sources/Bow/Typeclasses/Foldable.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public extension Foldable {
7171
option^.fold({ Eval.later({ Option.some(f(a)) }) },
7272
{ b in g(a, Eval.now(b)).map(Option.some)^ })
7373
})^
74-
}).map { x in x^ }^
74+
}).map { x in Option.fix(x) }^
7575
}
7676

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

0 commit comments

Comments
 (0)