-- Can specify the type if we want twice :: Int -> Int twice n = n * 2 -- From before square n = n * n area length width = length * width -- Result of square is passed to twice twiceSquare n = twice (square n) -- Another example of one function using another twiceArea n m = twice (area n m) -- Using the composition operator! Note: No parameters! twiceSquareComp = twice . square -- Defining a fn as the partial application of another double = (area 2)