fix haskell compiler warnings