@@ -1,6 +1,6 @@
11module Generate.JavaScript.Port
2− ( inbound, inboundStream
3− , outbound, outboundStream
2+ ( inbound, inboundSignal
3+ , outbound, outboundSignal
44 ) where
55
66import qualified Data.List as List
@@ -82,9 +82,9 @@ inbound name tipe =
8282 ]
8383
8484
85−inboundStream :: String -> CanonicalType -> Expression ()
86−inboundStream name tipe =
87− _Port "inboundStream" `call`
85+inboundSignal :: String -> CanonicalType -> Expression ()
86+inboundSignal name tipe =
87+ _Port "inboundSignal" `call`
8888 [ string name
8989 , string (show (pretty tipe))
9090 , toTypeFunction tipe
@@ -117,7 +117,7 @@ toType tipe x =
117117 from checks = check x checks x
118118
119119 Type name
120− | Var.isJavaScript name ->
120+ | Var.isJson name ->
121121 x
122122
123123 | Var.isTuple name ->
@@ -183,9 +183,9 @@ outbound name tipe expr =
183183 _Port "outbound" `call` [ string name, fromTypeFunction tipe, expr ]
184184
185185
186−outboundStream :: String -> CanonicalType -> Expression () -> Expression ()
187−outboundStream name tipe expr =
188− _Port "outboundStream" `call` [ string name, fromTypeFunction tipe, expr ]
186+outboundSignal :: String -> CanonicalType -> Expression () -> Expression ()
187+outboundSignal name tipe expr =
188+ _Port "outboundSignal" `call` [ string name, fromTypeFunction tipe, expr ]
189189
190190
191191fromTypeFunction :: CanonicalType -> Expression ()
@@ -223,7 +223,7 @@ fromType tipe x =
223223 x
224224
225225 Type name
226− | Var.isJavaScript name -> x
226+ | Var.isJson name -> x
227227 | Var.isTuple name -> ArrayLit () []
228228 | otherwise -> error "bad type got to an output"
229229