diff options
Diffstat (limited to 'src/pypeline/core/types/monad.py')
-rw-r--r-- | src/pypeline/core/types/monad.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pypeline/core/types/monad.py b/src/pypeline/core/types/monad.py index 34c7a35..a6ff269 100644 --- a/src/pypeline/core/types/monad.py +++ b/src/pypeline/core/types/monad.py @@ -17,6 +17,7 @@ # along with Pypeline. If not, see <http://www.gnu.org/licenses/>. # + # # Base monad class # @@ -34,7 +35,7 @@ class Monad(object): # Bind "Shove" operator # (>>) :: m a -> m b -> m b def __rshift__(self, other): - if not isinstance(other): + if not isinstance(other, Monad): raise ValueError("Must be a monadic type") return self >= (lambda _: other) |