From fab803c9975341baf49ddbc125079ba2b62049ce Mon Sep 17 00:00:00 2001 From: Fumiaki Kinoshita Date: Thu, 12 Oct 2023 15:44:51 +0900 Subject: [PATCH] Remove unnecessary CPP conditionals --- Web/Scotty/Internal/Types.hs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/Web/Scotty/Internal/Types.hs b/Web/Scotty/Internal/Types.hs index 98ec69aa..b462d198 100644 --- a/Web/Scotty/Internal/Types.hs +++ b/Web/Scotty/Internal/Types.hs @@ -1,4 +1,3 @@ -{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE FlexibleInstances #-} @@ -242,40 +241,19 @@ instance (Semigroup a) => Semigroup (ScottyT m a) where instance ( Monoid a -#if !(MIN_VERSION_base(4,11,0)) - , Semigroup a -#endif -#if !(MIN_VERSION_base(4,8,0)) - , Functor m -#endif ) => Monoid (ScottyT m a) where mempty = return mempty -#if !(MIN_VERSION_base(4,11,0)) - mappend = (<>) -#endif instance ( Monad m -#if !(MIN_VERSION_base(4,8,0)) - , Functor m -#endif , Semigroup a ) => Semigroup (ActionT m a) where x <> y = (<>) <$> x <*> y instance ( Monad m, Monoid a -#if !(MIN_VERSION_base(4,11,0)) - , Semigroup a -#endif -#if !(MIN_VERSION_base(4,8,0)) - , Functor m -#endif ) => Monoid (ActionT m a) where mempty = return mempty -#if !(MIN_VERSION_base(4,11,0)) - mappend = (<>) -#endif ------------------ Scotty Routes -------------------- data RoutePattern = Capture Text