Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

Commit

Permalink
Update for latest compiler / add --debug flag for all elm files
Browse files Browse the repository at this point in the history
  • Loading branch information
evancz committed Oct 8, 2016
1 parent 2063ca4 commit 1a78fac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/backend/Compile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import System.Directory (removeFile)

import qualified Elm.Compiler as Compiler
import qualified Elm.Compiler.Module as Module
import qualified Elm.Package as Pkg
import qualified Elm.Utils as Utils
import qualified StaticFiles

Expand All @@ -23,7 +24,7 @@ compile filePath =
tempJsFile =
"it-is-safe-to-delete-this-file.js"
in
do result <- Utils.unwrappedRun "elm-make" [ "--yes", filePath, "--output=" ++ tempJsFile ]
do result <- Utils.unwrappedRun "elm-make" [ "--yes", "--debug", filePath, "--output=" ++ tempJsFile ]
case result of
Left (Utils.MissingExe msg) ->
return $ Left msg
Expand All @@ -36,7 +37,7 @@ compile filePath =
removeFile tempJsFile
source <- readFile filePath
return $ Right $ (,) code $
case Compiler.parseDependencies source of
case Compiler.parseDependencies Pkg.dummyName source of
Left _ ->
error "impossible"

Expand Down

0 comments on commit 1a78fac

Please sign in to comment.