Merge pull request #804 from erikd/master

yesod-bin/Devel.hs : Relax requirements on location of Application.hs.
This commit is contained in:
Michael Snoyman 2014-08-14 13:36:13 +03:00
commit 4adf6d89ba

View File

@ -416,7 +416,7 @@ checkCabalFile gpd = case D.condLibrary gpd of
unless (null unlisted) $ do
putStrLn "WARNING: the following source files are not listed in exposed-modules or other-modules:"
mapM_ putStrLn unlisted
when (D.fromString "Application" `notElem` D.exposedModules dLib) $
when ("Application" `notElem` (map (last . D.components) $ D.exposedModules dLib)) $
putStrLn "WARNING: no exposed module Application"
return (hsSourceDirs, dLib)