Skip to content

Commit

Permalink
Re-order TRecord in InfernoType to preserve existing serialization (
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharth-krishna committed Mar 19, 2024
1 parent 2541d3e commit 2b4f431
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions inferno-types/CHANGELOG.md
@@ -1,6 +1,9 @@
# Revision History for inferno-types
*Note*: we use https://pvp.haskell.org/ (MAJOR.MAJOR.MINOR.PATCH)

## 0.4.2.0 -- 2024-03-18
* Re-order `TRecord` in `InfernoType` so that existing serialization doesn't break

## 0.4.1.0 -- 2024-03-18
* HLint everything

Expand Down
2 changes: 1 addition & 1 deletion inferno-types/inferno-types.cabal
@@ -1,6 +1,6 @@
cabal-version: >=1.10
name: inferno-types
version: 0.4.1.0
version: 0.4.2.0
synopsis: Core types for Inferno
description: Core types for the Inferno language
category: DSL,Scripting
Expand Down
4 changes: 2 additions & 2 deletions inferno-types/src/Inferno/Types/Syntax.hs
Expand Up @@ -279,12 +279,12 @@ data InfernoType
| TBase BaseType
| TArr InfernoType InfernoType
| TArray InfernoType
| -- | A record type containing *at least* the given fields (with types) and a row variable representing any potential other fields
TRecord (Map.Map Ident InfernoType) RestOfRecord
| TSeries InfernoType
| TOptional InfernoType
| TTuple (TList InfernoType)
| TRep InfernoType
| -- | A record type containing *at least* the given fields (with types) and a row variable representing any potential other fields
TRecord (Map.Map Ident InfernoType) RestOfRecord
deriving (Show, Eq, Ord, Data, Generic, ToJSON, FromJSON, NFData, Hashable)
deriving anyclass (Serialize)

Expand Down

0 comments on commit 2b4f431

Please sign in to comment.