Skip to content

Commit d5bd155

Browse files
committed
Fix #6230 Reorganise repository folders
1 parent 52849b6 commit d5bd155

File tree

663 files changed

+201
-74
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

663 files changed

+201
-74
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
run: |
2828
set -ex
2929
hlint src/
30-
hlint --hint=.hlint-test.yaml test/
30+
hlint --hint=.hlint-test.yaml tests/unit

.hlint-test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
- name:
1010
- NoImplicitPrelude
1111
- CPP
12+
- OverloadedLists
1213
- OverloadedStrings
14+
- QuasiQuotes
15+
- RecordWildCards
1316
- ScopedTypeVariables
1417
- TemplateHaskell
1518
- ViewPatterns

CONTRIBUTING.md

Lines changed: 15 additions & 11 deletions

doc/ide_command.md

Lines changed: 1 addition & 1 deletion

package.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ extra-source-files:
3636
- stack.yaml
3737
- doc/*.md
3838
- src/setup-shim/StackSetupShim.hs
39-
- test/package-dump/ghc-7.10.txt
40-
- test/package-dump/ghc-7.8.4-osx.txt
41-
- test/package-dump/ghc-7.8.txt
42-
- test/package-dump/ghc-head.txt
43-
- src/test/Stack/Untar/test1.tar.gz
44-
- src/test/Stack/Untar/test2.tar.gz
39+
- tests/unit/package-dump/ghc-7.10.txt
40+
- tests/unit/package-dump/ghc-7.8.4-osx.txt
41+
- tests/unit/package-dump/ghc-7.8.txt
42+
- tests/unit/package-dump/ghc-head.txt
43+
- tests/unit/Stack/Untar/test1.tar.gz
44+
- tests/unit/Stack/Untar/test2.tar.gz
4545
# Support for people who prefer, or need, to build Stack with Cabal (the tool):
4646
- cabal.project
4747
- cabal.config
@@ -355,8 +355,8 @@ executables:
355355
stack-integration-test:
356356
main: IntegrationSpec.hs
357357
source-dirs:
358-
- test/integration
359-
- test/integration/lib
358+
- tests/integration
359+
- tests/integration/lib
360360
ghc-options:
361361
- -threaded
362362
- -rtsopts
@@ -373,15 +373,15 @@ executables:
373373
- -static
374374
- -pthread
375375
tests:
376-
stack-test:
376+
stack-unit-test:
377377
main: Spec.hs
378-
source-dirs: src/test
378+
source-dirs: tests/unit
379379
when:
380380
- condition: 'os(windows)'
381381
then:
382-
source-dirs: src/test/windows/
382+
source-dirs: tests/unit/windows/
383383
else:
384-
source-dirs: src/test/unix/
384+
source-dirs: tests/unit/unix/
385385
ghc-options:
386386
- -threaded
387387
dependencies:

stack.cabal

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ extra-source-files:
9696
doc/upload_command.md
9797
doc/yaml_configuration.md
9898
src/setup-shim/StackSetupShim.hs
99-
test/package-dump/ghc-7.10.txt
100-
test/package-dump/ghc-7.8.4-osx.txt
101-
test/package-dump/ghc-7.8.txt
102-
test/package-dump/ghc-head.txt
103-
src/test/Stack/Untar/test1.tar.gz
104-
src/test/Stack/Untar/test2.tar.gz
99+
tests/unit/package-dump/ghc-7.10.txt
100+
tests/unit/package-dump/ghc-7.8.4-osx.txt
101+
tests/unit/package-dump/ghc-7.8.txt
102+
tests/unit/package-dump/ghc-head.txt
103+
tests/unit/Stack/Untar/test1.tar.gz
104+
tests/unit/Stack/Untar/test2.tar.gz
105105
cabal.project
106106
cabal.config
107107

@@ -539,8 +539,8 @@ executable stack-integration-test
539539
autogen-modules:
540540
Paths_stack
541541
hs-source-dirs:
542-
test/integration
543-
test/integration/lib
542+
tests/integration
543+
tests/integration/lib
544544
ghc-options: -fwrite-ide-info -hiedir=.hie -Wall -Wmissing-export-lists -optP-Wno-nonportable-include-path -threaded -rtsopts -with-rtsopts=-N
545545
build-depends:
546546
Cabal >=3.8.1.0
@@ -630,7 +630,7 @@ executable stack-integration-test
630630
if flag(static)
631631
ld-options: -static -pthread
632632

633-
test-suite stack-test
633+
test-suite stack-unit-test
634634
type: exitcode-stdio-1.0
635635
main-is: Spec.hs
636636
other-modules:
@@ -651,7 +651,7 @@ test-suite stack-test
651651
autogen-modules:
652652
Paths_stack
653653
hs-source-dirs:
654-
src/test
654+
tests/unit
655655
ghc-options: -fwrite-ide-info -hiedir=.hie -Wall -Wmissing-export-lists -optP-Wno-nonportable-include-path -threaded
656656
build-depends:
657657
Cabal >=3.8.1.0
@@ -742,11 +742,11 @@ test-suite stack-test
742742
other-modules:
743743
Stack.Ghci.FakePaths
744744
hs-source-dirs:
745-
src/test/windows/
745+
tests/unit/windows/
746746
else
747747
other-modules:
748748
Stack.Ghci.FakePaths
749749
hs-source-dirs:
750-
src/test/unix/
750+
tests/unit/unix/
751751
build-tool-depends:
752752
hspec-discover:hspec-discover
File renamed without changes.

test/integration/IntegrationSpec.hs renamed to tests/integration/IntegrationSpec.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ runApp options inner = do
110110
simpleApp <- ask
111111
runghc <- findExecutable "runghc" >>= either throwIO pure
112112
srcDir <- canonicalizePath ""
113-
testsRoot <- canonicalizePath $ srcDir </> "test/integration"
113+
testsRoot <- canonicalizePath $ srcDir </> "tests/integration"
114114
libdir <- canonicalizePath $ testsRoot </> "lib"
115115
myPath <- liftIO getExecutablePath
116116

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This file was autogenerated by Stack.
2+
# You should not edit this file by hand.
3+
# For more information, please see the documentation at:
4+
# https://docs.haskellstack.org/en/stable/lock_files
5+
6+
packages:
7+
- completed:
8+
hackage: acme-dont-1.1@sha256:8264ad3e5113d3e0417b46e71d5a9c0914a1f03b5b81319cc329f1dc0f49b96c,602
9+
pantry-tree:
10+
sha256: 79dbeddaf0fd507611687cefe9511c8fda489849fb0cac3894925716936290b2
11+
size: 206
12+
original:
13+
hackage: acme-dont-1.1@rev:0
14+
snapshots: []
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This file was autogenerated by Stack.
2+
# You should not edit this file by hand.
3+
# For more information, please see the documentation at:
4+
# https://docs.haskellstack.org/en/stable/lock_files
5+
6+
packages:
7+
- completed:
8+
hackage: acme-dont-1.1@sha256:8264ad3e5113d3e0417b46e71d5a9c0914a1f03b5b81319cc329f1dc0f49b96c,602
9+
pantry-tree:
10+
sha256: 79dbeddaf0fd507611687cefe9511c8fda489849fb0cac3894925716936290b2
11+
size: 206
12+
original:
13+
hackage: acme-dont-1.1@rev:0
14+
snapshots: []
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file was autogenerated by Stack.
2+
# You should not edit this file by hand.
3+
# For more information, please see the documentation at:
4+
# https://docs.haskellstack.org/en/stable/lock_files
5+
6+
packages: []
7+
snapshots:
8+
- completed:
9+
sha256: bfafe5735ccb74527d754b1f9999ded72d7c3a6c3a88529449661431ccfbd6cc
10+
size: 649327
11+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/8.yaml
12+
original: lts-20.8
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This file was autogenerated by Stack.
2+
# You should not edit this file by hand.
3+
# For more information, please see the documentation at:
4+
# https://docs.haskellstack.org/en/stable/lock_files
5+
6+
packages:
7+
- completed:
8+
hackage: stm-2.4.4.1@sha256:49cfd80cba95f84d42eda0045346c8a567df5ce434d4da3d26ac3e977826fc4f,1563
9+
pantry-tree:
10+
sha256: 54c488c9302afdfdfd22c639764e057bbf38d44b5e2007e4809d54a56c15b653
11+
size: 898
12+
original:
13+
hackage: stm-2.4.4.1
14+
- completed:
15+
hackage: mtl-2.2.1@sha256:0f7c5e9e2bfa8c1102d38cd57b258b2cf519f3aae65451c8f3fccb472cb8e3c1,1801
16+
pantry-tree:
17+
sha256: b780d0c8065f6f449cd5eca75e5faec1e3d5c28a6b8beb2f3e7ba57cceec43c4
18+
size: 1657
19+
original:
20+
hackage: mtl-2.2.1
21+
snapshots: []

0 commit comments

Comments
 (0)