Arbitrary-rank polymorphism with RankNTypes

Other topics

RankNTypes

StackOverflow forces me to have one example. If this topic is approved, we should move this example here.

Syntax:

  • Arbitrary rank quantification is enabled with either the Rank2Types or RankNTypes language extension.
  • With this extension enabled, the forall keyword can be used to add higher-rank quantification.

Contributors

Topic Id: 8984

Example Ids: 27949

This site is not affiliated with any of the contributors.