We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
newtype
1 parent f90c08e commit 7090819Copy full SHA for 7090819
cryptol-saw-core/src/Verifier/SAW/CryptolEnv.hs
@@ -304,8 +304,12 @@ mkCryEnv env =
304
liftModuleM modEnv $
305
do prims <- MB.getPrimMap
306
-- noIfaceParams because we don't support translating functors yet
307
- TM.inpVars `fmap` MB.genInferInput P.emptyRange prims
308
- NoParams ifaceDecls
+ infInp <- MB.genInferInput P.emptyRange prims NoParams ifaceDecls
+ let newtypeCons = Map.fromList
309
+ [ (T.ntConName nt, T.newtypeConType nt)
310
+ | nt <- Map.elems (TM.inpNewtypes infInp)
311
+ ]
312
+ pure (newtypeCons `Map.union` TM.inpVars infInp)
313
let types' = Map.union (eExtraTypes env) types
314
let terms = eTermEnv env
315
let cryEnv = C.emptyEnv
0 commit comments