forked from gentoo-haskell/gentoo-haskell
-
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.
dev-lang/idris: 1.3.3-r2, update dep upperbounds
Specifically, `aeson` and `optparse-applicative`. [An issue][1] has been opened upstream to apply these changes. [1]: idris-lang/Idris-dev#4895 Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer@gmail.com>
- Loading branch information
1 parent
65b8a0f
commit 54a0cec
Showing
3 changed files
with
47 additions
and
6 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,16 @@ | ||
diff --git a/src/Idris/Parser/Stack.hs b/src/Idris/Parser/Stack.hs | ||
index fb7b61144..879786f4d 100644 | ||
--- a/src/Idris/Parser/Stack.hs | ||
+++ b/src/Idris/Parser/Stack.hs | ||
@@ -84,7 +84,11 @@ instance Message ParseError where | ||
(pos, _) = P.reachOffsetNoLine (parseErrorOffset err) (parseErrorPosState err) | ||
#endif | ||
messageText = PP.text . init . P.parseErrorTextPretty . parseError | ||
+#if MIN_VERSION_megaparsec(9,0,0) | ||
+ messageSource err = sline | ||
+#else | ||
messageSource err = Just sline | ||
+#endif | ||
where | ||
#if MIN_VERSION_megaparsec(8,0,0) | ||
(sline, _) = P.reachOffset (parseErrorOffset err) (parseErrorPosState err) |
18 changes: 18 additions & 0 deletions
18
dev-lang/idris/files/idris-1.3.3-remove-git-from-test-configuration.patch
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,18 @@ | ||
diff --git a/Setup.hs b/Setup.hs | ||
index d8963d73a..6666a7a77 100644 | ||
--- a/Setup.hs | ||
+++ b/Setup.hs | ||
@@ -117,9 +117,10 @@ idrisClean _ flags _ _ = cleanStdLib | ||
-- Configure | ||
|
||
gitHash :: IO String | ||
-gitHash = do h <- Control.Exception.catch (readProcess "git" ["rev-parse", "--short", "HEAD"] "") | ||
- (\e -> let e' = (e :: SomeException) in return "PRE") | ||
- return $ takeWhile (/= '\n') h | ||
+gitHash = pure "1.1.3" | ||
+-- do h <- Control.Exception.catch (readProcess "git" ["rev-parse", "--short", "HEAD"] "") | ||
+-- (\e -> let e' = (e :: SomeException) in return "PRE") | ||
+-- return $ takeWhile (/= '\n') h | ||
|
||
-- Generate a module that contains extra library directories passed | ||
-- via command-line to 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