on master help sign in
Update Type.Constrain.Literal for new AST
commitddb21c5d23ce45f075d4e7b6f16d4b09dc315126 authorEvan Czaplicki <evancz@users.noreply.github.com> dateWed 1 Nov 2017, 16:37 (9 years ago) parent07f61dc
1 file changed−9
src/Type/Constrain/Literal.hs−9
src/Type/Constrain/Literal.hs−9
@@ -29,9 +29,6 @@ constrain region literal tipe =
2929 Lit.Str _ ->
3030 return $ T.CEqual stringError region T.string tipe
3131
32− Lit.Boolean _ ->
33− return $ T.CEqual boolError region T.bool tipe
34−
3532
3633
3734-- LITERAL ERRORS
@@ -59,9 +56,3 @@ charError =
5956stringError :: Error.Hint
6057stringError =
6158 Error.Literal "string"
62−
63−
64−{-# NOINLINE boolError #-}
65−boolError :: Error.Hint
66−boolError =
67− Error.Literal "boolean"