Add module parameters as extra vars---prints nicer error messages.

This commit is contained in:
Iavor Diatchki 2017-09-26 15:29:23 -07:00
parent 83d0132e50
commit b8707033d7
2 changed files with 5 additions and 3 deletions

View File

@ -51,8 +51,8 @@ property
type Integer = [64]
encrypt : {m} fin m =>
K -> Nonce -> A -> [m * (p * n)] -> [m * (p * n) + tagAmount]
encrypt :
{m} fin m => K -> Nonce -> A -> [m * (p * n)] -> [m * (p * n) + tagAmount]
encrypt key nonce state inputMsg = join ((drop`{1} go).0.message) # tag
where

View File

@ -186,8 +186,10 @@ proveImplication :: Maybe Name -> [TParam] -> [Prop] -> [Goal] -> InferM Subst
proveImplication lnam as ps gs =
do evars <- varsWithAsmps
solver <- getSolver
pas <- Map.elems <$> getParamTypes
extra <- getParamConstraints
(mbErr,su) <- io (proveImplicationIO solver lnam evars as (extra ++ ps) gs)
(mbErr,su) <- io (proveImplicationIO solver lnam evars
(pas ++ as) (extra ++ ps) gs)
case mbErr of
Right ws -> mapM_ recordWarning ws
Left err -> recordError err