Verites / verigraph

Software specification and verification system based on graph rewriting
https://verites.github.io/verigraph/
Apache License 2.0
37 stars 4 forks source link

Type class for isomorphism checks #52

Closed ggazzi closed 7 years ago

ggazzi commented 7 years ago

We should probably have a type class for types with isomorphism checks, similar to Eq. Something like:

class Iso a where
  (~=) :: a -> a -> Bool

We could also have a shorthand for not . (~=), which could be either (~/=) or (/~=).

This would help with issue #4.

ggazzi commented 7 years ago

I'd rather avoid adding the shorthand for not . (~=) initially, and only add it if we write a lot of code that would be improved by it.

ggazzi commented 7 years ago

Done at 4d3bb49