We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0d2cbf commit c3674b0Copy full SHA for c3674b0
src/Stack/New.hs
@@ -197,6 +197,9 @@ applyTemplate project template nonceParams dir templateText = do
197
throwM (InvalidTemplate template (show e)))
198
when (M.null files) $
199
throwM (InvalidTemplate template "Template does not contain any files")
200
+ unless (any (".cabal" `isSuffixOf`) . M.keys $ files) $
201
+ throwM (InvalidTemplate template "Template does not contain a .cabal\
202
+ \ file")
203
liftM
204
M.fromList
205
(mapM
0 commit comments