diff --git a/yesod/scaffold/Import.hs.cg b/yesod/scaffold/Import.hs.cg index 641de382..13e396a3 100644 --- a/yesod/scaffold/Import.hs.cg +++ b/yesod/scaffold/Import.hs.cg @@ -15,7 +15,11 @@ module Import import Prelude hiding (writeFile, readFile, head, tail, init, last) import Yesod hiding (Route(..)) import Foundation +#if __GLASGOW_HASKELL__ < 704 import Data.Monoid (Monoid (mappend, mempty, mconcat)) +#else +import Data.Monoid (Monoid (mappend, mempty, mconcat), (<>)) +#endif import Control.Applicative ((<$>), (<*>), pure) import Data.Text (Text) import Settings.StaticFiles