cryptol-3.1.0: Cryptol: The Language of Cryptography
Copyright(c) 2013-2016 Galois Inc.
LicenseBSD3
Maintainercryptol@galois.com
Stabilityprovisional
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cryptol.TypeCheck.Instantiate

Description

 
Synopsis

Documentation

instantiatePCon :: Name -> InferM ([Type], Int, [Type], Type) Source #

Instantiate a pattern constructor. Returns (A,B,C,D) where: A) are the instantiations of the type parameters of the constructor B) is how many proofs we would have if we had dictionaries C) are the types of the fields of the constructor D) is the type of the result of the constructor (i.e., what we are mathcing)