Enable Safe Haskell extension

Signed-off-by: Nicola Squartini <tensor5@gmail.com>