parent
6984bbf4ee
commit
3640376be8
1 changed files with 17 additions and 0 deletions
17
tests/test-files/good/Ports.elm
Normal file
17
tests/test-files/good/Ports.elm
Normal file
|
@ -0,0 +1,17 @@
|
|||
|
||||
-- incoming
|
||||
port userID : String
|
||||
port signal : Signal Int
|
||||
port tuple : (Float,Bool)
|
||||
port array : [Int]
|
||||
port record : { x:Float, y:Float }
|
||||
|
||||
-- outgoing
|
||||
port fortyTwo : Int
|
||||
port fortyTwo = 42
|
||||
|
||||
port time : Signal Float
|
||||
port time = every second
|
||||
|
||||
port students : Signal [{name:String, age:Int}]
|
||||
port students = constant []
|
Loading…
Reference in a new issue