Skip to content

Commit

Permalink
Oops, restore this.
Browse files Browse the repository at this point in the history
  • Loading branch information
zfnmxt committed Jun 14, 2023
1 parent e23c4d1 commit 6fe09cc
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/Futhark/Internalise/Monad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import Control.Monad.State
import Data.Map.Strict qualified as M
import Futhark.IR.SOACS
import Futhark.MonadFreshNames
import Futhark.SoP.Monad
import Futhark.Tools

type FunInfo =
Expand Down Expand Up @@ -62,14 +61,7 @@ data InternaliseState = InternaliseState

newtype InternaliseM a
= InternaliseM
( BuilderT
SOACS
( SoPMT
VName
(ReaderT InternaliseEnv (State InternaliseState))
)
a
)
(BuilderT SOACS (ReaderT InternaliseEnv (State InternaliseState)) a)
deriving
( Functor,
Applicative,
Expand Down Expand Up @@ -112,9 +104,7 @@ runInternaliseM ::
runInternaliseM safe (InternaliseM m) =
modifyNameSource $ \src ->
let ((_, consts), s) =
runState
(runReaderT (evalSoPMT mempty (runBuilderT m mempty)) newEnv)
(newState src)
runState (runReaderT (runBuilderT m mempty) newEnv) (newState src)
in ( (stateTypes s, consts, reverse $ stateFuns s),
stateNameSource s
)
Expand Down

0 comments on commit 6fe09cc

Please sign in to comment.