@@ -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.Graph (graphFromEdges , topSort )
1920import Data.Text.Prettyprint.Doc (Pretty (.. ), group , line , nest )
@@ -135,7 +136,7 @@ liftTopBuilderAndEmit
135136liftTopBuilderAndEmit cont = do
136137 liftTopBuilderHoisted cont >>= emitHoistedEnv
137138
138- newtype DoubleBuilderT (r :: IR ) (topEmissions :: B ) (m :: MonadKind ) (n :: S ) (a :: * ) =
139+ newtype DoubleBuilderT (r :: IR ) (topEmissions :: B ) (m :: MonadKind ) (n :: S ) (a :: K. Type ) =
139140 DoubleBuilderT { runDoubleBuilderT' :: DoubleInplaceT Env topEmissions (BuilderEmissions r ) m n a }
140141 deriving ( Functor , Applicative , Monad , MonadFail , Fallible
141142 , CtxReader , MonadIO , Catchable , MonadReader r')
@@ -342,7 +343,7 @@ lookupPtrName v = lookupEnv v >>= \case
342343getCache :: EnvReader m => m n (Cache n )
343344getCache = withEnv $ envCache . topEnv
344345
345- newtype TopBuilderT (m :: MonadKind ) (n :: S ) (a :: * ) =
346+ newtype TopBuilderT (m :: MonadKind ) (n :: S ) (a :: K. Type ) =
346347 TopBuilderT { runTopBuilderT' :: InplaceT Env TopEnvFrag m n a }
347348 deriving ( Functor , Applicative , Monad , MonadFail , Fallible
348349 , CtxReader , ScopeReader , MonadTrans1 , MonadReader r
@@ -417,7 +418,7 @@ instance (SinkableE e, HoistableState e, TopBuilder m) => TopBuilder (StateT1 e
417418
418419type BuilderEmissions r = RNest (Decl r )
419420
420- newtype BuilderT (r :: IR ) (m :: MonadKind ) (n :: S ) (a :: * ) =
421+ newtype BuilderT (r :: IR ) (m :: MonadKind ) (n :: S ) (a :: K. Type ) =
421422 BuilderT { runBuilderT' :: InplaceT Env (BuilderEmissions r ) m n a }
422423 deriving ( Functor , Applicative , Monad , MonadTrans1 , MonadFail , Fallible
423424 , Catchable , CtxReader , ScopeReader , Alternative , Searcher
0 commit comments