unison icon indicating copy to clipboard operation
unison copied to clipboard

term documentation literal fails on functions with parameters that are polymorphic functions

Open Baccata opened this issue 7 months ago • 0 comments

UCM : release/0.5.40

Reproduction :

term: (forall x . [x] -> [x]) -> Boolean
term f = isEmpty (f [])

someDoc = {{
  test {term}
}}

fails with :

  I found a value  of type:  ([x1] ->{𝕖} [x1]) ->{𝕖} Boolean
  where I expected to find:  ([x] -> 𝕣1) -> 𝕣
  
      1 | term: (forall x . [x] -> [x]) -> Boolean
      2 | term f = isEmpty (f [])
      3 | 
      4 | someDoc = {{
      5 |   test {term}
  
    from right here:
  
      1 | term: (forall x . [x] -> [x]) -> Boolean

Baccata avatar May 19 '25 08:05 Baccata