mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-21 07:17:25 +03:00
577 B
577 B
unique type A = A Text
foo : A
foo = A "foo!"
bar : Text -> A
bar = A
baz : A -> Text
baz = cases
A t -> t
.> add
⍟ I've added these definitions:
unique type A
bar : Text -> A
baz : A -> Text
foo : A
.> find : Text -> A
1. bar : Text -> A
2. A.A : Text -> A
.> find : A -> Text
1. baz : A -> Text
.> find : A
1. foo : A
.> find : Text
☝️
I couldn't find exact type matches, resorting to fuzzy
matching...
1. bar : Text -> A
2. baz : A -> Text
3. A.A : Text -> A