-
Notifications
You must be signed in to change notification settings - Fork 128
Closed
Labels
bugSomething not working correctlySomething not working correctlycommand-line-replRelated to Cryptol's text-based UIRelated to Cryptol's text-based UIenumsIssues related to enumsIssues related to enums
Description
Given this Cryptol file:
newtype T a = { unT : a }
If you type :help T at the REPL, you'll get:
Main> :help T
newtype T a
T : {a} {unT : a} -> T a
---------
Name defined in module Main
This is unsatisfactory for a couple of reasons:
-
The
:helpoutput doesn't state the kind ofT. This is inconsistent with how:helpdisplays other type constructors, e.g.,Main> :help Z primitive type Z : # -> * -
The pretty-printed definition of
T"re-quantifies"a, as it displays bothnewtype T aandT : {a} {unT : a} -> T a. Really, theainnewtype T aought to scope over the type ofTso that it is displayed like this:newtype T a = T { unT : a}
The same issues apply to enums (#1602) as well.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething not working correctlySomething not working correctlycommand-line-replRelated to Cryptol's text-based UIRelated to Cryptol's text-based UIenumsIssues related to enumsIssues related to enums