Take Haskell2010 extension into account

Closes #36