summaryrefslogtreecommitdiff
path: root/compiler/GHC/Iface/Load.hs
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2020-02-17 09:56:33 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-02-20 21:20:45 -0500
commit65b7256a88ae2bd878da5d026e4183cba6f6eedf (patch)
treefeae01641c4fcbaa438dda9298d7d9ca2430eb85 /compiler/GHC/Iface/Load.hs
parentc8439fc789ff00cfdd453d2425d2146df69e0729 (diff)
downloadhaskell-65b7256a88ae2bd878da5d026e4183cba6f6eedf.tar.gz
Use concatMap(M) instead of `concat . map` and the monadic variant
Diffstat (limited to 'compiler/GHC/Iface/Load.hs')
-rw-r--r--compiler/GHC/Iface/Load.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/GHC/Iface/Load.hs b/compiler/GHC/Iface/Load.hs
index 77eefc4c7b..c11d4b3e4f 100644
--- a/compiler/GHC/Iface/Load.hs
+++ b/compiler/GHC/Iface/Load.hs
@@ -751,9 +751,7 @@ loadDecls :: Bool
-> [(Fingerprint, IfaceDecl)]
-> IfL [(Name,TyThing)]
loadDecls ignore_prags ver_decls
- = do { thingss <- mapM (loadDecl ignore_prags) ver_decls
- ; return (concat thingss)
- }
+ = concatMapM (loadDecl ignore_prags) ver_decls
loadDecl :: Bool -- Don't load pragmas into the decl pool
-> (Fingerprint, IfaceDecl)