Skip to content

Commit

Permalink
Simplify wrapper construction
Browse files Browse the repository at this point in the history
  • Loading branch information
ocharles committed Jun 16, 2018
1 parent 5f5b050 commit dc6ea21
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions plugin/AssertExplainer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,8 @@ explain toExplain = do
)

-- Solve wanted constraints and build a wrapper.
evBinds <-
GHC.EvBinds <$> GHC.simplifyTop wanteds

( _, zonkedEvBinds ) <-
GHC.zonkTcEvBinds GHC.emptyZonkEnv evBinds

let
wrapper =
GHC.mkWpLet zonkedEvBinds
wrapper <-
GHC.mkWpLet . GHC.EvBinds <$> GHC.simplifyTop wanteds

-- Apply the wrapper to our type checked syntax and fully saturate the
-- diagnostic function with the necessary arguments.
Expand Down

0 comments on commit dc6ea21

Please sign in to comment.