From 667deafa5b13593eb91239856a5f0b8db2ca4d19 Mon Sep 17 00:00:00 2001 From: Douglas Wilson Date: Mon, 13 Nov 2017 09:16:01 +1300 Subject: Store ModIface exports in an array Summary: To lessen cascading changes, the old field name mi_exports (returning a list) is exported as an accessor function and the field is replaced with mi_exports_arr. There are many more lists that would likely benefit from the same treatment, but one thing at a time. Test Plan: Check gipedia Reviewers: bgamari Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D4170 --- compiler/iface/LoadIface.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/iface/LoadIface.hs') diff --git a/compiler/iface/LoadIface.hs b/compiler/iface/LoadIface.hs index b91d984b9a..54a051dc17 100644 --- a/compiler/iface/LoadIface.hs +++ b/compiler/iface/LoadIface.hs @@ -947,7 +947,7 @@ initExternalPackageState ghcPrimIface :: ModIface ghcPrimIface = (emptyModIface gHC_PRIM) { - mi_exports = ghcPrimExports, + mi_exports_arr = ghcPrimExports, mi_decls = [], mi_fixities = fixities, mi_fix_fn = mkIfaceFixCache fixities -- cgit v1.2.1