I searched Text.Parsec.Token.natural on Hoogle and found the type Text.Parsec.Token.natural is natural :: ParsecT sum Integer .
But this is contrary to what I got with :t in GHCi.
GHCi gives this type:
Prelude Text.Parsec.Token> :t natural natural :: GenTokenParser sum -> Text.Parsec.Prim.ParsecT sum Integer
And not only natural ones, i.e. integer, floating, decimal, etc.
source share