-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Propagate Cryptol error strings #1344
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,6 +79,7 @@ data TValue l | |
= VVecType !Natural !(TValue l) | ||
| VBoolType | ||
| VIntType | ||
| VStringType | ||
| VIntModType !Natural | ||
| VArrayType !(TValue l) !(TValue l) | ||
| VPiType LocalName !(TValue l) !(PiBody l) | ||
|
@@ -214,6 +215,7 @@ instance Show (Extra l) => Show (TValue l) where | |
case v of | ||
VBoolType -> showString "Bool" | ||
VIntType -> showString "Integer" | ||
VStringType -> showString "String" | ||
VIntModType n -> showParen True (showString "IntMod " . shows n) | ||
VArrayType{} -> showString "Array" | ||
VPiType _ t _ -> showParen True | ||
|
@@ -343,6 +345,7 @@ asFirstOrderTypeTValue v = | |
VSort{} -> Nothing | ||
VRecursorType{} -> Nothing | ||
VTyTerm{} -> Nothing | ||
VStringType -> Nothing | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure about this case. Does it make sense to add a |
||
|
||
-- | A (partial) injective mapping from type values to strings. These | ||
-- are intended to be useful as suffixes for names of type instances | ||
|
@@ -371,6 +374,7 @@ suffixTValue tv = | |
VSort {} -> Nothing | ||
VRecursorType{} -> Nothing | ||
VTyTerm{} -> Nothing | ||
VStringType -> Nothing | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similarly, I'm not sure about this use of |
||
|
||
|
||
neutralToTerm :: NeutralTerm -> Term | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ptival: I believe
saw-core-coq
has some special treatment for theappendString
function, so I'm not sure if adding it as a primitive here will cause problems.