Now I'm thinking what the type of the Dirac delta function is.
I'm leaning to something like: (X (R -> R) ((R -> R) -> (R -> R))) -> R where we are given a function (R -> R) on which it acts and a linear operation (R -> R) -> (R -> R), like integration, which acts on it and gives us a single real number as the answer.