diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-12-29 23:46:52 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-02-20 21:56:13 -0500 |
commit | 89cb4cc4cc76f834b0bcc53fb551db706ef143b7 (patch) | |
tree | c1d16f85237abfa8ed866a17853a74367f065fca /compiler/parser | |
parent | c5ec996583373025488c090fb2c89f7bda38c1cb (diff) | |
download | haskell-89cb4cc4cc76f834b0bcc53fb551db706ef143b7.tar.gz |
Use Type instead of * in GHC
Diffstat (limited to 'compiler/parser')
-rw-r--r-- | compiler/parser/RdrHsSyn.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/parser/RdrHsSyn.hs b/compiler/parser/RdrHsSyn.hs index a4ca9aaf76..ef64ce25e6 100644 --- a/compiler/parser/RdrHsSyn.hs +++ b/compiler/parser/RdrHsSyn.hs @@ -138,6 +138,7 @@ import Text.ParserCombinators.ReadP as ReadP import Data.Char import qualified Data.Monoid as Monoid import Data.Data ( dataTypeOf, fromConstr, dataTypeConstrs ) +import Data.Kind ( Type ) #include "HsVersions.h" @@ -1733,7 +1734,7 @@ instance DisambInfixOp RdrName where -- See Note [Ambiguous syntactic categories] class b ~ (Body b) GhcPs => DisambECP b where -- | See Note [Body in DisambECP] - type Body b :: * -> * + type Body b :: Type -> Type -- | Return a command without ambiguity, or fail in a non-command context. ecpFromCmd' :: LHsCmd GhcPs -> PV (Located b) -- | Return an expression without ambiguity, or fail in a non-expression context. @@ -1843,7 +1844,7 @@ even when -XUndecidableSuperClasses are not required. {- Note [Body in DisambECP] ~~~~~~~~~~~~~~~~~~~~~~~~~~~ There are helper functions (mkBodyStmt, mkBindStmt, unguardedRHS, etc) that -require their argument to take a form of (body GhcPs) for some (body :: * -> +require their argument to take a form of (body GhcPs) for some (body :: Type -> *). To satisfy this requirement, we say that (b ~ Body b GhcPs) in the superclass constraints of DisambECP. |