make sample compile with GHC 7.6.2