Skip to content

Commit

Permalink
Follow hlint suggestion: redundant bracket. (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast authored Jul 18, 2022
1 parent 20a6cc7 commit 631facf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src-ghc-flat/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ mkSubst' = foldr substSubst [] . mapMaybe mkSubst

-- | Create simple substitution from type equalities
mkSubst :: Ct -> Maybe ((TcTyVar, TcType),Ct)
mkSubst ct@(CTyEqCan {..}) = Just ((cc_tyvar,cc_rhs),ct)
mkSubst ct@(CFunEqCan {..}) = Just ((cc_fsk,TyConApp cc_fun cc_tyargs),ct)
mkSubst _ = Nothing
mkSubst ct@CTyEqCan{..} = Just ((cc_tyvar,cc_rhs),ct)
mkSubst ct@CFunEqCan{..} = Just ((cc_fsk,TyConApp cc_fun cc_tyargs),ct)
mkSubst _ = Nothing

-- | Apply substitution in the evidence of Cts
substCt :: [(TcTyVar, TcType)] -> Ct -> Ct
Expand Down

0 comments on commit 631facf

Please sign in to comment.