mirror of
https://github.com/github/semantic.git
synced 2025-01-01 19:55:34 +03:00
Derive a Generic1 instance for Domain.
This commit is contained in:
parent
e8a4749653
commit
7b9e1c0d88
@ -1,4 +1,4 @@
|
|||||||
{-# LANGUAGE DeriveFunctor #-}
|
{-# LANGUAGE DeriveFunctor, DeriveGeneric #-}
|
||||||
module Analysis.Effect.Domain
|
module Analysis.Effect.Domain
|
||||||
( -- * Domain effect
|
( -- * Domain effect
|
||||||
Domain(..)
|
Domain(..)
|
||||||
@ -8,8 +8,9 @@ module Analysis.Effect.Domain
|
|||||||
) where
|
) where
|
||||||
|
|
||||||
import Control.Effect.Carrier
|
import Control.Effect.Carrier
|
||||||
|
import GHC.Generics (Generic1)
|
||||||
|
|
||||||
data Domain term value m k
|
data Domain term value m k
|
||||||
= Abstract term (value -> m k)
|
= Abstract term (value -> m k)
|
||||||
| Concretize value (term -> m k)
|
| Concretize value (term -> m k)
|
||||||
deriving (Functor)
|
deriving (Functor, Generic1)
|
||||||
|
Loading…
Reference in New Issue
Block a user