// Row arguments, and effects whose parameters are rows (ADR 0065). effect ask { fn ask :: -> Int } effect later { fn later :: render: fn() -> Int / -> Int } pub type Steps { Steps(fn() -> Int / ) } // A row is written where a row is expected. fn steps :: s: Steps<> -> Steps<> { s } //~ TYPE steps: fn(Steps<>) -> Steps<> fn closed :: -> Steps<<>> { Steps(fn { 1 }) } //~ TYPE closed: fn() -> Steps<<>> // A row is not a type, and a type is not a row. fn not_a_type :: x: -> Int //~^ ERROR E0213 a row has kind `Row`, but kind `Type` is expected here { 1 } fn not_a_row :: -> Int / > //~ ERROR E0213 //~^ WARN W0501 { 1 }