on master help sign in
Manual dead code elimination ;)
commit334d39c6448e823b26372e0d8fc6e2ce01d31a26 authorEvan Czaplicki <info@elm-lang.org> dateWed 17 Jul 2013, 19:25 (13 years ago) parent1d10836
1 file changed−12
compiler/Type/Constrain/Declaration.hs−12
compiler/Type/Constrain/Declaration.hs−12
@@ -50,15 +50,3 @@ toDefs decl =
5050
5151 -- no constraints are needed for fixity declarations
5252 Fixity _ _ _ -> []
53−
54−toEqualityDict :: Declaration t v -> Maybe (String, IO T.Type)
55−toEqualityDict decl =
56− case decl of
57− Definition _ -> Nothing
58− Datatype _ _ _ -> Nothing
59− ImportEvent _ _ _ _ -> Nothing
60− ExportEvent _ _ _ -> Nothing
61− Fixity _ _ _ -> Nothing
62− TypeAlias alias tvars tipe -> Just $ (,) alias $ do
63− pairs <- forM tvars $ \tname -> (,) tname <$> T.namedVar tname
64− TcExpr.instantiateTypeWithContext tipe (Map.fromList pairs)