mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
Derive Foldable, Functor, & Traversable instances for Domain.
This commit is contained in:
parent
3bafe21a23
commit
e5bfa87d86
@ -1,4 +1,4 @@
|
||||
{-# LANGUAGE FlexibleContexts, GeneralizedNewtypeDeriving, QuantifiedConstraints, StandaloneDeriving #-}
|
||||
{-# LANGUAGE DeriveTraversable, FlexibleContexts, GeneralizedNewtypeDeriving, QuantifiedConstraints, StandaloneDeriving #-}
|
||||
module Analysis.Domain
|
||||
( unit
|
||||
, bool
|
||||
@ -47,6 +47,7 @@ data Domain f a
|
||||
| String Text
|
||||
| Record [(Name, f a)]
|
||||
| Lam (Maybe Name) (Scope () f a)
|
||||
deriving (Foldable, Functor, Traversable)
|
||||
|
||||
deriving instance (Eq a, forall a . Eq a => Eq (f a), Monad f) => Eq (Domain f a)
|
||||
deriving instance (Ord a, forall a . Eq a => Eq (f a)
|
||||
|
Loading…
Reference in New Issue
Block a user