Skip to content

Commit 60439c6

Browse files
authored
Merge pull request #92 from widmogrod/feature/fantasy-land
Use FunctionalPHP\FantasyLand
2 parents 64d0898 + 3eb9199 commit 60439c6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+148
-532
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "widmogrod/php-functional",
33
"description": "Functors, Applicative and Monads are fascinating concept. Purpose of this library is to explore them in OOP PHP world.",
44
"require": {
5-
"php": ">=7.1"
5+
"php": ">=7.1",
6+
"functional-php/fantasy-land": "^1"
67
},
78
"require-dev": {
89
"phpunit/phpunit": "^6",

composer.lock

Lines changed: 47 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/FreeBddStyleDSLTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace example;
66

7-
use Widmogrod\FantasyLand\Functor;
7+
use FunctionalPHP\FantasyLand\Functor;
88
use Widmogrod\Monad\Free\MonadFree;
99
use Widmogrod\Monad\Free\Pure;
1010
use Widmogrod\Monad\State;

example/FreeCalculatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace example;
66

7-
use Widmogrod\FantasyLand\Functor;
7+
use FunctionalPHP\FantasyLand\Functor;
88
use Widmogrod\Monad\Free\MonadFree;
99
use Widmogrod\Monad\Free\Pure;
1010
use Widmogrod\Monad\Identity;

example/FreeMonadTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace example2;
66

7-
use Widmogrod\FantasyLand\Functor;
7+
use FunctionalPHP\FantasyLand\Functor;
88
use Widmogrod\Functional as f;
99
use Widmogrod\Monad\Free as ff;
1010
use Widmogrod\Monad\Free\MonadFree;

src/FantasyLand/Applicative.php

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/FantasyLand/Apply.php

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/FantasyLand/Chain.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/FantasyLand/Comonad.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/FantasyLand/Extend.php

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/FantasyLand/Foldable.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/FantasyLand/Functor.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/FantasyLand/Monad.php

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/FantasyLand/Monoid.php

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/FantasyLand/Pointed.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/FantasyLand/Semigroup.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/FantasyLand/Setoid.php

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/FantasyLand/Traversable.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/Functional/functions.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
namespace Widmogrod\Functional;
66

77
use Widmogrod\Common\ValueOfInterface;
8-
use Widmogrod\FantasyLand\Applicative;
9-
use Widmogrod\FantasyLand\Foldable;
10-
use Widmogrod\FantasyLand\Functor;
11-
use Widmogrod\FantasyLand\Monad;
12-
use Widmogrod\FantasyLand\Traversable;
8+
use FunctionalPHP\FantasyLand\Applicative;
9+
use FunctionalPHP\FantasyLand\Foldable;
10+
use FunctionalPHP\FantasyLand\Functor;
11+
use FunctionalPHP\FantasyLand\Monad;
12+
use FunctionalPHP\FantasyLand\Traversable;
1313
use Widmogrod\Primitive\Listt;
1414
use Widmogrod\Primitive\ListtCons;
1515

src/Functional/listt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Widmogrod\Functional;
66

7-
use Widmogrod\FantasyLand\Foldable;
7+
use FunctionalPHP\FantasyLand\Foldable;
88
use Widmogrod\Primitive\Listt;
99
use Widmogrod\Primitive\ListtCons;
1010
use Widmogrod\Useful\SnapshotIterator;

src/Functional/monoid.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
namespace Widmogrod\Functional;
66

7-
use Widmogrod\FantasyLand\Monoid;
8-
use Widmogrod\FantasyLand\Semigroup;
7+
use FunctionalPHP\FantasyLand\Monoid;
8+
use FunctionalPHP\FantasyLand\Semigroup;
99

1010
const emptyM = 'Widmogrod\Functional\emptyM';
1111

src/Functional/setoid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Widmogrod\Functional;
66

7-
use Widmogrod\FantasyLand\Setoid;
7+
use FunctionalPHP\FantasyLand\Setoid;
88

99
const equal = 'Widmogrod\Functional\equal';
1010

0 commit comments

Comments
 (0)