Skip to content

Commit

Permalink
Rename confusing arg in checkParamValue
Browse files Browse the repository at this point in the history
  • Loading branch information
qsctr committed Aug 2, 2023
1 parent e9b3b5f commit d6791fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cryptol/TypeCheck/Module.hs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ checkParamValue ::
{- ^ Decl mapping a new name to the actual value,
and a map from the value param name in the functor to the new name
(for instantiation) -}
checkParamValue mpath r paramName vMap mp =
checkParamValue mpath r modParamName vMap mp =
let name = mvpName mp
i = nameIdent name
expectT = mvpType mp
Expand All @@ -320,7 +320,7 @@ checkParamValue mpath r paramName vMap mp =
pure ([], Map.empty)
Just actual ->
do e <- mkParamDef r (name,expectT) actual
name' <- newModParam mpath paramName (nameLoc (fst actual)) name
name' <- newModParam mpath modParamName (nameLoc (fst actual)) name
let d = Decl { dName = name'
, dSignature = expectT
, dDefinition = DExpr e
Expand Down

0 comments on commit d6791fd

Please sign in to comment.