Skip to content

Commit

Permalink
Merge pull request #62 from liyishuai/assoc
Browse files Browse the repository at this point in the history
Make <$> and <*> left associative
  • Loading branch information
gmalecha authored May 20, 2019
2 parents c0c934c + 15900db commit f27a18a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion theories/Structures/Applicative.v
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Polymorphic Class Applicative@{d c} (T : Type@{d} -> Type@{c}) :=
}.

Module ApplicativeNotation.
Notation "f <*> x" := (ap f x) (at level 51, right associativity).
Notation "f <*> x" := (ap f x) (at level 51, left associativity).
End ApplicativeNotation.
Import ApplicativeNotation.

Expand Down
2 changes: 1 addition & 1 deletion theories/Structures/Functor.v
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ Polymorphic Definition PFunctor_From_Functor@{d c p}
Global Existing Instance PFunctor_From_Functor.

Module FunctorNotation.
Notation "f <$> x" := (@pfmap _ _ _ _ _ f x) (at level 51, right associativity).
Notation "f <$> x" := (@pfmap _ _ _ _ _ f x) (at level 51, left associativity).
End FunctorNotation.

0 comments on commit f27a18a

Please sign in to comment.