diff --git a/app/Commands/Dev/Tree/Compile/Base.hs b/app/Commands/Dev/Tree/Compile/Base.hs index c640579287..3595673649 100644 --- a/app/Commands/Dev/Tree/Compile/Base.hs +++ b/app/Commands/Dev/Tree/Compile/Base.hs @@ -50,7 +50,12 @@ runCPipeline :: Sem r () runCPipeline pa@PipelineArg {..} = do entryPoint <- getEntry pa - C.MiniCResult {..} <- getRight (run (runReader entryPoint (runError (treeToMiniC _pipelineArgTable :: Sem '[Error JuvixError, Reader EntryPoint] C.MiniCResult)))) + C.MiniCResult {..} <- + getRight + . run + . runReader entryPoint + . runError @JuvixError + $ treeToMiniC _pipelineArgTable cFile <- inputCFile _pipelineArgFile embed @IO (writeFile (toFilePath cFile) _resultCCode) outfile <- Compile.outputFile _pipelineArgOptions _pipelineArgFile diff --git a/app/Commands/Dev/Tree/Compile/Options.hs b/app/Commands/Dev/Tree/Compile/Options.hs index 84885fd0ae..4b18273a97 100644 --- a/app/Commands/Dev/Tree/Compile/Options.hs +++ b/app/Commands/Dev/Tree/Compile/Options.hs @@ -6,11 +6,10 @@ where import Commands.Extra.Compile.Options import CommonOptions -import Data.List.NonEmpty qualified as NonEmpty treeSupportedTargets :: NonEmpty CompileTarget treeSupportedTargets = - NonEmpty.fromList + nonEmpty' [ TargetWasm32Wasi, TargetNative64, TargetAsm