Fixes #7

Probably you are on Linux, that's why the pragma never kicked in and you never noticed the error :)

I've also added explicit type signature for a bit more clarity.
Finally, you need to sort out the package version, there is a bit of misalignment between what the cabal manifest says and the uploaded version on Hackage.