git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Remove IGNORE_UNUSED_RUNTIME dummy type and replace with Any
commitd1c888977d1fea0bb9327780ab79bf5f0159d655 authorAndy Arvanitis <andyarvanitis@gmail.com> dateFri 12 Jul 2019, 19:16 (7 years ago) parent6f18853
2 files changed+1−3
runtime/purescript.go−2 src/CodeGen/IL/Printer.hs+1−1
runtime/purescript.go−2
@@ -24,8 +24,6 @@ type Fn8 = func(Any, Any, Any, Any, Any, Any, Any, Any) Any
2424type Fn9 = func(Any, Any, Any, Any, Any, Any, Any, Any, Any) Any
2525type Fn10 = func(Any, Any, Any, Any, Any, Any, Any, Any, Any, Any) Any
2626
27−type IGNORE_UNUSED_RUNTIME = bool
28−
2927const Undefined = "undefined"
3028
3129func Apply(f Any, args ...Any) Any {
src/CodeGen/IL/Printer.hs+1−1
@@ -445,7 +445,7 @@ implHeaderSource mn imports _ =
445445 else "\n") <>
446446 "import (\n" <>
447447 (T.concat $ formatImport <$> imports) <> ")\n\n" <>
448− "type _ = IGNORE_UNUSED_RUNTIME\n\n"
448+ "type _ = Any\n\n"
449449 where
450450 formatImport :: Text -> Text
451451 formatImport s = " \"" <> s <> "\"\n"