Skip to content

Commit

Permalink
Update ability syntax in the error message.
Browse files Browse the repository at this point in the history
Co-authored-by: Karthik Ravikanti <karthik.ravikanti@gmail.com>
  • Loading branch information
Alberto Flores and plumenator committed May 24, 2022
1 parent 77a8f02 commit d91db0c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion parser-typechecker/src/Unison/PrintError.hs
Expand Up @@ -1410,7 +1410,7 @@ prettyParseError s = \case
Code
" + 1",
"\n - An `ability` declaration, like "
<> style Code "ability Foo where ...",
<> style Code "unique|structural ability Foo where ...",
"\n - A `type` declaration, like "
<> style Code "structural type Optional a = None | Some a",
"\n"
Expand Down
2 changes: 1 addition & 1 deletion unison-src/transcripts/error-messages.output.md
Expand Up @@ -242,7 +242,7 @@ a ! b = 1
a : Nat
a = 42
- A watch expression, like > a + 1
- An `ability` declaration, like ability Foo where ...
- An `ability` declaration, like unique|structural ability Foo where ...
- A `type` declaration, like structural type Optional a = None | Some a
Expand Down
2 changes: 1 addition & 1 deletion unison-src/transcripts/errors/unison-hide-all.output.md
Expand Up @@ -26,7 +26,7 @@ The transcript failed due to an error in the stanza above. The error is:
g : Nat
g = 42
- A watch expression, like > g + 1
- An `ability` declaration, like ability Foo where ...
- An `ability` declaration, like unique|structural ability Foo where ...
- A `type` declaration, like structural type Optional a = None | Some a


2 changes: 1 addition & 1 deletion unison-src/transcripts/errors/unison-hide.output.md
Expand Up @@ -26,7 +26,7 @@ The transcript failed due to an error in the stanza above. The error is:
g : Nat
g = 42
- A watch expression, like > g + 1
- An `ability` declaration, like ability Foo where ...
- An `ability` declaration, like unique|structural ability Foo where ...
- A `type` declaration, like structural type Optional a = None | Some a


0 comments on commit d91db0c

Please sign in to comment.