avoid Safe extension

According to
http://www.haskell.org/ghc/docs/7.4.1/html/users_guide/safe-haskell.html#safe-inference
we should use Safe Haskell Inference in our case.