Skip to content

Commit

Permalink
Control.Monad.Free.TH: Delete redundant bndrName function
Browse files Browse the repository at this point in the history
Its functionality is subsumed by `tyVarBndrName`.
  • Loading branch information
RyanGlScott committed May 24, 2020
1 parent dff8d0b commit 4856d26
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Control/Monad/Free/TH.hs
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,7 @@ unifyCaptured _ xs = fail $ unlines
, unlines (map (pprint . fst) xs) ]

extractVars :: Type -> [Name]
extractVars (ForallT bs _ t) = extractVars t \\ map bndrName bs
where
bndrName (PlainTV n) = n
bndrName (KindedTV n _) = n
extractVars (ForallT bs _ t) = extractVars t \\ map tyVarBndrName bs
extractVars (VarT n) = [n]
extractVars (AppT x y) = extractVars x ++ extractVars y
#if MIN_VERSION_template_haskell(2,8,0)
Expand Down

0 comments on commit 4856d26

Please sign in to comment.