Skip to content

Commit

Permalink
style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz authored and paulcadman committed Jan 26, 2024
1 parent 45b6c9d commit 368772a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 6 additions & 1 deletion app/Commands/Dev/Tree/Compile/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions app/Commands/Dev/Tree/Compile/Options.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 368772a

Please sign in to comment.