From d55b7844f03fb19add725943b3dc11e02d6b4d22 Mon Sep 17 00:00:00 2001 From: rvcas Date: Fri, 8 Mar 2024 17:33:08 -0500 Subject: [PATCH] feat: impl serde for TypeAliasAnnotation --- crates/aiken-lang/src/tipo.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/aiken-lang/src/tipo.rs b/crates/aiken-lang/src/tipo.rs index 5ffc2c57..95442cae 100644 --- a/crates/aiken-lang/src/tipo.rs +++ b/crates/aiken-lang/src/tipo.rs @@ -23,14 +23,14 @@ mod pattern; mod pipe; pub mod pretty; -#[derive(Debug, Clone)] +#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] pub struct TypeAliasAnnotation { pub alias: String, pub parameters: Vec, pub annotation: Annotation, } -#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] +#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] pub enum Type { /// A nominal (named) type such as `Int`, `Float`, or a programmer defined /// custom type such as `Person`. The type can take other types as