-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Still need to modify the code base here to compile. Fix all incompatibility after upgrading to GHC 8.8.2 Hide replaceExtension on path 0.7.0 or later Fix deprecation error
- Loading branch information
1 parent
9ae6c81
commit e0e7e28
Showing
40 changed files
with
142 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
resolver: nightly-2020-02-04 | ||
name: snapshot-for-building-stack-with-ghc-8.8.2 | ||
|
||
packages: | ||
- github: commercialhaskell/pantry | ||
commit: 86462a97c4d8091993cc6e246fd0f2ae5aa608f0 | ||
- github: fpco/casa | ||
commit: fc0ed26858bfc4f2966ed2dfb2871bae9266dda6 | ||
subdirs: | ||
- casa-client | ||
- casa-types | ||
- github: snoyberg/filelock | ||
commit: 97e83ecc133cd60a99df8e1fa5a3c2739ad007dc | ||
- hackage-security-0.6.0.0@rev:0 | ||
- hpack-0.33.0@rev:0 | ||
- lukko-0.1.1.1@rev:0 | ||
- regex-applicative-text-0.1.0.1@rev:0 | ||
|
||
drop-packages: | ||
# See https://github.com/commercialhaskell/stack/pull/4712 | ||
- cabal-install | ||
|
||
# Force usage of Cabal that ships with GHC 8.8.2 to speed up builds | ||
- 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
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,41 @@ | ||
{-# LANGUAGE CPP #-} | ||
|
||
module Path.Extended | ||
( fileExtension | ||
, addExtension | ||
, replaceExtension | ||
) where | ||
|
||
import Control.Monad.Catch | ||
import qualified Path | ||
import Path (Path, File) | ||
|
||
fileExtension :: MonadThrow m => Path b File -> m String | ||
fileExtension = | ||
#if MIN_VERSION_path(0,7,0) | ||
Path.fileExtension | ||
#else | ||
pure . Path.fileExtension | ||
#endif | ||
|
||
addExtension :: MonadThrow m | ||
=> String | ||
-> Path b File | ||
-> m (Path b File) | ||
addExtension = | ||
#if MIN_VERSION_path(0,7,0) | ||
Path.addExtension | ||
#else | ||
Path.addFileExtension | ||
#endif | ||
|
||
replaceExtension :: MonadThrow m | ||
=> String | ||
-> Path b File | ||
-> m (Path b File) | ||
replaceExtension = | ||
#if MIN_VERSION_path(0,7,0) | ||
Path.replaceExtension | ||
#else | ||
flip (Path.-<.>) | ||
#endif |
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
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
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
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
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
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
Oops, something went wrong.