From edd7a85f161f59ef7fb427bd7d50ad9bd508324b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Sodi=C4=87?= Date: Mon, 7 Oct 2024 21:05:46 +0200 Subject: [PATCH] Change type name --- waspc/src/Wasp/Project/Analyze.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/waspc/src/Wasp/Project/Analyze.hs b/waspc/src/Wasp/Project/Analyze.hs index 9967ac7f93..014105c7a5 100644 --- a/waspc/src/Wasp/Project/Analyze.hs +++ b/waspc/src/Wasp/Project/Analyze.hs @@ -85,7 +85,7 @@ data WaspTsFile data CompiledWaspJsFile -data DeclsJsonFile +data AppSpecDeclsJsonFile analyzeWaspFile :: Path' Abs (Dir WaspProjectDir) -> Psl.Schema.Schema -> WaspFile -> IO (Either [CompileError] [AS.Decl]) analyzeWaspFile waspDir prismaSchemaAst = \case @@ -138,7 +138,7 @@ executeMainWaspJsFile :: Path' Abs (Dir WaspProjectDir) -> Psl.Schema.Schema -> Path' Abs (File CompiledWaspJsFile) -> - IO (Either [CompileError] (Path' Abs (File DeclsJsonFile))) + IO (Either [CompileError] (Path' Abs (File AppSpecDeclsJsonFile))) executeMainWaspJsFile waspProjectDir prismaSchemaAst absCompiledMainWaspJsFile = do chan <- newChan (_, runExitCode) <- do @@ -167,7 +167,7 @@ executeMainWaspJsFile waspProjectDir prismaSchemaAst absCompiledMainWaspJsFile = absDeclsOutputFile = waspProjectDir dotWaspDirInWaspProjectDir [relfile|decls.json|] allowedEntityNames = Psl.Schema.getModelNames prismaSchemaAst -readDecls :: Psl.Schema.Schema -> Path' Abs (File DeclsJsonFile) -> IO (Either [CompileError] [AS.Decl]) +readDecls :: Psl.Schema.Schema -> Path' Abs (File AppSpecDeclsJsonFile) -> IO (Either [CompileError] [AS.Decl]) readDecls prismaSchemaAst declsJsonFile = runExceptT $ do entityDecls <- liftEither entityDeclsOrErrors remainingDecls <- ExceptT declsFromJsonOrError