Skip to content

Commit

Permalink
Avoid hardcoding 'Generic' string in CtxRed experimental warning check
Browse files Browse the repository at this point in the history
  • Loading branch information
krame505 committed Mar 12, 2021
1 parent 607b1e7 commit 0675a91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/comp/CtxRed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Data.List(partition, (\\))
import Control.Monad(when)
import PFPrint
import Id
import PreIds(tmpTyVarIds)
import PreIds(tmpTyVarIds, idGeneric)
import Error(internalError, EMsg, ErrorHandle, bsWarning, bsError, ErrMsg(WExperimental))
import Flags(Flags)
import CSyntax
Expand Down Expand Up @@ -370,7 +370,7 @@ ctxRedCQType' isInstHead cqt = do
-- raise an experimental warning about uses of generics
let CQType cqs _ = cqt
case [p | p@(CPred {cpred_tc = CTypeclass i}) <- cqs,
unq_eqs i "Generic"] of
qualEq i idGeneric] of
p : _ -> twarn (getPosition p, WExperimental "generics")
[] -> return ()

Expand Down

0 comments on commit 0675a91

Please sign in to comment.