make Alex instances of Functor and Applicative