You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 14, 2023. It is now read-only.
The current type class has_to_string is similar to the Show Haskell typeclass.
The instances for string and char produced quoted values.
"abc" => "abc"'a' => "a"
This is inconvenient since we often just need to convert a value (char, nat, string, int, etc) into a "plain" string (no quotes). @johoelzl suggested we add a has_repr type class. The idea is to rename the current has_to_string type class to has_repr, and add a new has_to_string whose instances are supposed to produce plain (i.e., no quotes) strings.
The current type class
has_to_stringis similar to theShowHaskell typeclass.The instances for
stringandcharproduced quoted values.This is inconvenient since we often just need to convert a value (
char,nat,string,int, etc) into a "plain" string (no quotes). @johoelzl suggested we add ahas_reprtype class. The idea is to rename the currenthas_to_stringtype class tohas_repr, and add a newhas_to_stringwhose instances are supposed to produce plain (i.e., no quotes) strings.