Closed RyanGlScott closed 3 months ago
This defines a tIsNominal :: Type -> Maybe (NominalType, [Type]) function. There is one spot in Cryptol.TypeCheck.Infer where this can more neatly replace a manual pattern match on TNominal, so I went ahead and did this as well.
tIsNominal :: Type -> Maybe (NominalType, [Type])
Cryptol.TypeCheck.Infer
TNominal
Fixes #1732.
This defines a
tIsNominal :: Type -> Maybe (NominalType, [Type])
function. There is one spot inCryptol.TypeCheck.Infer
where this can more neatly replace a manual pattern match onTNominal
, so I went ahead and did this as well.Fixes #1732.