GHC.TypeNats
exports type family of the following signature:
type family (m :: Nat) + (n :: Nat) :: Nat
How can I import it explicitly? import GHC.TypeNats((+))
does not work, because it says that GHC.TypeNats
does not export (+)
...
Everything compiles okay when I import whole module implicitly, but this really is not what I want to have in my code.
I am using GHC 8.6.5
(*)
though? That is a parse error in GHC 9.0 it seems. – Anthroposophy