Enable Safe Haskell extension

Signed-off-by: Nicola Squartini <tensor5@gmail.com>
Merge pull request #6 from tensor5/master

Enable Safe Haskell extension