From c4243194d685942df715f217fa4f3c4efaa87973 Mon Sep 17 00:00:00 2001 From: Ian-Woo Kim Date: Wed, 28 Aug 2024 14:48:32 -0700 Subject: [PATCH] -boot module keys should not be added as exposed modules in conf --- haskell/haskell.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haskell/haskell.bzl b/haskell/haskell.bzl index c181f654e..113d10dc0 100644 --- a/haskell/haskell.bzl +++ b/haskell/haskell.bzl @@ -446,7 +446,7 @@ def _make_package( source_prefixes = get_source_prefixes(ctx.attrs.srcs, module_map) - modules = md["module_graph"].keys() + modules = filter(lambda x: not (x.endswith("-boot")), md["module_graph"].keys()) # XXX use a single import dir when this package db is used for resolving dependencies with ghc -M, # which works around an issue with multiple import dirs resulting in GHC trying to locate interface files