newer ghc

This commit is contained in:
crumbtoo
2024-03-24 08:05:39 -06:00
parent 9678d3206a
commit 93ef870e56
7 changed files with 24 additions and 25 deletions

View File

@@ -30,7 +30,6 @@ import Numeric
import Data.Fix hiding (cata, para, cataM)
import Data.Functor.Bind
import Data.Functor.Foldable
import Data.Functor.Foldable.Monadic
import Control.Comonad
import Effectful.State.Static.Local
@@ -103,11 +102,7 @@ typeToCore (VarT n) = TyVar n
exprToCore :: (NameSupply :> es)
=> TypedRlpExpr PsName
-> Eff es (Cofree (Core.ExprF Var) Core.Type)
exprToCore = cataM \case
t :<$ InL e -> pure $ t' :< annotateVar t' e
where t' = typeToCore t
-- InL e -> pure . annotateVars . Fix $ e
-- InR e -> rlpExprToCore e
exprToCore = undefined
annotateVar :: Core.Type -> Core.ExprF PsName a -> Core.ExprF Var a