on master help sign in
Generate proper code to let () out ports

Fix https://github.com/elm/compiler/issues/1714

commitc8a6b0ffe56223062d9fa3a4dd5b4106e35985f0 authorEvan Czaplicki <evancz@users.noreply.github.com> dateFri 25 May 2018, 14:35 (8 years ago) parent6432c00
1 file changed+1−1
compiler/src/Optimize/Port.hs+1−1
compiler/src/Optimize/Port.hs+1−1
@@ -38,7 +38,7 @@ toEncoder tipe =
3838 error "toEncoder: type variable"
3939
4040 Can.TUnit ->
41− encode "null"
41+ Opt.Function [N.dollar] <$> encode "null"
4242
4343 Can.TTuple a b c ->
4444 encodeTuple a b c