unisonweb / unison

A friendly programming language from the future
https://unison-lang.org
Other
5.81k stars 271 forks source link

Top level `use` clause isn't respected within type declarations #5335

Open pchiusano opened 2 months ago

pchiusano commented 2 months ago
type Woot.List = Oog

use Woot List

-- works great
foo : List -> Nat
foo = cases
  Oog -> 42

-- does not typecheck, unless I manually do `Woot.List` here
type Blah = Uno List | Dos List
    ❓

    I couldn't resolve any of these symbols:

       12 | type Blah = Uno List | Dos List

    Symbol   Suggestions

    List     Woot.List
             lib.base.data.List