Skip to content

Commit d30e505

Browse files
authored
Merge pull request #4908 from melted/idris-release-1.3.4
Idris release 1.3.4
2 parents 0d094e7 + d37b0cb commit d30e505

File tree

6 files changed

+18
-14
lines changed

6 files changed

+18
-14
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# New since last release
22

3+
# New in 1.3.4
4+
+ Renamed 'forall' function for compability with future GHC releases
5+
+ Updated version bounds
6+
+ Bugfixes
37
# New in 1.3.3
48
+ Updated to work with GHC 8.8 and cabal 3.0
59
+ Bugfixes and documentation updates

Diff for: appveyor.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
version: 1.0.{build}
22
init:
33
- ps: >-
4-
choco install cabal --no-progress
4+
choco install cabal --version=3.4.1.0 --no-progress
55
66
mkdir C:\ghc
77
8-
Invoke-WebRequest "https://downloads.haskell.org/~ghc/8.8.2/ghc-8.8.2-x86_64-unknown-mingw32.tar.xz" -OutFile C:\ghc\ghc.tar.xz -UserAgent "Curl"
8+
Invoke-WebRequest "https://downloads.haskell.org/~ghc/8.10.7/ghc-8.10.7-x86_64-unknown-mingw32.tar.xz" -OutFile C:\ghc\ghc.tar.xz -UserAgent "Curl"
99
1010
7z x C:\ghc\ghc.tar.xz -oC:\ghc
1111
1212
7z x C:\ghc\ghc.tar -oC:\ghc
1313
14-
$env:PATH="$env:PATH;c:\ghc\ghc-8.8.2\bin;$HOME\AppData\Roaming\cabal\bin"
14+
$env:PATH="$env:PATH;c:\ghc\ghc-8.10.7\bin;$HOME\AppData\Roaming\cabal\bin"
1515
16-
cabal v1-update
16+
cabal update
1717
1818
$env:current_posix=c:\msys64\usr\bin\cygpath -u $(pwd)
1919

Diff for: idris.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Cabal-Version: 2.4
22
Name: idris
3-
Version: 1.3.3
3+
Version: 1.3.4
44
License: BSD-3-Clause
55
License-file: LICENSE
66
Author: Edwin Brady

Diff for: src/Idris/Core/Elaborate.hs

+3-3
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,8 @@ intro n = processTactic' (Intro n)
434434
introTy :: Raw -> Maybe Name -> Elab' aux ()
435435
introTy ty n = processTactic' (IntroTy ty n)
436436

437-
forall :: Name -> RigCount -> Maybe ImplicitInfo -> Raw -> Elab' aux ()
438-
forall n r i t = processTactic' (Forall n r i t)
437+
forAll :: Name -> RigCount -> Maybe ImplicitInfo -> Raw -> Elab' aux ()
438+
forAll n r i t = processTactic' (Forall n r i t)
439439

440440
letbind :: Name -> RigCount -> Raw -> Raw -> Elab' aux ()
441441
letbind n rig t v = processTactic' (LetBind n rig t v)
@@ -823,7 +823,7 @@ arg :: Name -> RigCount -> Maybe ImplicitInfo -> Name -> Elab' aux ()
823823
arg n r i tyhole = do ty <- unique_hole tyhole
824824
claim ty RType
825825
movelast ty
826-
forall n r i (Var ty)
826+
forAll n r i (Var ty)
827827

828828
-- try a tactic, if it adds any unification problem, return an error
829829
no_errors :: Elab' aux () -> Maybe Err -> Elab' aux ()

Diff for: src/Idris/Core/ProofState.hs

+4-4
Original file line numberDiff line numberDiff line change
@@ -658,13 +658,13 @@ intro mn ctxt env (Bind x (Hole t) (P _ x' _)) | x == x' =
658658
_ -> lift $ tfail $ CantIntroduce t'
659659
intro n ctxt env _ = fail "Can't introduce here."
660660

661-
forall :: Name -> RigCount -> Maybe ImplicitInfo -> Raw -> RunTactic
662-
forall n rig impl ty ctxt env (Bind x (Hole t) (P _ x' _)) | x == x' =
661+
forAll :: Name -> RigCount -> Maybe ImplicitInfo -> Raw -> RunTactic
662+
forAll n rig impl ty ctxt env (Bind x (Hole t) (P _ x' _)) | x == x' =
663663
do (tyv, tyt) <- lift $ check ctxt env ty
664664
unify' ctxt env (tyt, Nothing) (TType (UVar [] 0), Nothing)
665665
unify' ctxt env (t, Nothing) (TType (UVar [] 0), Nothing)
666666
return $ Bind n (Pi rig impl tyv (TType (UVar [] 0))) (Bind x (Hole t) (P Bound x t))
667-
forall n rig impl ty ctxt env _ = fail "Can't pi bind here"
667+
forAll n rig impl ty ctxt env _ = fail "Can't pi bind here"
668668

669669
patvar :: Name -> RunTactic
670670
patvar n ctxt env (Bind x (Hole t) sc) =
@@ -1052,7 +1052,7 @@ process t h = tactic (Just h) (mktac t)
10521052
mktac WHNF_ComputeArgs = whnf_compute_args
10531053
mktac (Intro n) = intro n
10541054
mktac (IntroTy ty n) = introTy ty n
1055-
mktac (Forall n r i t) = forall n r i t
1055+
mktac (Forall n r i t) = forAll n r i t
10561056
mktac (LetBind n r t v) = letbind n r t v
10571057
mktac (ExpandLet n b) = expandLet n b
10581058
mktac (Rewrite t) = rewrite t

Diff for: src/Idris/Elab/Term.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ elab ist info emode opts fn tm
685685
_ -> unless (LinearTypes `elem` idris_language_extensions ist
686686
|| e_qq ina) $
687687
lift $ tfail $ At nfc (Msg "You must turn on the LinearTypes extension to use a linear argument")
688-
forall n' (pcount p) (is_scoped p) (Var tyn)
688+
forAll n' (pcount p) (is_scoped p) (Var tyn)
689689
addAutoBind p n'
690690
addPSname n' -- okay for proof search
691691
focus tyn
@@ -2107,7 +2107,7 @@ runElabAction info ist fc env tm ns = do tm' <- eval tm
21072107
= do ~[n, ty] <- tacTmArgs 2 tac args
21082108
n' <- reifyTTName n
21092109
ty' <- reifyRaw ty
2110-
forall n' RigW Nothing ty'
2110+
forAll n' RigW Nothing ty'
21112111
returnUnit
21122112
| n == tacN "Prim__PatVar"
21132113
= do ~[n] <- tacTmArgs 1 tac args

0 commit comments

Comments
 (0)