aiken/crates/lang/src
KtorZ 202678e21e
Improve rendering of type-signatures in docs
- [x] Display function arguments using a newline-multiline strategy
    when the signature gets too long. For example:

    ```
    union_with
      ( left left: AssocList<key, value>
      , right right: AssocList<key, value>
      , with with: fn(key, value, value) -> value
      ) -> AssocList<key, value>
    ```

  - [x] Show type-aliases as type-aliases in signatures; provided
    they've been specified as type annotations. Otherwise, fallback to
    the inferred type.

  - [x] Do not show argument names in signatures, but show labels when
    they're present. This reflects more the original intent behind
    labels (which are meant as public-facing documentation).
2022-12-17 13:07:28 +01:00
..
parser Implement modules' extra, to get function & module comments in docs. 2022-12-17 01:02:21 +01:00
tests Support data-types in documentation. 2022-12-17 01:02:20 +01:00
tipo Fix type-parameter pretty printing (use chevrons) 2022-12-17 01:02:20 +01:00
air.rs test 1-9 passing 2022-12-14 09:45:26 +01:00
ast.rs Implement modules' extra, to get function & module comments in docs. 2022-12-17 01:02:21 +01:00
builder.rs test 1-9 passing 2022-12-14 09:45:26 +01:00
builtins.rs add field access and list patterns are finished 2022-12-05 14:18:44 -05:00
expr.rs feat: some new features 2022-11-28 22:33:53 -05:00
format.rs Improve rendering of type-signatures in docs 2022-12-17 13:07:28 +01:00
lib.rs Remove debug line for pretty-printing test, and add '--debug' flag to 'check instead. 2022-12-15 02:02:10 +01:00
parser.rs Implement modules' extra, to get function & module comments in docs. 2022-12-17 01:02:21 +01:00
pretty.rs feat: bring over the formatter from gleam 2022-11-05 15:35:11 -04:00
tipo.rs feat(Type): add is_option method 2022-12-14 09:45:25 +01:00
uplc.rs test 1-9 passing 2022-12-14 09:45:26 +01:00