diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-16 17:51:41 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-16 17:51:41 +0100 |
commit | adf379f414ebd6f06cfe49dc481b220c7f141ba1 (patch) | |
tree | 42fc074e4bba496c48c0fac472a4d8b829725d92 | |
parent | 089ba7d7f860022780da9d426207dc7fe3507a55 (diff) | |
download | bar-adf379f414ebd6f06cfe49dc481b220c7f141ba1.tar bar-adf379f414ebd6f06cfe49dc481b220c7f141ba1.tar.gz bar-adf379f414ebd6f06cfe49dc481b220c7f141ba1.tar.bz2 bar-adf379f414ebd6f06cfe49dc481b220c7f141ba1.tar.xz bar-adf379f414ebd6f06cfe49dc481b220c7f141ba1.zip |
Revert "Roll own cleanPath"
This reverts commit 089ba7d7f860022780da9d426207dc7fe3507a55.
-rw-r--r-- | Foundation.hs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Foundation.hs b/Foundation.hs index 8b3fe46..d7425d5 100644 --- a/Foundation.hs +++ b/Foundation.hs | |||
@@ -123,19 +123,6 @@ instance Yesod App where | |||
123 | -- error pages | 123 | -- error pages |
124 | defaultMessageWidget title body = $(widgetFile "default-message-widget") | 124 | defaultMessageWidget title body = $(widgetFile "default-message-widget") |
125 | 125 | ||
126 | cleanPath _ s = if corrected == s | ||
127 | then Right $ filter (not . null) s | ||
128 | else Left corrected | ||
129 | where | ||
130 | corrected = rds s | ||
131 | |||
132 | rds [] = [] | ||
133 | rds [x] = [x] | ||
134 | rds (x:y:ss) | ||
135 | | null x | ||
136 | , null y = rds (x:ss) | ||
137 | | otherwise = x : rds (y:ss) | ||
138 | |||
139 | -- How to run database actions. | 126 | -- How to run database actions. |
140 | instance YesodPersist App where | 127 | instance YesodPersist App where |
141 | type YesodPersistBackend App = SqlBackend | 128 | type YesodPersistBackend App = SqlBackend |