mirror of
https://github.com/github/semantic.git
synced 2024-12-21 13:51:44 +03:00
Define an Eq1 instance for Syntax.
This commit is contained in:
parent
8884e58f43
commit
802fef2d5a
@ -2,6 +2,8 @@
|
|||||||
module Syntax where
|
module Syntax where
|
||||||
|
|
||||||
import Data.Aeson
|
import Data.Aeson
|
||||||
|
import Data.Functor.Classes
|
||||||
|
import Data.Functor.Classes.Eq.Generic
|
||||||
import Data.Functor.Listable
|
import Data.Functor.Listable
|
||||||
import Data.Mergeable
|
import Data.Mergeable
|
||||||
import GHC.Generics
|
import GHC.Generics
|
||||||
@ -170,3 +172,6 @@ instance Listable leaf => Listable1 (Syntax leaf) where
|
|||||||
|
|
||||||
instance (Listable leaf, Listable recur) => Listable (Syntax leaf recur) where
|
instance (Listable leaf, Listable recur) => Listable (Syntax leaf recur) where
|
||||||
tiers = tiers1
|
tiers = tiers1
|
||||||
|
|
||||||
|
instance Eq leaf => Eq1 (Syntax leaf) where
|
||||||
|
liftEq = genericLiftEq
|
||||||
|
Loading…
Reference in New Issue
Block a user