There are two main styles of writing functional programs, which are both supported by Haskell mainly because several language designers preferred these different styles. In the declaration style you formulate an algorithm in terms of several equations that shall be satisfied. In the expression style you compose big expressions from small expressions.