mirror of
https://github.com/github/semantic.git
synced 2024-12-29 18:06:14 +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
|
||||
( -- * Domain effect
|
||||
Domain(..)
|
||||
@ -8,8 +8,9 @@ module Analysis.Effect.Domain
|
||||
) where
|
||||
|
||||
import Control.Effect.Carrier
|
||||
import GHC.Generics (Generic1)
|
||||
|
||||
data Domain term value m k
|
||||
= Abstract term (value -> m k)
|
||||
| Concretize value (term -> m k)
|
||||
deriving (Functor)
|
||||
deriving (Functor, Generic1)
|
||||
|
Loading…
Reference in New Issue
Block a user