Skip to content

Commit

Permalink
Rename >> : IO -> IO -> IO to >>>
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcadman committed Jun 21, 2024
1 parent 4fb6c9c commit 290f67f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Stdlib/System/IO/Base.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import Stdlib.Data.Fixity open;
builtin IO
axiom IO : Type;

syntax operator >> seq;
syntax operator >>> seq;
builtin IO-sequence
axiom >> : IO → IO → IO;
axiom >>> : IO → IO → IO;
2 changes: 1 addition & 1 deletion Stdlib/System/IO/Bool.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ builtin bool-print
axiom printBool : Bool → IO;

printBoolLn (b : Bool) : IO :=
printBool b >> printString "\n";
printBool b >>> printString "\n";
3 changes: 2 additions & 1 deletion Stdlib/System/IO/Int.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ import Stdlib.System.IO.String open;
builtin int-print
axiom printInt : Int → IO;

printIntLn (i : Int) : IO := printInt i >> printString "\n";
printIntLn (i : Int) : IO :=
printInt i >>> printString "\n";
3 changes: 2 additions & 1 deletion Stdlib/System/IO/Nat.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ import Stdlib.System.IO.String open;
builtin nat-print
axiom printNat : Nat → IO;

printNatLn (n : Nat) : IO := printNat n >> printString "\n";
printNatLn (n : Nat) : IO :=
printNat n >>> printString "\n";
2 changes: 1 addition & 1 deletion Stdlib/System/IO/String.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ builtin IO-readline
axiom readLn : (String → IO) → IO;

printStringLn (s : String) : IO :=
printString s >> printString "\n";
printString s >>> printString "\n";

0 comments on commit 290f67f

Please sign in to comment.