From 659e120024987cb3cf3c6a60aa24228fb0da76a4 Mon Sep 17 00:00:00 2001 From: Greg Weber Date: Sat, 20 Aug 2011 06:42:33 -0700 Subject: [PATCH] #ifGHC7 [hamlet| -> [HAMLET| --- yesod-core/Yesod/Internal/Core.hs | 37 +++++-------------------------- 1 file changed, 6 insertions(+), 31 deletions(-) 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|

Not Found

#{path'} |] defaultErrorHandler (PermissionDenied msg) = applyLayout' "Permission Denied" -#if GHC7 - [hamlet| -#else - [$hamlet| -#endif + [HAMLET|

Permission denied

#{msg} |] defaultErrorHandler (InvalidArgs ia) = applyLayout' "Invalid Arguments" -#if GHC7 - [hamlet| -#else - [$hamlet| -#endif + [HAMLET|

Invalid Arguments