mirror of
https://github.com/typeable/wai.git
synced 2025-01-06 05:25:53 +03:00
defining Cabal macro if not defined.
This commit is contained in:
parent
7ab66f9304
commit
52515fe202
@ -1,5 +1,9 @@
|
||||
{-# LANGUAGE CPP #-}
|
||||
|
||||
#ifndef MIN_VERSION_base
|
||||
#define MIN_VERSION_base(x,y,z) 1
|
||||
#endif
|
||||
|
||||
module Network.Wai.Handler.Warp.IORef (
|
||||
module Data.IORef
|
||||
#if !MIN_VERSION_base(4,6,0)
|
||||
|
@ -42,6 +42,10 @@ module Network.Wai.Handler.Warp.Timeout (
|
||||
, TimeoutThread (..)
|
||||
) where
|
||||
|
||||
#ifndef MIN_VERSION_base
|
||||
#define MIN_VERSION_base(x,y,z) 1
|
||||
#endif
|
||||
|
||||
#if MIN_VERSION_base(4,6,0)
|
||||
import Control.Concurrent (mkWeakThreadId, ThreadId)
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user