Closed s5bug closed 3 years ago
The "solution" here is slightly silly, but also standard practice in OCaml/ML world - just add spaces and use ( * )
instead.
I think we've intentionally kept the numeric tower quite short for now. The prelude is intentionally pretty minimal. Of course, it's pretty easy to swap out for your own.
Trying to define a custom infix operator that starts with a
*
throws an error because(*
starts a comment.It may be useful to look at https://typelevel.org/spire/guide.html for amulet so that
(+) : semiring 'a => 'a -> 'a -> 'a
, what I want to use amulet for partly revolves around making custom number types so typeclasses for those things would be useful.