Added Safe Haskell annotations

Fixes #20
Merge remote-tracking branch 'feurbach/master'