diff --git a/yesod-core/Yesod/Internal/Core.hs b/yesod-core/Yesod/Internal/Core.hs index 6693bb88..603c0231 100644 --- a/yesod-core/Yesod/Internal/Core.hs +++ b/yesod-core/Yesod/Internal/Core.hs @@ -424,31 +424,19 @@ defaultErrorHandler NotFound = do r <- waiRequest let path' = TE.decodeUtf8With TEE.lenientDecode $ W.rawPathInfo r applyLayout' "Not Found" -#if GHC7 - [hamlet| -#else - [$hamlet| -#endif + [HAMLET|
#{path'} |] defaultErrorHandler (PermissionDenied msg) = applyLayout' "Permission Denied" -#if GHC7 - [hamlet| -#else - [$hamlet| -#endif + [HAMLET|
#{msg} |] defaultErrorHandler (InvalidArgs ia) = applyLayout' "Invalid Arguments" -#if GHC7 - [hamlet| -#else - [$hamlet| -#endif + [HAMLET|
#{e} |] defaultErrorHandler (BadMethod m) = applyLayout' "Bad Method" -#if GHC7 - [hamlet| -#else - [$hamlet| -#endif + [HAMLET|
Method "#{S8.unpack m}" not supported |] @@ -537,12 +517,7 @@ widgetToPageContent (GWidget w) = do left _ = Nothing right (Right x) = Just x right _ = Nothing - let head'' = -#if GHC7 - [hamlet| -#else - [$hamlet| -#endif + let head'' = [HAMLET| $forall s <- stylesheets ^{mkLinkTag s} $forall s <- css