unison/unison-src/tests/344.uu

6 lines
144 B
Plaintext
Raw Normal View History

2021-08-24 21:33:27 +03:00
structural ability Either a b where
2019-04-17 00:17:59 +03:00
left : a -> {Either a b} ()
right : b -> {Either a b} ()
2021-08-24 21:33:27 +03:00
structural type Either a b = Left a | Right b