Skip to content

Commit

Permalink
Use FunctionalPHP\FantasyLand
Browse files Browse the repository at this point in the history
  • Loading branch information
widmogrod committed Feb 18, 2018
1 parent 64d0898 commit 3eb9199
Show file tree
Hide file tree
Showing 70 changed files with 148 additions and 532 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "widmogrod/php-functional",
"description": "Functors, Applicative and Monads are fascinating concept. Purpose of this library is to explore them in OOP PHP world.",
"require": {
"php": ">=7.1"
"php": ">=7.1",
"functional-php/fantasy-land": "^1"
},
"require-dev": {
"phpunit/phpunit": "^6",
Expand Down
49 changes: 47 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/FreeBddStyleDSLTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace example;

use Widmogrod\FantasyLand\Functor;
use FunctionalPHP\FantasyLand\Functor;
use Widmogrod\Monad\Free\MonadFree;
use Widmogrod\Monad\Free\Pure;
use Widmogrod\Monad\State;
Expand Down
2 changes: 1 addition & 1 deletion example/FreeCalculatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace example;

use Widmogrod\FantasyLand\Functor;
use FunctionalPHP\FantasyLand\Functor;
use Widmogrod\Monad\Free\MonadFree;
use Widmogrod\Monad\Free\Pure;
use Widmogrod\Monad\Identity;
Expand Down
2 changes: 1 addition & 1 deletion example/FreeMonadTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace example2;

use Widmogrod\FantasyLand\Functor;
use FunctionalPHP\FantasyLand\Functor;
use Widmogrod\Functional as f;
use Widmogrod\Monad\Free as ff;
use Widmogrod\Monad\Free\MonadFree;
Expand Down
11 changes: 0 additions & 11 deletions src/FantasyLand/Applicative.php

This file was deleted.

15 changes: 0 additions & 15 deletions src/FantasyLand/Apply.php

This file was deleted.

19 changes: 0 additions & 19 deletions src/FantasyLand/Chain.php

This file was deleted.

12 changes: 0 additions & 12 deletions src/FantasyLand/Comonad.php

This file was deleted.

15 changes: 0 additions & 15 deletions src/FantasyLand/Extend.php

This file was deleted.

18 changes: 0 additions & 18 deletions src/FantasyLand/Foldable.php

This file was deleted.

17 changes: 0 additions & 17 deletions src/FantasyLand/Functor.php

This file was deleted.

11 changes: 0 additions & 11 deletions src/FantasyLand/Monad.php

This file was deleted.

13 changes: 0 additions & 13 deletions src/FantasyLand/Monoid.php

This file was deleted.

17 changes: 0 additions & 17 deletions src/FantasyLand/Pointed.php

This file was deleted.

17 changes: 0 additions & 17 deletions src/FantasyLand/Semigroup.php

This file was deleted.

15 changes: 0 additions & 15 deletions src/FantasyLand/Setoid.php

This file was deleted.

19 changes: 0 additions & 19 deletions src/FantasyLand/Traversable.php

This file was deleted.

10 changes: 5 additions & 5 deletions src/Functional/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
namespace Widmogrod\Functional;

use Widmogrod\Common\ValueOfInterface;
use Widmogrod\FantasyLand\Applicative;
use Widmogrod\FantasyLand\Foldable;
use Widmogrod\FantasyLand\Functor;
use Widmogrod\FantasyLand\Monad;
use Widmogrod\FantasyLand\Traversable;
use FunctionalPHP\FantasyLand\Applicative;
use FunctionalPHP\FantasyLand\Foldable;
use FunctionalPHP\FantasyLand\Functor;
use FunctionalPHP\FantasyLand\Monad;
use FunctionalPHP\FantasyLand\Traversable;
use Widmogrod\Primitive\Listt;
use Widmogrod\Primitive\ListtCons;

Expand Down
2 changes: 1 addition & 1 deletion src/Functional/listt.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Widmogrod\Functional;

use Widmogrod\FantasyLand\Foldable;
use FunctionalPHP\FantasyLand\Foldable;
use Widmogrod\Primitive\Listt;
use Widmogrod\Primitive\ListtCons;
use Widmogrod\Useful\SnapshotIterator;
Expand Down
4 changes: 2 additions & 2 deletions src/Functional/monoid.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace Widmogrod\Functional;

use Widmogrod\FantasyLand\Monoid;
use Widmogrod\FantasyLand\Semigroup;
use FunctionalPHP\FantasyLand\Monoid;
use FunctionalPHP\FantasyLand\Semigroup;

const emptyM = 'Widmogrod\Functional\emptyM';

Expand Down
2 changes: 1 addition & 1 deletion src/Functional/setoid.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Widmogrod\Functional;

use Widmogrod\FantasyLand\Setoid;
use FunctionalPHP\FantasyLand\Setoid;

const equal = 'Widmogrod\Functional\equal';

Expand Down
Loading

0 comments on commit 3eb9199

Please sign in to comment.