Skip to content

Instantly share code, notes, and snippets.

@joneshf
Created February 23, 2014 17:11
Show Gist options
  • Save joneshf/9174142 to your computer and use it in GitHub Desktop.
Save joneshf/9174142 to your computer and use it in GitHub Desktop.
instance Eq (Ref a) where
...
instance Eq a => Eq [a] where
...
@joneshf
Copy link
Author

joneshf commented Feb 23, 2014

It will parse this as one instance declaration. The first Eq in line 1 as storage.type.purescript then attempts to consume everything up until the => in line 4 as part of the enatilment. finishing off with another storage.type.purescript on the Eq [a]

@joneshf
Copy link
Author

joneshf commented Feb 23, 2014

If the (Ref a) isn't in there, it will parse both declarations as separate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment