File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -206,16 +206,18 @@ createFiles tmpl = do
206206 createDirectoryIfMissing True message_dir
207207 let index_filename = message_dir </> " index.md"
208208 let toplvl_index =
209- unlines
209+ unlines $
210210 [ " ---" ,
211211 " title: " <> title tmpl,
212212 " summary: " <> summary tmpl,
213- " severity: " <> case severity tmpl of Warning -> " warning" ; Error -> " error" ,
214- " introduced: " <> introduced tmpl,
215- " ---" ,
216- " " ,
217- " Insert your error message here."
213+ " severity: " <> case severity tmpl of Warning -> " warning" ; Error -> " error"
218214 ]
215+ <> (case warningflag tmpl of Nothing -> [] ; Just flg -> [" flag: " <> flg])
216+ <> [ " introduced: " <> introduced tmpl,
217+ " ---" ,
218+ " " ,
219+ " Insert your error message here."
220+ ]
219221 writeFile index_filename toplvl_index
220222 putStrLn (" ·· Created file " <> index_filename <> " with these contents:" )
221223 putStrLn " "
You can’t perform that action at this time.
0 commit comments