Skip to content

Commit

Permalink
Induction normalises the target first
Browse files Browse the repository at this point in the history
Ignore-this: 63cf0f91daa0a1e85f1ac8bb44e78ba5

darcs-hash:20090727011757-228f4-c84267185e0ab255630585930bf85534c43d5202.gz
  • Loading branch information
eb committed Jul 27, 2009
1 parent d5156cf commit a5a8f8f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Ivor/Tactics.lhs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -471,9 +471,10 @@ otherwise.


> casetac :: Bool -> Raw -> Tactic > casetac :: Bool -> Raw -> Tactic
> casetac rec scrutinee gam env tm@(Ind (Bind x (B Hole ty) sc)) = > casetac rec scrutinee gam env tm@(Ind (Bind x (B Hole ty) sc)) =
> do (Ind bv,bt) <- check gam (ptovenv env) scrutinee Nothing > do (bv,bt) <- check gam (ptovenv env) scrutinee Nothing
> let (Ind btnorm) = (normaliseEnv (ptovenv env) gam bt) > let (Ind btnorm) = (normaliseEnv (ptovenv env) gam bt)
> let bvin = makePsEnv (map fst env) bv > let (Ind bvnorm) = (normaliseEnv (ptovenv env) gam bv)
> let bvin = makePsEnv (map fst env) bvnorm
> let btin = makePsEnv (map fst env) btnorm > let btin = makePsEnv (map fst env) btnorm
> let indices = getArgs btin > let indices = getArgs btin
> let ty = getFun btin > let ty = getFun btin
Expand Down
2 changes: 1 addition & 1 deletion ivor.cabal
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Extra-source-files: emacs/ivor-mode.el, examplett/staged.tt, examplett/test.c, e






Build-depends: base, parsec, mtl, directory Build-depends: base >=3 && <5, parsec, mtl, directory
Build-type: Simple Build-type: Simple


Extensions: MultiParamTypeClasses, FunctionalDependencies, Extensions: MultiParamTypeClasses, FunctionalDependencies,
Expand Down
4 changes: 3 additions & 1 deletion release/Release.lhs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ and upload it.
> import System.Environment > import System.Environment
> import System.Exit > import System.Exit
> import System.Directory > import System.Directory
> import System.Process > import System.Process hiding (shell)
> import Distribution.PackageDescription > import Distribution.PackageDescription
> import Distribution.PackageDescription.Parse
> import Distribution.PackageDescription.Configuration
> import Distribution.Package > import Distribution.Package
> import Distribution.Verbosity > import Distribution.Verbosity
> import Data.Version > import Data.Version
Expand Down

0 comments on commit a5a8f8f

Please sign in to comment.