Skip to content

Commit

Permalink
Apply hlint suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanCacqueray committed Dec 13, 2023
1 parent 0c68096 commit f0f370f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions code/cwe/src/Security/CWE.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
module Security.CWE (CWEID, unCWEID, mkCWEID, cweNames, cweIds) where

import Security.CWE.Data
Expand All @@ -27,4 +25,4 @@ cweNames = Map.fromList (coerce cweData)

-- | A map to lookup CWEID.
cweIds :: Map Text CWEID
cweIds = Map.fromList $ (\(k, v) -> (v, k)) <$> (coerce cweData)
cweIds = Map.fromList $ (\(k, v) -> (v, k)) <$> coerce cweData

0 comments on commit f0f370f

Please sign in to comment.