Data instance

This commit is contained in:
Dmitry Zuikov 2024-05-17 06:23:23 +03:00
parent 864b359f44
commit 1f3cc7e4f9
2 changed files with 2 additions and 3 deletions

View File

@ -113,7 +113,7 @@ data Syntax c
= List (Context c) [Syntax c]
| Symbol (Context c) Id
| Literal (Context c) Literal
deriving stock (Generic)
deriving stock (Generic,Typeable)
instance Eq (Syntax c) where
@ -123,7 +123,7 @@ instance Eq (Syntax c) where
(==) _ _ = False
deriving instance (Data (Context ())) => Data (Syntax ())
-- deriving instance (Data (Context ())) => Data (Syntax ())
deriving instance (Data (Context C)) => Data (Syntax C)
instance Pretty (Syntax c) where
pretty (Literal _ ast) = pretty ast

View File

@ -20,7 +20,6 @@ import qualified Data.Set as Set
import Prettyprinter
import Data.Aeson
import Text.InterpolatedString.Perl6 (qc,q)
import Control.Monad.Identity
import Test.Hspec