mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 18:21:47 +03:00
75032a7164
* Emit warning for fixities with no export modifiers This is to help update all the existing code to program with explicit fixity export directives in preparation for the behavioral change where they will become private by default.
15 lines
272 B
Idris
15 lines
272 B
Idris
|
|
import Data.Fin
|
|
|
|
private autobind infixr 0 >>
|
|
private autobind infixr 0 >=
|
|
|
|
(>>) : Monad m => m a -> (a -> m b) -> m b
|
|
(>>) = (>>=)
|
|
|
|
(>=) : Monad m => m a -> (a -> m b) -> m b
|
|
(>=) = (>>=)
|
|
|
|
both : Maybe (Nat, Nat) -> Maybe Nat
|
|
both m = (MkPair x y := m) >>= Just (x + y)
|