diff options
author | Vincent Ambo <vincent@spotify.com> | 2014-05-18T20·39+0200 |
---|---|---|
committer | Vincent Ambo <vincent@spotify.com> | 2014-05-18T20·39+0200 |
commit | a5481e70e4213595a9c48e0d73178ed9ffb9a073 (patch) | |
tree | 277ef540cf9a6ce6316b66d6bde5ec6599568924 /src/BlogDB.hs | |
parent | 5f6841afa263a7d5938e31eef8df1f8066cd7dd5 (diff) |
Refactoring: Moved Happstack things to Server.hs
Diffstat (limited to 'src/BlogDB.hs')
-rw-r--r-- | src/BlogDB.hs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/BlogDB.hs b/src/BlogDB.hs index e2787794c344..ca20aedb091d 100644 --- a/src/BlogDB.hs +++ b/src/BlogDB.hs @@ -15,7 +15,6 @@ import Data.SafeCopy (SafeCopy, base, deriveSafeCopy) import Data.Text (Text, pack) import Data.Text.Lazy (toStrict) import Data.Time -import Happstack.Server (FromReqURI (..)) import System.Environment (getEnv) import qualified Crypto.Hash.SHA512 as SHA (hash) @@ -40,13 +39,6 @@ instance Show BlogLang where show DE = "de" show EN = "en" -instance FromReqURI BlogLang where - fromReqURI sub = - case map toLower sub of - "de" -> Just DE - "en" -> Just EN - _ -> Nothing - $(deriveSafeCopy 0 'base ''BlogLang) data Comment = Comment { |