Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/swarm-tournament/Swarm/Web/Tournament/Validate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,10 @@ initScenarioObject ::
ExceptT ScenarioInstantiationFailure IO (Scenario Elaborated)
initScenarioObject scenarioInputs content = do
rawYaml <- withExceptT YamlDecodeError . except . decodeEither' $ LBS.toStrict content
rawScenario <- withExceptT ScenarioParseFailure $
except $
parseEither (parseJSONE' scenarioInputs) rawYaml
rawScenario <-
withExceptT ScenarioParseFailure $
except $
parseEither (parseJSONE' scenarioInputs) rawYaml
res <- runError @SystemFailure $ process (rawScenario :: Scenario Raw)
withExceptT (ScenarioParseFailure . prettyString) (except res)

Expand Down