on master help sign in
Make the build process look nicer
commita40cd3cc06ede321023ad780650ff730c294c3ba authorEvan Czaplicki <info@elm-lang.org> dateSun 15 Sep 2013, 14:00 (13 years ago) parent11f5f52
2 files changed+4−3
Setup.hs+3−3 libraries/Prelude.elm+1
Setup.hs+3−3
@@ -130,13 +130,13 @@ compileLibraries lbi = do
130130 arg = Just [("Elm_datadir", rtd_c)]
131131 handle <- runProcess elm_c args Nothing arg Nothing Nothing Nothing
132132 exitCode <- waitForProcess handle
133− rawSystem doc_c [file]
134133 return ( out_c </> replaceExtension file "elmo"
135134 , out_c </> replaceExtension file "elmi")
136135
137136 setCurrentDirectory "libraries"
138− files <- getFiles ".elm" "."
139− files <- unzip `fmap` mapM make files
137+ paths <- getFiles ".elm" "."
138+ files <- unzip `fmap` mapM make paths
139+ mapM_ (\path -> rawSystem doc_c [path]) paths
140140 setCurrentDirectory ".."
141141 return files
142142
libraries/Prelude.elm+1
@@ -1,4 +1,5 @@
11module Prelude where
2+{-| Everything that is automatically imported -}
23
34import Basics (String)
45import Maybe (Maybe)