forked from haskell/cabal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into aallen/haskell#7379/additional-dry-run-fun…
…ctionality
- Loading branch information
Showing
14 changed files
with
209 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module Go where |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module Go2 where |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
signature Hole where |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: T6385 | ||
version: 1.0 | ||
build-type: Simple | ||
cabal-version: 2.0 | ||
|
||
library top-def | ||
default-language: Haskell2010 | ||
build-depends: base, indef, alt-containers | ||
hs-source-dirs: . | ||
exposed-modules: Go | ||
|
||
library top-indef | ||
default-language: Haskell2010 | ||
build-depends: base, indef, alt-containers | ||
hs-source-dirs: . | ||
signatures: Hole | ||
exposed-modules: Go2 |
6 changes: 6 additions & 0 deletions
6
cabal-testsuite/PackageTests/Backpack/T6385/alt-containers/Data/Map.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{-# LANGUAGE RoleAnnotations #-} | ||
module Data.Map where | ||
type role Map nominal representational | ||
data Map k a = Map | ||
instance Functor (Map k) where | ||
fmap _ Map = Map |
10 changes: 10 additions & 0 deletions
10
cabal-testsuite/PackageTests/Backpack/T6385/alt-containers/alt-containers.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: alt-containers | ||
version: 1.0 | ||
build-type: Simple | ||
cabal-version: 2.0 | ||
|
||
library | ||
default-language: Haskell2010 | ||
build-depends: base | ||
hs-source-dirs: . | ||
exposed-modules: Data.Map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# cabal v2-update | ||
Downloading the latest package list from test-local-repo | ||
# cabal v2-build | ||
Resolving dependencies... | ||
Build profile: -w ghc-<GHCVER> -O1 | ||
In order, the following will be built: | ||
- alt-containers-1.0 (lib) (first run) | ||
- indef-0.1.0.0 (lib) (requires build) | ||
- indef-0.1.0.0 (lib with Data.Map=alt-containers-1.0-inplace:Data.Map) (requires build) | ||
- T6385-1.0 (lib:top-indef) (first run) | ||
- T6385-1.0 (lib:top-def) (first run) | ||
Configuring library for alt-containers-1.0.. | ||
Preprocessing library for alt-containers-1.0.. | ||
Building library for alt-containers-1.0.. | ||
Configuring library for indef-0.1.0.0.. | ||
Preprocessing library for indef-0.1.0.0.. | ||
Building library instantiated with Data.Map = <Data.Map> | ||
for indef-0.1.0.0.. | ||
Installing library in <PATH> | ||
Configuring library instantiated with | ||
Data.Map = alt-containers-1.0-inplace:Data.Map | ||
for indef-0.1.0.0.. | ||
Preprocessing library for indef-0.1.0.0.. | ||
Building library instantiated with | ||
Data.Map = alt-containers-1.0-inplace:Data.Map | ||
for indef-0.1.0.0.. | ||
Configuring library 'top-indef' for T6385-1.0.. | ||
Preprocessing library 'top-indef' for T6385-1.0.. | ||
Building library 'top-indef' instantiated with Hole = <Hole> | ||
for T6385-1.0.. | ||
Configuring library 'top-def' for T6385-1.0.. | ||
Preprocessing library 'top-def' for T6385-1.0.. | ||
Building library 'top-def' for T6385-1.0.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
packages: . alt-containers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Test.Cabal.Prelude | ||
main = withShorterPathForNewBuildStore $ \storeDir -> | ||
cabalTest $ do | ||
skipUnlessGhcVersion ">= 8.1" | ||
skipIfWindows -- TODO: https://github.com/haskell/cabal/issues/6271 | ||
withRepo "repo" $ do | ||
cabalG ["--store-dir=" ++ storeDir] "v2-build" ["T6385"] |
5 changes: 5 additions & 0 deletions
5
cabal-testsuite/PackageTests/Backpack/T6385/repo/indef-0.1.0.0/Data/Map.hsig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{-# LANGUAGE RoleAnnotations #-} | ||
signature Data.Map where | ||
type role Map nominal representational | ||
data Map k a | ||
instance Functor (Map k) |
6 changes: 6 additions & 0 deletions
6
cabal-testsuite/PackageTests/Backpack/T6385/repo/indef-0.1.0.0/Foo.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Foo where | ||
|
||
import Data.Map | ||
|
||
f :: (a -> b) -> Map k a -> Map k b | ||
f = fmap |
13 changes: 13 additions & 0 deletions
13
cabal-testsuite/PackageTests/Backpack/T6385/repo/indef-0.1.0.0/indef.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: indef | ||
version: 0.1.0.0 | ||
license: BSD3 | ||
author: Edward Z. Yang | ||
maintainer: ezyang@cs.stanford.edu | ||
build-type: Simple | ||
cabal-version: 2.0 | ||
|
||
library | ||
build-depends: base | ||
signatures: Data.Map | ||
exposed-modules: Foo | ||
default-language: Haskell2010 |