Skip to content

New SignatureSections extension

Originally proposed by Lennart Augustsson

See also SignatureSections

Preliminary specification

Have

  • (:: type )

be syntax sugar for

  • (\x -> x :: type )

This new syntax extension is enabled via a new SignatureSections (or maybe TypeSignatureSections) language pragma, e.g.

{-# LANGUAGE SignatureSections #-}

Typing judgement:

_________________________
 G ⊢ (:: ty) :: ty -> ty
Edited by Herbert Valerio Riedel
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information