Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Standard unicode operators in purescript

Tags:

purescript

Looking at this:

  • https://github.com/purescript/purescript/issues/1929

I see there is support for unicode in purescript, e.g.

id :: ∀ a. a -> a

Is there a list of default operators somewhere?

like image 969
levant pied Avatar asked Mar 10 '23 14:03

levant pied


1 Answers

The available "default" symbols are just those that are part of the syntax:

  • (forall) for types
  • (::) for type annotations
  • (->) for function types and cases
  • (<-) for do binds
  • (=>) for class constraints
  • (<=) for superclass implications

Some libraries and project preludes provide additional unicode operators for library code.

like image 110
gb. Avatar answered Mar 24 '23 01:03

gb.