php-functional.git
6 years agoMerge pull request #68 from tPl0ch/feature/listt 3.4.0
Gabriel Habryn [Sun, 17 Dec 2017 15:57:06 +0000 (16:57 +0100)] 
Merge pull request #68 from tPl0ch/feature/listt

Implement `Listt::head` and `Listt::tail`

6 years agoFixing Code Standards violations
Thomas Ploch [Wed, 13 Dec 2017 17:42:12 +0000 (18:42 +0100)] 
Fixing Code Standards violations

6 years agoImplement `Listt::head` and `Listt::tail`
Thomas Ploch [Wed, 13 Dec 2017 17:34:15 +0000 (18:34 +0100)] 
Implement `Listt::head` and `Listt::tail`

This is a first draft on continuation for
https://github.com/widmogrod/php-functional/issues/46

Also added *Eris* randomized property test extension (QuickCheck port)

Implementation uses generators to treat all `iterable` the same way.

6 years agoMerge pull request #67 from widmogrod/feature/bdd-2
Gabriel Habryn [Wed, 13 Dec 2017 00:27:46 +0000 (01:27 +0100)] 
Merge pull request #67 from widmogrod/feature/bdd-2

Free Monad example that create simple DSL for BDD framework

6 years agoUpdate readme
widmogrod [Wed, 13 Dec 2017 00:21:32 +0000 (01:21 +0100)] 
Update readme

6 years agoUpdate readme about new example
widmogrod [Wed, 13 Dec 2017 00:14:58 +0000 (01:14 +0100)] 
Update readme about new example

6 years agoBDD test framework style implemented using Free Monad
widmogrod [Wed, 13 Dec 2017 00:10:04 +0000 (01:10 +0100)] 
BDD test framework style implemented using Free Monad

6 years agoMerge pull request #66 from widmogrod/feature/php-7-minimum 3.3.0
Gabriel Habryn [Tue, 12 Dec 2017 23:16:40 +0000 (00:16 +0100)] 
Merge pull request #66 from widmogrod/feature/php-7-minimum

update composer.json and require php >= 7.1

6 years agoexclude vendor
widmogrod [Tue, 12 Dec 2017 23:06:47 +0000 (00:06 +0100)] 
exclude vendor

6 years agoUpdate php-cs-fixer
widmogrod [Tue, 12 Dec 2017 22:56:11 +0000 (23:56 +0100)] 
Update php-cs-fixer

6 years agoupdate composer.json and require php >= 7.1
widmogrod [Tue, 12 Dec 2017 22:38:54 +0000 (23:38 +0100)] 
update composer.json and require php >= 7.1

6 years agoMerge pull request #65 from widmogrod/tPl0ch-feature/maybe-monoid 3.2.0
Gabriel Habryn [Tue, 12 Dec 2017 21:23:06 +0000 (22:23 +0100)] 
Merge pull request #65 from widmogrod/tPl0ch-feature/maybe-monoid

Maybe Monoid small improvements

6 years agoMake Maybe Monoid tests more sain
widmogrod [Tue, 12 Dec 2017 21:12:03 +0000 (22:12 +0100)] 
Make Maybe Monoid tests more sain

6 years agoImport function and Maybe classes
widmogrod [Tue, 12 Dec 2017 20:19:08 +0000 (21:19 +0100)] 
Import function and Maybe classes

6 years agoProvide more test examples to Maybe Monoid
widmogrod [Tue, 12 Dec 2017 20:17:33 +0000 (21:17 +0100)] 
Provide more test examples to Maybe Monoid

6 years agoMerge pull request #64 from tPl0ch/feature/maybe-monoid
Gabriel Habryn [Tue, 12 Dec 2017 20:30:34 +0000 (21:30 +0100)] 
Merge pull request #64 from tPl0ch/feature/maybe-monoid

Feature/maybe monoid

6 years agoMerge branch 'master' into feature/maybe-monoid
Gabriel Habryn [Tue, 12 Dec 2017 20:22:39 +0000 (21:22 +0100)] 
Merge branch 'master' into feature/maybe-monoid

6 years agoMerge pull request #63 from widmogrod/feature/free-ap
Gabriel Habryn [Tue, 12 Dec 2017 19:58:49 +0000 (20:58 +0100)] 
Merge pull request #63 from widmogrod/feature/free-ap

Feature/free ap

6 years agoFix missing namespace import in `MaybeMonoidTest`
Thomas Ploch [Tue, 12 Dec 2017 19:00:42 +0000 (20:00 +0100)] 
Fix missing namespace import in `MaybeMonoidTest`

6 years agoApply coding standard fixes for namespace imports
Thomas Ploch [Tue, 12 Dec 2017 17:32:57 +0000 (18:32 +0100)] 
Apply coding standard fixes for namespace imports

6 years agoImplement Monoid instance for Maybe data type
Jon Whelan [Fri, 28 Oct 2016 20:10:41 +0000 (15:10 -0500)] 
Implement Monoid instance for Maybe data type

6 years agoTest Applicative laws for Free2
widmogrod [Tue, 12 Dec 2017 16:08:33 +0000 (17:08 +0100)] 
Test Applicative laws for Free2

6 years agoUpdate test method names
widmogrod [Tue, 12 Dec 2017 16:08:14 +0000 (17:08 +0100)] 
Update test method names

6 years agoUpdate test method names
widmogrod [Tue, 12 Dec 2017 16:08:03 +0000 (17:08 +0100)] 
Update test method names

6 years agoMerge pull request #62 from widmogrod/feature/update-readme
Gabriel Habryn [Tue, 12 Dec 2017 11:14:03 +0000 (12:14 +0100)] 
Merge pull request #62 from widmogrod/feature/update-readme

Update readme

6 years agoUpdate readme
widmogrod [Mon, 11 Dec 2017 22:47:55 +0000 (23:47 +0100)] 
Update readme

6 years agoMerge pull request #61 from widmogrod/feature/free-2 2.0.0-beta3 3.1.0
Gabriel Habryn [Mon, 11 Dec 2017 22:44:07 +0000 (23:44 +0100)] 
Merge pull request #61 from widmogrod/feature/free-2

Another approach to implementation of free.

6 years agoRemove file
widmogrod [Mon, 11 Dec 2017 22:26:17 +0000 (23:26 +0100)] 
Remove file

6 years agoUpdate readme
widmogrod [Mon, 11 Dec 2017 22:12:18 +0000 (23:12 +0100)] 
Update readme

6 years agoPHP7 only
widmogrod [Mon, 11 Dec 2017 22:06:37 +0000 (23:06 +0100)] 
PHP7 only

6 years agoAnother implementation of free
widmogrod [Sun, 10 Dec 2017 23:39:09 +0000 (00:39 +0100)] 
Another implementation of free

6 years agoMerge pull request #60 from EduardoGR/EduardoGR-adding-contributing
Gabriel Habryn [Sat, 18 Nov 2017 19:19:16 +0000 (20:19 +0100)] 
Merge pull request #60 from EduardoGR/EduardoGR-adding-contributing

EduardoGR adding contributing file

6 years agoRename contributing.md to CONTRIBUTING.md
Eduardo García [Tue, 31 Oct 2017 01:55:03 +0000 (02:55 +0100)] 
Rename contributing.md to CONTRIBUTING.md

6 years agoCreate contributing.md
Eduardo García [Tue, 31 Oct 2017 01:50:47 +0000 (02:50 +0100)] 
Create contributing.md

6 years agoMerge pull request #59 from widmogrod/feature/code-quality-improvements
Gabriel Habryn [Sat, 12 Aug 2017 15:09:45 +0000 (17:09 +0200)] 
Merge pull request #59 from widmogrod/feature/code-quality-improvements

Disable some checks

6 years agoDisable some checks
widmogrod [Sat, 12 Aug 2017 15:01:20 +0000 (17:01 +0200)] 
Disable some checks

6 years agoMerge pull request #58 from widmogrod/feature/update-badge
Gabriel Habryn [Sat, 12 Aug 2017 14:58:02 +0000 (16:58 +0200)] 
Merge pull request #58 from widmogrod/feature/update-badge

code coverage

6 years agouse only one env
widmogrod [Sat, 12 Aug 2017 14:53:13 +0000 (16:53 +0200)] 
use only one env

6 years agounit -> test
widmogrod [Sat, 12 Aug 2017 14:47:22 +0000 (16:47 +0200)] 
unit -> test

6 years agocodeclimate
widmogrod [Sat, 12 Aug 2017 14:40:06 +0000 (16:40 +0200)] 
codeclimate

6 years agorever changes fron .travis.yml
widmogrod [Sat, 12 Aug 2017 12:17:05 +0000 (14:17 +0200)] 
rever changes fron .travis.yml

6 years agocode coverage
widmogrod [Sat, 12 Aug 2017 12:13:47 +0000 (14:13 +0200)] 
code coverage

6 years agoMerge pull request #57 from widmogrod/feature/code-climate-config
Gabriel Habryn [Sat, 12 Aug 2017 12:02:35 +0000 (14:02 +0200)] 
Merge pull request #57 from widmogrod/feature/code-climate-config

codeclimat

6 years agoAdd Codeclimate badge
widmogrod [Sat, 12 Aug 2017 11:34:40 +0000 (13:34 +0200)] 
Add Codeclimate badge

6 years agocodeclimat
widmogrod [Sat, 12 Aug 2017 11:30:46 +0000 (13:30 +0200)] 
codeclimat

6 years agoMerge pull request #55 from widmogrod/feature/free-monad
Gabriel Habryn [Mon, 26 Jun 2017 14:40:10 +0000 (16:40 +0200)] 
Merge pull request #55 from widmogrod/feature/free-monad

Free Monad in PHP. First implementation

6 years agophp5.6 compatibl
widmogrod [Mon, 26 Jun 2017 13:21:18 +0000 (15:21 +0200)] 
php5.6 compatibl

6 years agocomment code
widmogrod [Mon, 26 Jun 2017 11:16:12 +0000 (13:16 +0200)] 
comment code

6 years agoUpdate readme
widmogrod [Mon, 26 Jun 2017 11:12:43 +0000 (13:12 +0200)] 
Update readme

6 years agoanother way to write echo program
widmogrod [Mon, 26 Jun 2017 11:12:35 +0000 (13:12 +0200)] 
another way to write echo program

6 years agoImprove signatures
widmogrod [Sun, 25 Jun 2017 20:40:12 +0000 (22:40 +0200)] 
Improve signatures

6 years agoFix typo
widmogrod [Sun, 25 Jun 2017 19:19:28 +0000 (21:19 +0200)] 
Fix typo

6 years agoSmall improvements in code quality
widmogrod [Sun, 25 Jun 2017 19:16:50 +0000 (21:16 +0200)] 
Small improvements in code quality

6 years agoRemove var_dump
widmogrod [Wed, 14 Jun 2017 13:25:17 +0000 (15:25 +0200)] 
Remove var_dump

6 years agoFree Monad in PHP. First implementation
widmogrod [Sun, 11 Jun 2017 20:43:21 +0000 (22:43 +0200)] 
Free Monad in PHP. First implementation

7 years agoMerge pull request #53 from mattjmattj/fix/travis-hhvm
Gabriel Habryn [Sat, 4 Feb 2017 22:02:46 +0000 (23:02 +0100)] 
Merge pull request #53 from mattjmattj/fix/travis-hhvm

Fix travis build on HHVM

7 years agoFix travis build on HHVM
Matthias Jouan [Sat, 4 Feb 2017 14:37:50 +0000 (14:37 +0000)] 
Fix travis build on HHVM

Travis build fails because no HHVM version is specified, travis then tries
to build on a pretty old 3.3 version. Unfortunately, php-cs-fixer conflicts
with HHVM prior to version 3.9.

In this commit, we force an Ubuntu trusty in order to be able to choose a more
recent HHVM version, and set it to 3.12.

see https://docs.travis-ci.com/user/languages/php/#HHVM-versions for further details

7 years agoMerge pull request #51 from widmogrod/feature/cs-fixer
Gabriel Habryn [Thu, 5 Jan 2017 20:53:25 +0000 (21:53 +0100)] 
Merge pull request #51 from widmogrod/feature/cs-fixer

update php-cs-fixer

7 years agoupdate php-cs-fixer
widmogrod [Thu, 5 Jan 2017 20:39:23 +0000 (21:39 +0100)] 
update php-cs-fixer

7 years agoMerge pull request #44 from widmogrod/feature/reuse-listt
Gabriel Habryn [Sat, 29 Oct 2016 19:41:36 +0000 (21:41 +0200)] 
Merge pull request #44 from widmogrod/feature/reuse-listt

Slowly introduce listt instead of native php array

7 years agoSlowly introduce listt instead of native php array
widmogrod [Sun, 23 Oct 2016 22:45:04 +0000 (00:45 +0200)] 
Slowly introduce listt instead of native php array

7 years agoMerge pull request #43 from widmogrod/feature/improve-next
Gabriel Habryn [Mon, 24 Oct 2016 12:15:08 +0000 (14:15 +0200)] 
Merge pull request #43 from widmogrod/feature/improve-next

Fix traversable issue #30

7 years agoFix traversable issue #30
widmogrod [Sun, 23 Oct 2016 22:42:08 +0000 (00:42 +0200)] 
Fix traversable issue #30

7 years agoMerge pull request #40 from widmogrod/feature/improve-next
Gabriel Habryn [Sat, 22 Oct 2016 22:49:19 +0000 (00:49 +0200)] 
Merge pull request #40 from widmogrod/feature/improve-next

Fix reader monad test for php 7.1

7 years agomake tests for php 7.1 mandatory
widmogrod [Sat, 22 Oct 2016 22:47:22 +0000 (00:47 +0200)] 
make tests for php 7.1 mandatory

7 years agoFix reader monad test for php 7.1
widmogrod [Sat, 22 Oct 2016 22:44:06 +0000 (00:44 +0200)] 
Fix reader monad test for php 7.1

7 years agoMerge pull request #39 from widmogrod/feature/pure
Gabriel Habryn [Sat, 22 Oct 2016 22:39:22 +0000 (00:39 +0200)] 
Merge pull request #39 from widmogrod/feature/pure

Improve list applicative

7 years agoUpdate dockblock
widmogrod [Sat, 22 Oct 2016 22:35:34 +0000 (00:35 +0200)] 
Update dockblock

7 years agoListt appliactive has now valid implementation
widmogrod [Sat, 22 Oct 2016 22:29:20 +0000 (00:29 +0200)] 
Listt appliactive has now valid implementation

7 years agoMerge pull request #38 from widmogrod/feature/improvements
Gabriel Habryn [Sat, 22 Oct 2016 21:58:31 +0000 (23:58 +0200)] 
Merge pull request #38 from widmogrod/feature/improvements

Checkstype automation

7 years agoallow failures on hhvm
widmogrod [Sat, 22 Oct 2016 21:54:58 +0000 (23:54 +0200)] 
allow failures on hhvm

7 years agostandardise code base
widmogrod [Sat, 22 Oct 2016 21:48:35 +0000 (23:48 +0200)] 
standardise code base

7 years agoautomate code checking
widmogrod [Sat, 22 Oct 2016 21:47:42 +0000 (23:47 +0200)] 
automate code checking

7 years agodefine php-functional .php_cs
widmogrod [Sat, 22 Oct 2016 21:43:56 +0000 (23:43 +0200)] 
define php-functional .php_cs

7 years agoadd cs-fixer
widmogrod [Sat, 22 Oct 2016 21:05:04 +0000 (23:05 +0200)] 
add cs-fixer

7 years agoMerge pull request #37 from widmogrod/feature/product
Gabriel Habryn [Sat, 22 Oct 2016 20:57:12 +0000 (22:57 +0200)] 
Merge pull request #37 from widmogrod/feature/product

Introduce product primitive

7 years agoallow failures on 7.1
widmogrod [Sat, 22 Oct 2016 20:47:55 +0000 (22:47 +0200)] 
allow failures on 7.1

7 years agoadd php 7.1 to tests
widmogrod [Sat, 22 Oct 2016 20:29:42 +0000 (22:29 +0200)] 
add php 7.1 to tests

7 years agoIntroduce product primitive
widmogrod [Sat, 22 Oct 2016 20:27:27 +0000 (22:27 +0200)] 
Introduce product primitive

7 years agoMerge pull request #36 from widmogrod/feature/new-primitives
Gabriel Habryn [Sat, 22 Oct 2016 20:24:08 +0000 (22:24 +0200)] 
Merge pull request #36 from widmogrod/feature/new-primitives

New primitives

7 years agoIntroduce Sum primitive type + tests
widmogrod [Fri, 21 Oct 2016 23:23:18 +0000 (01:23 +0200)] 
Introduce Sum primitive type + tests

7 years agoadd Num primitive + test
widmogrod [Fri, 21 Oct 2016 23:21:20 +0000 (01:21 +0200)] 
add Num primitive + test

7 years agoadd missing file in composer
widmogrod [Fri, 21 Oct 2016 23:21:07 +0000 (01:21 +0200)] 
add missing file in composer

7 years agoRemove Primitive interface
widmogrod [Fri, 21 Oct 2016 23:20:43 +0000 (01:20 +0200)] 
Remove Primitive interface

7 years agoFxit typo
widmogrod [Fri, 21 Oct 2016 23:13:21 +0000 (01:13 +0200)] 
Fxit typo

7 years agoMerge pull request #32 from krtek4/reader_and_writer
Gabriel Habryn [Sat, 22 Oct 2016 20:20:18 +0000 (22:20 +0200)] 
Merge pull request #32 from krtek4/reader_and_writer

Reader and Writer monads. closes #28.

7 years agoupdate README
Gilles Crettenand [Sat, 22 Oct 2016 12:01:35 +0000 (14:01 +0200)] 
update README

7 years agofix coding style and typo
Gilles Crettenand [Fri, 21 Oct 2016 23:06:56 +0000 (01:06 +0200)] 
fix coding style and typo

7 years agosimplify ap implementation
Gilles Crettenand [Fri, 21 Oct 2016 23:06:48 +0000 (01:06 +0200)] 
simplify ap implementation

7 years agoensure we get a callable
Gilles Crettenand [Fri, 21 Oct 2016 23:06:08 +0000 (01:06 +0200)] 
ensure we get a callable

7 years agouse call_user_func as the other way fails on older PHP version
Gilles Crettenand [Fri, 21 Oct 2016 23:05:44 +0000 (01:05 +0200)] 
use call_user_func as the other way fails on older PHP version

7 years agofixup! replace StringMonoid with Stringg and explicitely require a Monoid
Gilles Crettenand [Fri, 21 Oct 2016 23:05:10 +0000 (01:05 +0200)] 
fixup! replace StringMonoid with Stringg and explicitely require a Monoid

7 years agoreplace StringMonoid with Stringg and explicitely require a Monoid
Gilles Crettenand [Fri, 21 Oct 2016 23:04:23 +0000 (01:04 +0200)] 
replace StringMonoid with Stringg and explicitely require a Monoid

7 years agoupdate README.md and test examples
Gilles Crettenand [Sun, 16 Oct 2016 19:50:42 +0000 (21:50 +0200)] 
update README.md and test examples

7 years agoWriter monad with tests
Gilles Crettenand [Sun, 16 Oct 2016 19:23:51 +0000 (21:23 +0200)] 
Writer monad with tests

7 years agoReader monad with tests
Gilles Crettenand [Sun, 16 Oct 2016 19:23:35 +0000 (21:23 +0200)] 
Reader monad with tests

7 years agoMerge pull request #34 from widmogrod/feature/collection-should-be-primitiv
Gabriel Habryn [Fri, 21 Oct 2016 23:11:05 +0000 (01:11 +0200)] 
Merge pull request #34 from widmogrod/feature/collection-should-be-primitiv

Move collection monad as a a List primitive

7 years agoMake examples more precise
widmogrod [Fri, 21 Oct 2016 23:02:59 +0000 (01:02 +0200)] 
Make examples more precise

7 years agoupdate readme
widmogrod [Fri, 21 Oct 2016 22:56:54 +0000 (00:56 +0200)] 
update readme

7 years agoAdapt monoid laws usage in listt
widmogrod [Fri, 21 Oct 2016 22:49:12 +0000 (00:49 +0200)] 
Adapt monoid laws usage in listt