git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Use 'Is' instead of 'Contains' for instanceof
93cf421Andy Arvanitis
src/CodeGen/IL/Common.hs+1
@@ -84,6 +84,7 @@ nameIsILBuiltIn name =
84 , "Foreign"
84 , "Foreign"
85 , "Get"
85 , "Get"
86 , "Index"
86 , "Index"
87+ , "Is"
87 , "Length"
88 , "Length"
88 , "Once"
89 , "Once"
89 , "Run"
90 , "Run"
src/CodeGen/IL/Printer.hs+1−1
@@ -234,7 +234,7 @@ literals = mkPattern' match'
234 , return $ emit "]"
234 , return $ emit "]"
235 ]
235 ]
236 match (InstanceOf _ val ty) = mconcat <$> sequence
236 match (InstanceOf _ val ty) = mconcat <$> sequence
237− [ return $ emit "Contains("
237+ [ return $ emit "Is("
238 , prettyPrintIL' val
238 , prettyPrintIL' val
239 , return $ emit ", "
239 , return $ emit ", "
240 , prettyPrintIL' ty
240 , prettyPrintIL' ty