Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jm wip foldable type class #55

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
dbb5abf
Configure slevomat rule to be PSR12 compliant
jost125 Dec 16, 2021
5ffed09
Remove unhelping rule
jost125 Jan 6, 2022
144092f
Upgrade phpstan
jost125 Jan 6, 2022
fdea269
[BC] Rework applicatives, monads, function currying
jost125 Dec 15, 2021
a83a27c
Add some doc on monad/applicative abstraction
jost125 Jan 6, 2022
1d1bb6b
[BC] Bump php version to 7.4
jost125 Jan 6, 2022
fb37d03
Disable check for arrow function
jost125 Jan 6, 2022
9766998
Disable 120 chars for comments
jost125 Jan 6, 2022
bd8ef5f
Support lifting with up to 30 fixed arguments
jost125 Jan 6, 2022
e3d0111
Support currying with up to 30 fixed arguments
jost125 Jan 6, 2022
b9c669a
Remove phpstan prefixes
jost125 Jan 13, 2022
b97f466
Update doc for function currying
jost125 Jan 14, 2022
5545f4d
fixup! [BC] Rework applicatives, monads, function currying
jost125 Jan 14, 2022
b2b5726
fixup! Update doc for function currying
jost125 Jan 21, 2022
b145037
Update doc for type-classes
jost125 Jan 21, 2022
cd47021
Use shorter php 8.1 syntax in docs
jost125 Jan 21, 2022
330175f
fixup! Update doc for type-classes
jost125 Jan 21, 2022
ecd43eb
Add previous exception to failure
jost125 Jan 21, 2022
07e4a2b
Implement Iterable1 typeclass
jost125 Jan 21, 2022
18645a0
Use Iterable1 in our structs
jost125 Jan 21, 2022
1d725c5
Document Iterable1
jost125 Jan 21, 2022
5baabdd
fixup! Use shorter php 8.1 syntax in docs
jost125 Jan 21, 2022
f0a7b37
Separate and update Option doc into own file
jost125 Jan 21, 2022
91beed6
Separate and update TrySafe doc
jost125 Jan 21, 2022
4275a9c
fixup! Separate and update Option doc into own file
jost125 Jan 21, 2022
bec8bb8
fixup! Separate and update TrySafe doc
jost125 Jan 21, 2022
2dd5ef2
fixup! fixup! Update doc for function currying
jost125 Jan 21, 2022
e7f46f2
Separate lift into own document
jost125 Jan 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
php: ['7.3', '7.4', '8.0', '8.1']
php: ['7.4', '8.0', '8.1']

steps:
- name: "Checkout"
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:

strategy:
matrix:
php: ['7.3', '7.4', '8.0', '8.1']
php: ['7.4', '8.0', '8.1']

steps:
- name: "Checkout"
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ test:
$(MAKE) fmt-check

phpstan:
docker run -it --rm -v ${PWD}:/app -w /app php:7.3-cli-alpine php -d error_reporting=-1 -d memory_limit=-1 bin/phpstan --ansi analyse
docker run -it --rm -v ${PWD}:/app -w /app php:7.4-cli-alpine php -d error_reporting=-1 -d memory_limit=-1 bin/phpstan --ansi analyse

phpunit:
docker run -it --rm -v ${PWD}:/app -w /app php:7.3-cli-alpine php -d error_reporting=-1 bin/phpunit --colors=always -c phpunit.xml
docker run -it --rm -v ${PWD}:/app -w /app php:7.4-cli-alpine php -d error_reporting=-1 bin/phpunit --colors=always -c phpunit.xml

fmt-check:
docker run -it --rm -v ${PWD}:/app -w /app php:7.3-cli-alpine php bin/phpcs --standard=./ruleset.xml --extensions=php --tab-width=4 -sp ./src ./tests
docker run -it --rm -v ${PWD}:/app -w /app php:7.4-cli-alpine php bin/phpcs --standard=./ruleset.xml --extensions=php --tab-width=4 -sp ./src ./tests

fmt:
docker run -it --rm -v ${PWD}:/app -w /app php:7.3-cli-alpine php bin/phpcbf --standard=./ruleset.xml --extensions=php --tab-width=4 -sp ./src ./tests
docker run -it --rm -v ${PWD}:/app -w /app php:7.4-cli-alpine php bin/phpcbf --standard=./ruleset.xml --extensions=php --tab-width=4 -sp ./src ./tests
Loading