sanctuary-js / sanctuary-def

Run-time type system for JavaScript
MIT License
294 stars 23 forks source link

fix underlining of higher-order functions #273

Closed davidchambers closed 4 years ago

davidchambers commented 4 years ago

Before:

once :: (a -> b) -> a -> b
         ^^^^^^
           1
twice :: (a -> a -> b) -> a -> b
          ^^^^^^^^^^^^^
                1
thrice :: (a -> a -> a -> b) -> a -> b
           ^^^^^^^^^^^^^^^^^^^^
                    1

After:

once :: (a -> b) -> a -> b
         ^^^^^^
           1
twice :: (a -> a -> b) -> a -> b
          ^^^^^^^^^^^
               1
thrice :: (a -> a -> a -> b) -> a -> b
           ^^^^^^^^^^^^^^^^
                  1