fixed compile error for GHC 7.8
use eitherDecode instead of decode
Merge pull request #3 from sebastian-philipp/master

fixed compile error for GHC 7.8