You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: code/cwe/RenderCsvData.hs
+6-14Lines changed: 6 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
{- cabal:
3
3
build-depends: base, xml
4
4
-}
5
-
{-# LANGUAGE NamedFieldPuns #-}
5
+
{-# LANGUAGE NamedFieldPuns, PatternSynonyms #-}
6
6
--| Use this script to update the Security.CWE.Data module:
7
7
-- Download and extract https://cwe.mitre.org/data/xml/cwec_latest.xml.zip
8
8
-- Run the following command: cat cwec_v4.12.xml | ./RenderCsvData.hs | fourmolu --stdin-input-file ./src/Security/CWE/Data.hs > src/Security/CWE/Data.hs
@@ -24,21 +24,13 @@ data Weakness = Weakness
24
24
, wname::String
25
25
}
26
26
27
+
patternXElement name content <-XML.Element (XML.QName name _ _) _ content _
0 commit comments