From 6fc351a9b4670aac7247d088c7aad7b4d505999d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 7 May 2013 19:17:22 -0400 Subject: remove unused patch --- ...yesod-form_1.2.1.3_0001-avoid-TH-hack-job.patch | 675 --------------------- 1 file changed, 675 deletions(-) delete mode 100644 standalone/android/haskell-patches/yesod-form_1.2.1.3_0001-avoid-TH-hack-job.patch (limited to 'standalone') diff --git a/standalone/android/haskell-patches/yesod-form_1.2.1.3_0001-avoid-TH-hack-job.patch b/standalone/android/haskell-patches/yesod-form_1.2.1.3_0001-avoid-TH-hack-job.patch deleted file mode 100644 index c4ab44c30..000000000 --- a/standalone/android/haskell-patches/yesod-form_1.2.1.3_0001-avoid-TH-hack-job.patch +++ /dev/null @@ -1,675 +0,0 @@ -From c47d263779fba34629130398f1b08be1b8e468f7 Mon Sep 17 00:00:00 2001 -From: Joey Hess -Date: Thu, 28 Feb 2013 23:40:05 -0400 -Subject: [PATCH] avoid TH (hack job) - ---- - Yesod/Form/Fields.hs | 93 ++++++++++++++++++++++++++++--------- - Yesod/Form/Functions.hs | 118 ++++++++++++++++++++++++++++++++--------------- - Yesod/Form/Jquery.hs | 13 ++++-- - Yesod/Form/MassInput.hs | 18 ++++++-- - yesod-form.cabal | 1 - - 5 files changed, 173 insertions(+), 70 deletions(-) - -diff --git a/Yesod/Form/Fields.hs b/Yesod/Form/Fields.hs -index adc59de..353c8d0 100644 ---- a/Yesod/Form/Fields.hs -+++ b/Yesod/Form/Fields.hs -@@ -50,7 +50,7 @@ import Yesod.Form.Types - import Yesod.Form.I18n.English - import Yesod.Form.Functions (parseHelper) - import Yesod.Handler (getMessageRender) --import Yesod.Widget (toWidget, whamlet, GWidget) -+import Yesod.Widget (toWidget, GWidget) - import Yesod.Message (RenderMessage (renderMessage), SomeMessage (..)) - import Text.Hamlet - import Text.Blaze (ToMarkup (toMarkup), preEscapedToMarkup, unsafeByteString) -@@ -108,10 +108,12 @@ intField = Field - Right (a, "") -> Right a - _ -> Left $ MsgInvalidInteger s - -- , fieldView = \theId name attrs val isReq -> toWidget [hamlet| -+ , fieldView = \theId name attrs val isReq -> error "intField TH TODO" -+{- toWidget [hamlet| - $newline never - - |] -+-} - , fieldEnctype = UrlEncoded - } - where -@@ -125,32 +127,40 @@ doubleField = Field - Right (a, "") -> Right a - _ -> Left $ MsgInvalidNumber s - -- , fieldView = \theId name attrs val isReq -> toWidget [hamlet| -+ , fieldView = \theId name attrs val isReq -> error "doubleField TH TODO" -+{- -+ - toWidget [hamlet| - $newline never - - |] -+-} - , fieldEnctype = UrlEncoded - } -- where showVal = either id (pack . show) -+{- -+ where showVal = either id (pack . show)-} - - dayField :: RenderMessage master FormMessage => Field sub master Day - dayField = Field - { fieldParse = parseHelper $ parseDate . unpack -- , fieldView = \theId name attrs val isReq -> toWidget [hamlet| -+ , fieldView = \theId name attrs val isReq -> error "dayfield TH TODO" -+{- toWidget [hamlet| - $newline never - - |] -+-} - , fieldEnctype = UrlEncoded - } -- where showVal = either id (pack . show) -+{- where showVal = either id (pack . show) -} - - timeField :: RenderMessage master FormMessage => Field sub master TimeOfDay - timeField = Field - { fieldParse = parseHelper parseTime -- , fieldView = \theId name attrs val isReq -> toWidget [hamlet| -+ , fieldView = \theId name attrs val isReq -> error "timefield TH TODO" -+{- toWidget [hamlet| - $newline never - - |] -+-} - , fieldEnctype = UrlEncoded - } - where -@@ -163,10 +173,12 @@ $newline never - htmlField :: RenderMessage master FormMessage => Field sub master Html - htmlField = Field - { fieldParse = parseHelper $ Right . preEscapedText . sanitizeBalance -- , fieldView = \theId name attrs val _isReq -> toWidget [hamlet| -+ , fieldView = \theId name attrs val _isReq -> error "htmlField TH TODO" -+{- toWidget [hamlet| - $newline never -