diff --git a/src/SDL/Input/Keyboard/Codes.hs b/src/SDL/Input/Keyboard/Codes.hs index bc088e5..29ed2ee 100644 --- a/src/SDL/Input/Keyboard/Codes.hs +++ b/src/SDL/Input/Keyboard/Codes.hs @@ -1,9 +1,12 @@ +{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE PatternSynonyms #-} +#if MIN_VERSION_base(4,11,0) {-# OPTIONS_GHC -fno-warn-missing-pattern-synonym-signatures #-} +#endif {-# OPTIONS_GHC -fno-warn-missing-signatures #-} {-| diff --git a/src/SDL/Input/Mouse.hs b/src/SDL/Input/Mouse.hs index 143a278..4500d26 100644 --- a/src/SDL/Input/Mouse.hs +++ b/src/SDL/Input/Mouse.hs @@ -68,6 +68,10 @@ import qualified SDL.Raw.Types as Raw import Control.Applicative #endif +#if !MIN_VERSION_base(4,11,0) +import Data.Monoid ((<>)) +#endif + data LocationMode = AbsoluteLocation | RelativeLocation diff --git a/src/SDL/Raw/Enum.hsc b/src/SDL/Raw/Enum.hsc index 24fdc01..557e21b 100644 --- a/src/SDL/Raw/Enum.hsc +++ b/src/SDL/Raw/Enum.hsc @@ -1,7 +1,10 @@ +{-# LANGUAGE CPP #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE PatternSynonyms #-} +#if MIN_VERSION_base(4,11,0) {-# OPTIONS_GHC -fno-warn-missing-pattern-synonym-signatures #-} +#endif {-# OPTIONS_GHC -fno-warn-missing-signatures #-} module SDL.Raw.Enum (