g f x
would not be the same as (g . f) x
you need the right associative function application operator $, ie. g $ f x
or simply g (f x) g f x
would not be the same as (g . f) x
you need the right associative function application operator $, ie. g $ f x
or simply g (f x)