Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Allow documentation of each output of a function individually #455

@andreasabel

Description

@andreasabel

I can document individual inputs of a function, but not the outputs.

splitTelForWith
  -- Input:
  :: Telescope      -- ^ @Δ@        context of types and with-arguments.
  -> Type           -- ^ @Δ ⊢ t@    type of rhs.
  -> [Type]         -- ^ @Δ ⊢ as@   types of with arguments.
  -> [Term]         -- ^ @Δ ⊢ vs@   with arguments.
  -- Output:
  -> ( Telescope    -- ^ @Δ₁@       part of context not needed for with arguments and their types.
     , Telescope    -- ^ @Δ₂@       part of context needed for with arguments and their types.
     , Permutation  -- ^ @π@        permutation from Δ to Δ₁Δ₂ as returned by 'splitTelescope'.
     , Type         -- ^ @Δ₁Δ₂ ⊢ t'@ type of rhs under @π@
     , [Type]       -- ^ @Δ₁ ⊢ as'@ types with with-arguments depending only on $Δ₁@.
     , [Term]       -- ^ @Δ₁ ⊢ vs'@ with-arguments under @π@.
     )

Error:

src/full/Agda/TypeChecking/With.hs:57:21:
    parse error on input ‘-- ^ @Δ₁@       part of context not needed for with arguments and their types.’

To implement this feature, haddock would need to be extended to document parts of tuples individually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions