git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Remove IGNORE_UNUSED_RUNTIME dummy type and replace with Any
d1c8889Andy Arvanitis
runtime/purescript.go−2
@@ -24,8 +24,6 @@ type Fn8 = func(Any, Any, Any, Any, Any, Any, Any, Any) Any
24type Fn9 = func(Any, Any, Any, Any, Any, Any, Any, Any, Any) Any
24type Fn9 = func(Any, Any, Any, Any, Any, Any, Any, Any, Any) Any
25type Fn10 = func(Any, Any, Any, Any, Any, Any, Any, Any, Any, Any) Any
25type Fn10 = func(Any, Any, Any, Any, Any, Any, Any, Any, Any, Any) Any
26
26
27−type IGNORE_UNUSED_RUNTIME = bool
28−
29const Undefined = "undefined"
27const Undefined = "undefined"
30
28
31func Apply(f Any, args ...Any) Any {
29func Apply(f Any, args ...Any) Any {
src/CodeGen/IL/Printer.hs+1−1
@@ -445,7 +445,7 @@ implHeaderSource mn imports _ =
445 else "\n") <>
445 else "\n") <>
446 "import (\n" <>
446 "import (\n" <>
447 (T.concat $ formatImport <$> imports) <> ")\n\n" <>
447 (T.concat $ formatImport <$> imports) <> ")\n\n" <>
448− "type _ = IGNORE_UNUSED_RUNTIME\n\n"
448+ "type _ = Any\n\n"
449 where
449 where
450 formatImport :: Text -> Text
450 formatImport :: Text -> Text
451 formatImport s = " \"" <> s <> "\"\n"
451 formatImport s = " \"" <> s <> "\"\n"