Skip to content
This repository has been archived by the owner on Apr 21, 2018. It is now read-only.

Refinement symbol #12

Closed
barrucadu opened this issue Jun 6, 2017 · 0 comments
Closed

Refinement symbol #12

barrucadu opened this issue Jun 6, 2017 · 0 comments

Comments

@barrucadu
Copy link
Owner

barrucadu commented Jun 6, 2017

There are two problems with the current syntax:

  1. -[- is not a valid Haskell operator name, because someone could do this:
instance Num a => Num [a] where
    fromIntegral n = [fromInteger n]
    a - b = [sum a - sum b]
  ...

> 3 -[- 6 ]
 9
  1. The real operator is actually read as "is refined by", not "refines". So it's backwards.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant