Description
in #4100 and #4119, we display kind signatures to HTML docs, but only if those kind signatures are "interesting." In other words, "uninteresting" kinds are removed. While working on #4121, I discovered that parenthesis are not properly accounted for when checking if a kind signature is "uninteresting."
To Reproduce
Steps to reproduce the behavior.
mkdir uninterestingKinds
cd uninterestingKinds
cat << EOF > src/Main.purs
module Main where
data Oops :: (Type) -> Type
data Oops a = Oops
EOF
purs docs "src/**/*.purs"

Expected behavior
If a kind signature is still considered uninteresting once redundant parenthesis are removed, then the kind signature should be omitted.
PureScript version
master
Description
in #4100 and #4119, we display kind signatures to HTML docs, but only if those kind signatures are "interesting." In other words, "uninteresting" kinds are removed. While working on #4121, I discovered that parenthesis are not properly accounted for when checking if a kind signature is "uninteresting."
To Reproduce
Steps to reproduce the behavior.
Expected behavior
If a kind signature is still considered uninteresting once redundant parenthesis are removed, then the kind signature should be omitted.
PureScript version
master