type Seg = (Int, Int)type Pos = (Int, Int) f::Bool->Seg->Intf a (c,d) = if a then c else d f1::Pos->Intf1 p = f True p main = print $ f1 (4,5)
Standard input is empty
4
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!