Skip to content

Commit

Permalink
Stricter imports
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsnew committed Aug 23, 2014
1 parent 60422c8 commit 6f448aa
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/Main.hs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{-# OPTIONS_GHC -Wall #-}

import Control.Monad
import System.Directory
import System.Environment
import System.Exit
import System.FilePath
import Control.Monad (forM_)
import System.Directory (removeFile)
import System.Environment (getArgs)
import System.Exit (ExitCode (ExitSuccess, ExitFailure),
exitWith)
import System.FilePath (replaceExtension, (<.>), (</>))
import System.IO (hClose, openTempFile)
import System.Process
import System.Process (rawSystem)

import Elm.Internal.Paths as Elm
import qualified Elm.Internal.Paths as Elm
import qualified Paths_ElmIO as ElmIO

shareFile :: FilePath -> IO FilePath
Expand Down Expand Up @@ -90,7 +91,7 @@ main = do
removeFile $ "build" </> replaceExtension src "js"
removeFile $ "cache" </> replaceExtension src "elmi"
removeFile $ "cache" </> replaceExtension src "elmo"

-- Build output js file
code <- compile src elmFlags
handleCode code cleanSrc (buildJS src outfile >> cleanAll)
Expand Down

0 comments on commit 6f448aa

Please sign in to comment.