Skip to content

Commit 260ed93

Browse files
committed
Remove experimental warning when using generics
1 parent 264633b commit 260ed93

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/comp/CtxRed.hs

+2-9
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import Data.List(partition, (\\))
44
import Control.Monad(when)
55
import PFPrint
66
import Id
7-
import PreIds(tmpTyVarIds, idGeneric)
8-
import Error(internalError, EMsg, ErrorHandle, bsWarning, bsError, ErrMsg(WExperimental))
7+
import PreIds(tmpTyVarIds)
8+
import Error(internalError, EMsg, ErrorHandle, bsWarning, bsError)
99
import Flags(Flags)
1010
import CSyntax
1111
import Type
@@ -367,13 +367,6 @@ ctxRedCQType = ctxRedCQType' False
367367
ctxRedCQType' :: Bool -> CQType -> TI (Subst, CQType)
368368
ctxRedCQType' isInstHead cqt = do
369369

370-
-- raise an experimental warning about uses of generics
371-
let CQType cqs _ = cqt
372-
case [p | p@(CPred {cpred_tc = CTypeclass i}) <- cqs,
373-
qualEq i idGeneric] of
374-
p : _ -> twarn (getPosition p, WExperimental "generics")
375-
[] -> return ()
376-
377370
-- find out what variables were bound prior to here
378371
prev_bound_tvs <- getBoundTVs
379372

0 commit comments

Comments
 (0)