on master help sign in
Make the build process look nicer
a40cd3cEvan Czaplicki
Setup.hs+3−3
@@ -130,13 +130,13 @@ compileLibraries lbi = do
130 arg = Just [("Elm_datadir", rtd_c)]
130 arg = Just [("Elm_datadir", rtd_c)]
131 handle <- runProcess elm_c args Nothing arg Nothing Nothing Nothing
131 handle <- runProcess elm_c args Nothing arg Nothing Nothing Nothing
132 exitCode <- waitForProcess handle
132 exitCode <- waitForProcess handle
133− rawSystem doc_c [file]
134 return ( out_c </> replaceExtension file "elmo"
133 return ( out_c </> replaceExtension file "elmo"
135 , out_c </> replaceExtension file "elmi")
134 , out_c </> replaceExtension file "elmi")
136
135
137 setCurrentDirectory "libraries"
136 setCurrentDirectory "libraries"
138− files <- getFiles ".elm" "."
137+ paths <- getFiles ".elm" "."
139− files <- unzip `fmap` mapM make files
138+ files <- unzip `fmap` mapM make paths
139+ mapM_ (\path -> rawSystem doc_c [path]) paths
140 setCurrentDirectory ".."
140 setCurrentDirectory ".."
141 return files
141 return files
142
142
libraries/Prelude.elm+1
@@ -1,4 +1,5 @@
1module Prelude where
1module Prelude where
2+{-| Everything that is automatically imported -}
2
3
3import Basics (String)
4import Basics (String)
4import Maybe (Maybe)
5import Maybe (Maybe)