Skip to content

Commit

Permalink
Remove unnecessary CPP conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
fumieval committed Oct 12, 2023
1 parent 1517d23 commit fab803c
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions Web/Scotty/Internal/Types.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE FlexibleInstances #-}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fab803c

Please sign in to comment.