Idris-dev
Idris-dev copied to clipboard
Show function composition infix using pretty printer
This is wrong:
> :t snd . snd $ ("a", ("b", "c"))
. (snd) (snd) ("a", ("b", "c")) : String
A similar things happen with the implicit arguments to (=).
> :t (=) Nat Int
= Nat Int : Nat -> Int -> Type
Thanks! These things need special handling and it's tough to find them on my own.
The problem with . is that the pprinter is looking for applications of non-alphanumeric names to two explicit arguments. In this case, it is applied to three when in normal form.