Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Cabal sources into Cabal/src #6974

Merged
merged 1 commit into from
Jul 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Cabal/Cabal.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ flag bundled-binary-generic
default: False

library
default-language: Haskell2010
hs-source-dirs: src

build-depends:
array >= 0.4.0.1 && < 0.6,
base >= 4.6 && < 5,
Expand Down Expand Up @@ -612,7 +615,6 @@ library
Distribution.Compat.Binary.Class
Distribution.Compat.Binary.Generic

default-language: Haskell2010
other-extensions:
BangPatterns
CPP
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ lib-ghc-7.8 :

# source generation: Lexer

LEXER_HS:=Cabal/Distribution/Fields/Lexer.hs
LEXER_HS:=Cabal/src/Distribution/Fields/Lexer.hs

lexer : $(LEXER_HS)

Expand All @@ -36,8 +36,8 @@ $(LEXER_HS) : boot/Lexer.x

# source generation: SPDX

SPDX_LICENSE_HS:=Cabal/Distribution/SPDX/LicenseId.hs
SPDX_EXCEPTION_HS:=Cabal/Distribution/SPDX/LicenseExceptionId.hs
SPDX_LICENSE_HS:=Cabal/src/Distribution/SPDX/LicenseId.hs
SPDX_EXCEPTION_HS:=Cabal/src/Distribution/SPDX/LicenseExceptionId.hs

spdx : $(SPDX_LICENSE_HS) $(SPDX_EXCEPTION_HS)

Expand All @@ -49,7 +49,7 @@ $(SPDX_EXCEPTION_HS) : boot/SPDX.LicenseExceptionId.template.hs cabal-dev-script

# source generation: templates

TEMPLATE_MACROS:=Cabal/Distribution/Simple/Build/Macros/Z.hs
TEMPLATE_MACROS:=Cabal/src/Distribution/Simple/Build/Macros/Z.hs

templates : $(TEMPLATE_MACROS)

Expand Down Expand Up @@ -89,7 +89,7 @@ gen-extra-source-files-lib :

# analyse-imports
analyse-imports : phony
find Cabal/Distribution cabal-install/Distribution -type f -name '*.hs' | xargs cabal v2-run --builddir=dist-newstyle-meta --project-file=cabal.project.meta analyse-imports --
find Cabal/src cabal-install/Distribution -type f -name '*.hs' | xargs cabal v2-run --builddir=dist-newstyle-meta --project-file=cabal.project.meta analyse-imports --

# github actions
github-actions : .github/workflows/artifacts.yml
Expand Down Expand Up @@ -119,7 +119,7 @@ ghcid-cli :
# doctests (relies on .ghc.environment files)

doctest :
doctest --fast Cabal/Distribution Cabal/Language
doctest --fast Cabal/src

# This is not run as part of validate.sh (we need hackage-security, which is tricky to get).
doctest-cli :
Expand Down Expand Up @@ -225,7 +225,7 @@ weeder :
# tags
.PHONY : tags
tags :
hasktags -b Cabal/Distribution Cabal/Cabal-described/src Cabal/Language cabal-install/Distribution cabal-testsuite/src
hasktags -b Cabal/src Cabal/Cabal-described/src cabal-install/Distribution cabal-testsuite/src

# documentation
##############################################################################
Expand Down