derive Show and Eq, improvements to LSP

This commit is contained in:
2026-02-24 20:01:58 -08:00
parent a789cffcce
commit 983dde4de2
21 changed files with 281 additions and 39 deletions

14
tests/Derive.newt Normal file
View File

@@ -0,0 +1,14 @@
module Derive
import Prelude
data Blah = Foo Int | Bar | Baz String
derive Eq Blah
derive Show Blah
main : IO Unit
main = do
printLn $ Foo 42
printLn $ Bar
printLn $ Baz "woo"