cryptol-2.7.0: Cryptol: The Language of Cryptography

Safe HaskellSafe
LanguageHaskell2010

Cryptol.TypeCheck.Default

Synopsis

Documentation

defaultLiterals :: [TVar] -> [Goal] -> ([TVar], Subst, [Warning]) Source #

We default constraints of the form Literal t a to a := [width t]

defaultReplExpr' :: Solver -> [TParam] -> [Prop] -> IO (Maybe [(TParam, Type)]) Source #

Try to pick a reasonable instantiation for an expression with the given type. This is useful when we do evaluation at the REPL. The resulting types should satisfy the constraints of the schema. The parameters should be all of numeric kind, and the props should als be numeric