on master help sign in
replace main file with a pointer to the source root (#2687)

* language: compile everything in the source directory This removes the need to specify a 'main'. Instead we 'source' in daml.yaml should point to the source root directory.

commit3539a80649a9492aa1b47ed144e1b62d740512ec authorRobin Krom <robin@digitalasset.com> dateThu 29 Aug 2019, 13:42 (7 years ago) parent0669506
1 file changed+3−4
src/Development/IDE/Core/Rules.hs+3−4
src/Development/IDE/Core/Rules.hs+3−4
@@ -127,11 +127,10 @@ getParsedModule file = use GetParsedModule file
127127
128128-- | Write interface files and hie files to the location specified by the given options.
129129writeIfacesAndHie ::
130− NormalizedFilePath -> NormalizedFilePath -> Action (Maybe [NormalizedFilePath])
131−writeIfacesAndHie ifDir main =
130+ NormalizedFilePath -> [NormalizedFilePath] -> Action (Maybe [NormalizedFilePath])
131+writeIfacesAndHie ifDir files =
132132 runMaybeT $ do
133− files <- transitiveModuleDeps <$> useE GetDependencies main
134− tcms <- usesE TypeCheck (main : files)
133+ tcms <- usesE TypeCheck files
135134 session <- lift $ useNoFile_ GhcSession
136135 liftIO $ concat <$> mapM (writeTcm session) tcms
137136 where