@@ -14,6 +14,7 @@ import Control.Monad
1414import Control.Monad.Reader
1515import Control.Monad.Writer.Strict hiding (Alt )
1616import Control.Monad.State.Strict (MonadState (.. ), StateT (.. ), runStateT )
17+ import qualified Data.Kind as K
1718import qualified Data.Map.Strict as M
1819import Data.Maybe (isJust )
1920import Data.Graph (graphFromEdges , topSort )
@@ -136,7 +137,7 @@ liftTopBuilderAndEmit
136137liftTopBuilderAndEmit cont = do
137138 liftTopBuilderHoisted cont >>= emitHoistedEnv
138139
139- newtype DoubleBuilderT (r :: IR ) (topEmissions :: B ) (m :: MonadKind ) (n :: S ) (a :: * ) =
140+ newtype DoubleBuilderT (r :: IR ) (topEmissions :: B ) (m :: MonadKind ) (n :: S ) (a :: K. Type ) =
140141 DoubleBuilderT { runDoubleBuilderT' :: DoubleInplaceT Env topEmissions (BuilderEmissions r ) m n a }
141142 deriving ( Functor , Applicative , Monad , MonadFail , Fallible
142143 , CtxReader , MonadIO , Catchable , MonadReader r')
@@ -343,7 +344,7 @@ lookupPtrName v = lookupEnv v >>= \case
343344getCache :: EnvReader m => m n (Cache n )
344345getCache = withEnv $ envCache . topEnv
345346
346- newtype TopBuilderT (m :: MonadKind ) (n :: S ) (a :: * ) =
347+ newtype TopBuilderT (m :: MonadKind ) (n :: S ) (a :: K. Type ) =
347348 TopBuilderT { runTopBuilderT' :: InplaceT Env TopEnvFrag m n a }
348349 deriving ( Functor , Applicative , Monad , MonadFail , Fallible
349350 , CtxReader , ScopeReader , MonadTrans1 , MonadReader r
@@ -418,7 +419,7 @@ instance (SinkableE e, HoistableState e, TopBuilder m) => TopBuilder (StateT1 e
418419
419420type BuilderEmissions r = RNest (Decl r )
420421
421- newtype BuilderT (r :: IR ) (m :: MonadKind ) (n :: S ) (a :: * ) =
422+ newtype BuilderT (r :: IR ) (m :: MonadKind ) (n :: S ) (a :: K. Type ) =
422423 BuilderT { runBuilderT' :: InplaceT Env (BuilderEmissions r ) m n a }
423424 deriving ( Functor , Applicative , Monad , MonadTrans1 , MonadFail , Fallible
424425 , Catchable , CtxReader , ScopeReader , Alternative , Searcher
0 commit comments