Fix type in HaskellWriter test