@@ -43,6 +43,7 @@ initialState = SS {
44modifyEnv f = modify $ \state -> state { sEnv = f (sEnv state) }
44modifyEnv f = modify $ \state -> state { sEnv = f (sEnv state) }
45modifyPool f = modify $ \state -> state { sPool = f (sPool state) }
45modifyPool f = modify $ \state -> state { sPool = f (sPool state) }
46addError message t1 t2 =
47addError message t1 t2 =
47 modify $ \state -> state { sErrors = err : sErrors state }
48 modify $ \state -> state { sErrors = err : sErrors state }
@@ -57,8 +58,6 @@ addError message t1 t2 =
57 , msg <> P.text "\n"
58 , msg <> P.text "\n"
58 , P.text " Expected Type:" <+> pt1
59 , P.text " Expected Type:" <+> pt1
59 , P.text " Actual Type:" <+> pt2 <> P.text "\n"
60 , P.text " Actual Type:" <+> pt2 <> P.text "\n"
60− , wordify "The error comes from:" <> P.text "\n"
61− , P.nest 3 (P.text "???")
64switchToPool pool = modifyPool (\_ -> pool)
63switchToPool pool = modifyPool (\_ -> pool)