Added Safe Haskell annotations

Fixes #20