This PR renames `Substring` to `Substring.Raw`. This is to signify its status as a second-class citizen (not deprecated, but no real plans for verification, like `String.Pos.Raw`) and to free up the name `Substring` for a possible future type `String.Substring : String -> Type` so that `s.Substring` is the type of substrings of `s`. The functions `String.toSubstring` and `String.toSubstring'` will remain for now for bootstrapping reasons.
3 lines
75 B
Text
3 lines
75 B
Text
#guard !"".toRawSubstring.isNat
|
|
#guard !"-".isInt
|
|
#guard "-".toInt? = none
|