From f0f370f063e379d951f34c4eb001abca7675feee Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Wed, 18 Oct 2023 20:11:47 +0000 Subject: [PATCH] Apply hlint suggestion --- code/cwe/src/Security/CWE.hs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/cwe/src/Security/CWE.hs b/code/cwe/src/Security/CWE.hs index 49c3dcd3..25e3376c 100644 --- a/code/cwe/src/Security/CWE.hs +++ b/code/cwe/src/Security/CWE.hs @@ -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 @@ -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