-
Notifications
You must be signed in to change notification settings - Fork 45
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
Fix #190 Add splitDrive, takeDrive, dropDrive and isDrive #191
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
name: CI | ||
|
||
# Trigger the workflow on push or pull request, but only for the master branch | ||
|
@@ -14,18 +13,22 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
cabal: ["3.4"] | ||
cabal: ["3.10"] | ||
ghc: | ||
- "8.8.4" | ||
- "8.10.4" | ||
- "9.0.1" | ||
# GHC versions listed as current stable releases | ||
- "9.2.8" | ||
- "9.4.7" | ||
- "9.6.3" | ||
# GHC 9.8 only works with cabal-install >= 3.10.2.0, which is not | ||
# available from haskell-actions/setup (or on Hackage) | ||
# - "9.8.1" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: haskell/actions/setup@v1.2 | ||
- uses: haskell-actions/setup@v2 | ||
id: setup-haskell-cabal | ||
name: Setup Haskell | ||
name: Setup GHC and cabal-install | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
cabal-version: ${{ matrix.cabal }} | ||
|
@@ -38,7 +41,7 @@ jobs: | |
run: | | ||
cabal freeze | ||
|
||
- uses: actions/cache@v2.1.3 | ||
- uses: actions/cache@v3 | ||
name: Cache ~/.cabal/store | ||
with: | ||
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }} | ||
|
@@ -52,33 +55,29 @@ jobs: | |
run: | | ||
cabal build all | ||
|
||
- name: Test | ||
- name: Test the test-suite test | ||
run: | | ||
cabal test path:test | ||
|
||
# - name: Test | ||
# run: | | ||
# cabal test path:validity-test | ||
# - name: Test the test-suite validity-test | ||
# run: | | ||
# cabal test path:validity-test | ||
|
||
# As of 2023-10-16, the GitHub-hosted runner on ubuntu-latest comes with | ||
# Stack 2.13.1 and GHC 9.6.3. | ||
stack: | ||
name: stack / ghc ${{ matrix.ghc }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
stack: ["2.3.1"] | ||
ghc: ["8.8.4"] | ||
ghc: ["9.6.3"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: haskell/actions/[email protected] | ||
name: Setup Haskell Stack | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
stack-version: ${{ matrix.stack }} | ||
- name: Clone project | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/[email protected] | ||
name: Cache ~/.stack | ||
- name: Cache Stack root | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.stack | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-stack | ||
|
@@ -91,10 +90,10 @@ jobs: | |
run: | | ||
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks | ||
|
||
- name: Test | ||
- name: Test the test-suite test | ||
run: | | ||
stack test --system-ghc :test | ||
stack test path:test:test --system-ghc | ||
|
||
# - name: Test | ||
# run: | | ||
# stack test --system-ghc :validity-test | ||
# - name: Test the test-suite validity-test | ||
# run: | | ||
# stack test path:test:validity-test --system-ghc |
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
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 |
---|---|---|
@@ -1,45 +1 @@ | ||
resolver: nightly-2021-11-19 | ||
extra-deps: | ||
- github: NorfairKing/validity | ||
commit: 35bc8d45b27e6c21429e4b681b16e46ccd541b3b | ||
subdirs: | ||
- genvalidity | ||
- genvalidity-aeson | ||
- genvalidity-bytestring | ||
- genvalidity-containers | ||
- genvalidity-criterion | ||
- genvalidity-hspec | ||
- genvalidity-hspec-aeson | ||
- genvalidity-hspec-binary | ||
- genvalidity-hspec-cereal | ||
- genvalidity-hspec-hashable | ||
- genvalidity-hspec-optics | ||
- genvalidity-hspec-persistent | ||
- genvalidity-path | ||
- genvalidity-persistent | ||
- genvalidity-property | ||
- genvalidity-scientific | ||
- genvalidity-sydtest | ||
- genvalidity-sydtest-aeson | ||
- genvalidity-sydtest-hashable | ||
- genvalidity-sydtest-lens | ||
- genvalidity-sydtest-persistent | ||
- genvalidity-text | ||
- genvalidity-time | ||
- genvalidity-unordered-containers | ||
- genvalidity-uuid | ||
- genvalidity-vector | ||
- validity | ||
- validity-aeson | ||
- validity-bytestring | ||
- validity-containers | ||
- validity-path | ||
- validity-persistent | ||
- validity-primitive | ||
- validity-scientific | ||
- validity-text | ||
- validity-time | ||
- validity-unordered-containers | ||
- validity-uuid | ||
- validity-vector | ||
|
||
resolver: nightly-2023-10-16 # GHC 9.6.3 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it a good idea to have these functions defined for non-windows?
We could put it in the windows-specific code I guess, but I don't have an opinion yet about whether that's a good idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-well typed equivalent functions exist for both POSIX and WINDOWS at
filepath
package:System.FilePath
. I think it is sensible to prove well-typed equivalents. I followed that package's Haddock documentation for this package.