Skip to content

Commit

Permalink
Merge branch 'main' into feature/non-overlapping-initial-placement
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Nov 29, 2024
2 parents ae68661 + c7678f3 commit c1ece01
Show file tree
Hide file tree
Showing 17 changed files with 811 additions and 148 deletions.
421 changes: 343 additions & 78 deletions example/recursive-containers.sw

Large diffs are not rendered by default.

8 changes: 1 addition & 7 deletions src/swarm-engine/Swarm/Game/CESK.hs
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,6 @@ data Frame
instance ToJSON Frame where
toJSON = genericToJSON optionsMinimize

instance FromJSON Frame where
parseJSON = genericParseJSON optionsMinimize

-- | A continuation is just a stack of frames.
type Cont = [Frame]

Expand All @@ -184,7 +181,7 @@ type Addr = Int
-- | 'Store' represents a store, /i.e./ memory, indexing integer
-- locations to 'Value's.
data Store = Store {next :: Addr, mu :: IntMap Value}
deriving (Show, Eq, Generic, FromJSON, ToJSON)
deriving (Show, Eq, Generic, ToJSON)

emptyStore :: Store
emptyStore = Store 0 IM.empty
Expand Down Expand Up @@ -269,9 +266,6 @@ data CESK
instance ToJSON CESK where
toJSON = genericToJSON optionsMinimize

instance FromJSON CESK where
parseJSON = genericParseJSON optionsMinimize

-- | Is the CESK machine in a final (finished) state? If so, extract
-- the final value and store.
finalValue :: CESK -> Maybe Value
Expand Down
2 changes: 1 addition & 1 deletion src/swarm-engine/Swarm/Game/State/Substate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ data REPLStatus
-- entered. The @Maybe Value@ starts out as 'Nothing' and gets
-- filled in with a result once the command completes.
REPLWorking Polytype (Maybe Value)
deriving (Eq, Show, Generic, FromJSON, ToJSON)
deriving (Eq, Show, Generic, ToJSON)

data WinStatus
= -- | There are one or more objectives remaining that the player
Expand Down
Loading

0 comments on commit c1ece01

Please sign in to comment.