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
206
206
createDirectoryIfMissing True message_dir
207
207
let index_filename = message_dir </> " index.md"
208
208
let toplvl_index =
209
- unlines
209
+ unlines $
210
210
[ " ---" ,
211
211
" title: " <> title tmpl,
212
212
" 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"
218
214
]
215
+ <> (case warningflag tmpl of Nothing -> [] ; Just flg -> [" flag: " <> flg])
216
+ <> [ " introduced: " <> introduced tmpl,
217
+ " ---" ,
218
+ " " ,
219
+ " Insert your error message here."
220
+ ]
219
221
writeFile index_filename toplvl_index
220
222
putStrLn (" ·· Created file " <> index_filename <> " with these contents:" )
221
223
putStrLn " "
You can’t perform that action at this time.
0 commit comments