-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: wai-app-static/wai-app-static.cabal wai-extra/wai-extra.cabal wai-websockets/Network/Wai/Handler/WebSockets.hs wai-websockets/wai-websockets.cabal warp/warp.cabal
- Loading branch information
Showing
8 changed files
with
127 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
wai-extra/Network/Wai/Middleware/RequestLogger/Internal.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{-# LANGUAGE CPP #-} | ||
-- | A module for containing some CPPed code, due to: | ||
-- | ||
-- https://github.com/yesodweb/wai/issues/192 | ||
module Network.Wai.Middleware.RequestLogger.Internal where | ||
|
||
import Data.ByteString (ByteString) | ||
import System.Log.FastLogger | ||
#if MIN_VERSION_fast_logger(0,3,0) | ||
import System.Date.Cache (ondemandDateCacher) | ||
#else | ||
import System.Log.FastLogger.Date (getDate, dateInit, ZonedDate) | ||
#endif | ||
|
||
getDateGetter :: IO (IO ByteString) | ||
#if MIN_VERSION_fast_logger(0, 3, 0) | ||
getDateGetter = fmap fst $ ondemandDateCacher zonedDateCacheConf | ||
#else | ||
getDateGetter = fmap getDate dateInit | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.