Docs: add syntax
trick to use Unicode instead of Haskell-compatible ASCII identifiers
#293
Labels
syntax
trick to use Unicode instead of Haskell-compatible ASCII identifiers
#293
Although users should generally use Haskell-compile identifiers for the definitions they compile with
agda2hs
, one could usesyntax
orpattern
declarations in Agda to emulate Unicode mixfix definitions that are translated away at the time we compile the internal syntax where all this has been de-sugared.As an example, we can use an infix notations for vectors:
that still compiles to the expected Haskell:
The text was updated successfully, but these errors were encountered: