Commit 2535c821 authored by Edward Z. Yang's avatar Edward Z. Yang Committed by Ben Gamari
Browse files

Fix bug where reexports of wired-in packages don't work.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>

Test Plan: validate

Reviewers: hvr, bgamari, austin

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1926

GHC Trac Issues: #11589
parent ad4428dd
import Data.List.NonEmpty
main = return ()
TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
SETUP = ./Setup -v0
# This test is for package reexports from a wired-in package,
# which had a bug
cabal09: clean
$(MAKE) clean
'$(TEST_HC)' -v0 --make Setup
$(SETUP) clean
$(SETUP) configure $(CABAL_MINIMAL_BUILD) --with-ghc='$(TEST_HC)' --ghc-options='$(TEST_HC_OPTS)'
$(SETUP) build
ifneq "$(CLEANUP)" ""
$(MAKE) clean
endif
clean :
$(RM) -r */dist Setup$(exeext) *.o *.hi
import Distribution.Simple
main = defaultMain
if default_testopts.cleanup != '':
cleanup = 'CLEANUP=1'
else:
cleanup = ''
test('cabal09',
ignore_output,
run_command,
['$MAKE -s --no-print-directory cabal09 ' + cleanup])
-- Initial reexport.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
name: reexport
version: 0.1.0.0
license: BSD3
author: Edward Z. Yang
maintainer: ezyang@cs.stanford.edu
build-type: Simple
cabal-version: >=1.23
library
reexported-modules: Data.List.NonEmpty
build-depends: base >=4.9 && <4.10
default-language: Haskell2010
executable foo
main-is: Main.hs
build-depends: base, reexport
default-language: Haskell2010
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment