Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove outdated CPP #519

Merged
merged 1 commit into from
Mar 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions bench/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ main :: IO ()
main = defaultMain
[ bgroup "micro" micros ]

#if !(MIN_VERSION_deepseq(1,4,2))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We require base >= 4.11 and https://hackage.haskell.org/package/deepseq-1.4.2.0 only supports < 4.10 so we always use newer versions

instance NFData (IORef a) where
rnf x = seq x ()
#endif

instance NFData (TVar a) where
rnf x = seq x ()

Expand Down
4 changes: 0 additions & 4 deletions src/Control/Monad/ReaderIO.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
where

import Control.Monad.Fix
#if MIN_VERSION_base(4,10,0)
import Control.Applicative

Check warning on line 12 in src/Control/Monad/ReaderIO.hs

View workflow job for this annotation

GitHub Actions / GHC 9.10.1 on ubuntu-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 12 in src/Control/Monad/ReaderIO.hs

View workflow job for this annotation

GitHub Actions / GHC 9.10.1 on ubuntu-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 12 in src/Control/Monad/ReaderIO.hs

View workflow job for this annotation

GitHub Actions / GHC 9.12.1 on ubuntu-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 12 in src/Control/Monad/ReaderIO.hs

View workflow job for this annotation

GitHub Actions / GHC 9.12.1 on ubuntu-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 12 in src/Control/Monad/ReaderIO.hs

View workflow job for this annotation

GitHub Actions / GHC 9.6.1 on ubuntu-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 12 in src/Control/Monad/ReaderIO.hs

View workflow job for this annotation

GitHub Actions / GHC 9.6.1 on ubuntu-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 12 in src/Control/Monad/ReaderIO.hs

View workflow job for this annotation

GitHub Actions / GHC 9.8.2 on ubuntu-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 12 in src/Control/Monad/ReaderIO.hs

View workflow job for this annotation

GitHub Actions / GHC 9.8.2 on ubuntu-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 12 in src/Control/Monad/ReaderIO.hs

View workflow job for this annotation

GitHub Actions / GHC 9.10.1 on macos-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 12 in src/Control/Monad/ReaderIO.hs

View workflow job for this annotation

GitHub Actions / GHC 9.10.1 on macos-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 12 in src/Control/Monad/ReaderIO.hs

View workflow job for this annotation

GitHub Actions / GHC 9.6.1 on macos-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 12 in src/Control/Monad/ReaderIO.hs

View workflow job for this annotation

GitHub Actions / GHC 9.6.1 on macos-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 12 in src/Control/Monad/ReaderIO.hs

View workflow job for this annotation

GitHub Actions / GHC 9.8.2 on macos-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 12 in src/Control/Monad/ReaderIO.hs

View workflow job for this annotation

GitHub Actions / GHC 9.8.2 on macos-latest

The import of ‘Control.Applicative’ is redundant
#endif
import Control.Monad
import Control.Monad.Reader.Class
import Control.Monad.IO.Class
Expand All @@ -34,10 +32,8 @@
{-# INLINE pure #-}
(<*>) = ap
{-# INLINE (<*>) #-}
#if MIN_VERSION_base(4,10,0)
liftA2 = liftM2
{-# INLINE liftA2 #-}
#endif

instance Monad (ReaderIO e) where
ReaderIO q >>= f = ReaderIO $ \e -> q e >>= \a -> runReaderIO (f a) e
Expand Down
4 changes: 0 additions & 4 deletions src/Data/AppendMap.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ import Prelude hiding (null)
import Data.Coerce
import Data.Default
import Data.Map (Map)
#if MIN_VERSION_containers(0,5,11)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We directly require containers >= 0.6

import qualified Data.Map.Internal.Debug as Map (showTree, showTreeWith)
#else
import qualified Data.Map as Map (showTree, showTreeWith)
#endif

import Data.Map.Monoidal

Expand Down
9 changes: 0 additions & 9 deletions src/Reflex/Dynamic/TH.hs
Original file line number Diff line number Diff line change
Expand Up @@ -89,23 +89,14 @@
mkDynExp s = case Hs.parseExpWithMode Hs.defaultParseMode { Hs.extensions = [ Hs.EnableExtension Hs.TemplateHaskell ] } s of
Hs.ParseFailed (Hs.SrcLoc _ l c) err -> fail $ "mkDyn:" <> show l <> ":" <> show c <> ": " <> err
Hs.ParseOk e -> qDynPure $ return $ everywhere (id `extT` reinstateUnqDyn) $ Hs.toExp $ everywhere (id `extT` antiE) e
where TH.Name (TH.OccName occName) (TH.NameG _ _ (TH.ModName modName)) = 'unqMarker

Check warning on line 92 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.10.1 on ubuntu-latest

Pattern match(es) are non-exhaustive

Check warning on line 92 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.12.1 on ubuntu-latest

Pattern match(es) are non-exhaustive

Check warning on line 92 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.6.1 on ubuntu-latest

Pattern match(es) are non-exhaustive

Check warning on line 92 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.8.2 on ubuntu-latest

Pattern match(es) are non-exhaustive

Check warning on line 92 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.4.5 on ubuntu-latest

Pattern match(es) are non-exhaustive

Check warning on line 92 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.2.5 on ubuntu-latest

Pattern match(es) are non-exhaustive

Check warning on line 92 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.2.5 on macos-latest

Pattern match(es) are non-exhaustive

Check warning on line 92 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.10.1 on macos-latest

Pattern match(es) are non-exhaustive

Check warning on line 92 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.4.5 on macos-latest

Pattern match(es) are non-exhaustive

Check warning on line 92 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.6.1 on macos-latest

Pattern match(es) are non-exhaustive

Check warning on line 92 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.8.2 on macos-latest

Pattern match(es) are non-exhaustive
#if MIN_VERSION_haskell_src_exts(1,18,0)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

antiE :: Hs.Exp Hs.SrcSpanInfo -> Hs.Exp Hs.SrcSpanInfo
antiE x = case x of
Hs.SpliceExp l se ->
Hs.App l (Hs.Var l $ Hs.Qual l (Hs.ModuleName l modName) (Hs.Ident l occName)) $ case se of

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 8.4.4 on ubuntu-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.10.1 on ubuntu-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.12.1 on ubuntu-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.6.1 on ubuntu-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.8.2 on ubuntu-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 8.10.7 on ubuntu-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 8.6.5 on ubuntu-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 8.8.4 on ubuntu-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.4.5 on ubuntu-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.0.2 on ubuntu-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.2.5 on ubuntu-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 8.10.7 on macos-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 8.4.4 on macos-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 8.6.5 on macos-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 8.8.4 on macos-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.0.2 on macos-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.2.5 on macos-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.10.1 on macos-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.4.5 on macos-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.6.1 on macos-latest

Pattern match(es) are non-exhaustive

Check warning on line 96 in src/Reflex/Dynamic/TH.hs

View workflow job for this annotation

GitHub Actions / GHC 9.8.2 on macos-latest

Pattern match(es) are non-exhaustive
Hs.IdSplice l2 v -> Hs.Var l2 $ Hs.UnQual l2 $ Hs.Ident l2 v
Hs.ParenSplice _ ps -> ps
_ -> x
#else
antiE x = case x of
Hs.SpliceExp se ->
Hs.App (Hs.Var $ Hs.Qual (Hs.ModuleName modName) (Hs.Ident occName)) $ case se of
Hs.IdSplice v -> Hs.Var $ Hs.UnQual $ Hs.Ident v
Hs.ParenSplice ps -> ps
_ -> x
#endif
reinstateUnqDyn (TH.Name (TH.OccName occName') (TH.NameQ (TH.ModName modName')))
| modName == modName' && occName == occName' = 'unqMarker
reinstateUnqDyn x = x
2 changes: 0 additions & 2 deletions src/Reflex/FunctorMaybe.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{-# LANGUAGE CPP #-}
#if MIN_VERSION_base(4,9,0)
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE StandaloneDeriving #-}
#endif

-- |
-- Module:
Expand Down Expand Up @@ -34,7 +32,7 @@
fmapMaybe = mapMaybe

#if !MIN_VERSION_base(4,16,0)
deriving instance FunctorMaybe Option

Check warning on line 35 in src/Reflex/FunctorMaybe.hs

View workflow job for this annotation

GitHub Actions / GHC 9.0.2 on ubuntu-latest

In the use of type constructor or class ‘Option’

Check warning on line 35 in src/Reflex/FunctorMaybe.hs

View workflow job for this annotation

GitHub Actions / GHC 9.0.2 on ubuntu-latest

In the use of type constructor or class ‘Option’

Check warning on line 35 in src/Reflex/FunctorMaybe.hs

View workflow job for this annotation

GitHub Actions / GHC 9.0.2 on macos-latest

In the use of type constructor or class ‘Option’

Check warning on line 35 in src/Reflex/FunctorMaybe.hs

View workflow job for this annotation

GitHub Actions / GHC 9.0.2 on macos-latest

In the use of type constructor or class ‘Option’
#endif

instance FunctorMaybe [] where
Expand Down
2 changes: 0 additions & 2 deletions src/Reflex/Optimizer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ import CoreMonad
import Data.String
import GhcPlugins

#if MIN_VERSION_base(4,9,0)
import Prelude hiding ((<>))
#endif

#endif

Expand Down
3 changes: 0 additions & 3 deletions src/Reflex/Requester/Base/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import Reflex.Requester.Class
import Reflex.TriggerEvent.Class

import Control.Applicative (liftA2)

Check warning on line 34 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.10.1 on ubuntu-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 34 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.12.1 on ubuntu-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 34 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.6.1 on ubuntu-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 34 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.8.2 on ubuntu-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 34 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.10.1 on macos-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 34 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.6.1 on macos-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 34 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.8.2 on macos-latest

The import of ‘Control.Applicative’ is redundant
import Control.Monad
import Control.Monad.Catch (MonadMask, MonadThrow, MonadCatch)
import Control.Monad.Exception
Expand Down Expand Up @@ -209,7 +209,7 @@
EntryContents request (Multi2 k) = Multi2Contents k request
EntryContents request Multi3 = IntMap (IntMap (RequesterData request))

data Multi2Contents k request = Multi2Contents

Check warning on line 212 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.4.4 on ubuntu-latest

• Ignoring unusable UNPACK pragma

Check warning on line 212 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.4.4 on ubuntu-latest

• Ignoring unusable UNPACK pragma

Check warning on line 212 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.6.1 on ubuntu-latest

• Ignoring unusable UNPACK pragma

Check warning on line 212 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.10.7 on ubuntu-latest

• Ignoring unusable UNPACK pragma

Check warning on line 212 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.6.5 on ubuntu-latest

• Ignoring unusable UNPACK pragma

Check warning on line 212 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.8.4 on ubuntu-latest

• Ignoring unusable UNPACK pragma

Check warning on line 212 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.4.5 on ubuntu-latest

• Ignoring unusable UNPACK pragma

Check warning on line 212 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.0.2 on ubuntu-latest

• Ignoring unusable UNPACK pragma

Check warning on line 212 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.2.5 on ubuntu-latest

• Ignoring unusable UNPACK pragma

Check warning on line 212 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.10.7 on macos-latest

• Ignoring unusable UNPACK pragma

Check warning on line 212 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.4.4 on macos-latest

• Ignoring unusable UNPACK pragma

Check warning on line 212 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.4.4 on macos-latest

• Ignoring unusable UNPACK pragma

Check warning on line 212 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.6.5 on macos-latest

• Ignoring unusable UNPACK pragma

Check warning on line 212 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.8.4 on macos-latest

• Ignoring unusable UNPACK pragma

Check warning on line 212 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.0.2 on macos-latest

• Ignoring unusable UNPACK pragma

Check warning on line 212 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.2.5 on macos-latest

• Ignoring unusable UNPACK pragma

Check warning on line 212 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.4.5 on macos-latest

• Ignoring unusable UNPACK pragma

Check warning on line 212 in src/Reflex/Requester/Base/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.6.1 on macos-latest

• Ignoring unusable UNPACK pragma
{ _multi2Contents_dict :: {-# UNPACK #-} !(Dict (GCompare k)) -- This is a Dict instead of an existential context because we only want to use it in certain circumstances
, _multi2Contents_values :: {-# UNPACK #-} !(Map (Some k) (IntMap (RequesterData request)))
}
Expand Down Expand Up @@ -272,10 +272,7 @@
-- | A basic implementation of 'Requester'.
newtype RequesterT t request (response :: Type -> Type) m a = RequesterT { unRequesterT :: StateT (RequesterState t request) (ReaderT (EventSelectorInt t Any) m) a }
deriving (Functor, Applicative, Monad, MonadFix, MonadIO, MonadException
-- MonadAsyncException can't be derived on ghc-8.0.1; we use base-4.9.1 as a proxy for ghc-8.0.2
#if MIN_VERSION_base(4,9,1)
, MonadAsyncException
#endif
, MonadCatch
, MonadThrow
, MonadMask
Expand Down
4 changes: 0 additions & 4 deletions src/Reflex/Spider/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
-- a graph traversal algorithm to propagate 'Event's and 'Behavior's.
module Reflex.Spider.Internal (module Reflex.Spider.Internal) where

#if MIN_VERSION_base(4,10,0)
import Control.Applicative (liftA2)

Check warning on line 32 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.10.1 on ubuntu-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 32 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.12.1 on ubuntu-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 32 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.8.2 on ubuntu-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 32 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.10.1 on macos-latest

The import of ‘Control.Applicative’ is redundant

Check warning on line 32 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.8.2 on macos-latest

The import of ‘Control.Applicative’ is redundant
#endif
import Control.Concurrent
import Control.Exception
import Control.Monad hiding (forM, forM_, mapM, mapM_)
Expand Down Expand Up @@ -67,7 +65,7 @@
import Data.Maybe hiding (mapMaybe)
import Data.Proxy
import Data.These
import Data.Traversable

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.4.4 on ubuntu-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.10.7 on ubuntu-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.10.7 on ubuntu-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.6.5 on ubuntu-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.6.5 on ubuntu-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.8.4 on ubuntu-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.8.4 on ubuntu-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.4.5 on ubuntu-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.0.2 on ubuntu-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.0.2 on ubuntu-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.2.5 on ubuntu-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.10.7 on macos-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.10.7 on macos-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.4.4 on macos-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.6.5 on macos-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.6.5 on macos-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.8.4 on macos-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.8.4 on macos-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.0.2 on macos-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.0.2 on macos-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.2.5 on macos-latest

The import of ‘Data.Traversable’ is redundant

Check warning on line 68 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.4.5 on macos-latest

The import of ‘Data.Traversable’ is redundant
import Data.Type.Equality ((:~:)(Refl))
import GHC.Exts hiding (toList)
import GHC.IORef (IORef (..))
Expand Down Expand Up @@ -2108,7 +2106,7 @@
{-# INLINE mergeGCheap' #-}
mergeGCheap' :: forall k v x p s q. (HasSpiderTimeline x, GCompare k, PatchTarget p ~ DMap k q)
=> MergeGetSubscription x s -> MergeInitFunc k v q x s -> MergeUpdateFunc k v x p s -> MergeDestroyFunc k s -> DynamicS x p -> Event x (DMap k v)
mergeGCheap' getParent getInitialSubscribers updateFunc destroy d = Event $ \sub -> do

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.4.4 on ubuntu-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.10.1 on ubuntu-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.12.1 on ubuntu-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.8.2 on ubuntu-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.10.7 on ubuntu-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.10.7 on ubuntu-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.6.5 on ubuntu-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.6.5 on ubuntu-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.8.4 on ubuntu-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.8.4 on ubuntu-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.4.5 on ubuntu-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.0.2 on ubuntu-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.0.2 on ubuntu-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.2.5 on ubuntu-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.10.7 on macos-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.10.7 on macos-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.4.4 on macos-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.6.5 on macos-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.6.5 on macos-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.8.4 on macos-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 8.8.4 on macos-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.0.2 on macos-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.0.2 on macos-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.2.5 on macos-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.10.1 on macos-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.4.5 on macos-latest

Defined but not used: ‘getParent’

Check warning on line 2109 in src/Reflex/Spider/Internal.hs

View workflow job for this annotation

GitHub Actions / GHC 9.8.2 on macos-latest

Defined but not used: ‘getParent’
initialParents <- readBehaviorUntracked $ dynamicCurrent d
accumRef <- liftIO $ newIORef $ error "merge: accumRef not yet initialized"
heightRef <- liftIO $ newIORef $ error "merge: heightRef not yet initialized"
Expand Down Expand Up @@ -2577,9 +2575,7 @@

instance HasSpiderTimeline x => Applicative (Reflex.Class.Dynamic (SpiderTimeline x)) where
pure = SpiderDynamic . dynamicConst
#if MIN_VERSION_base(4,10,0)
liftA2 f a b = SpiderDynamic $ Reflex.Spider.Internal.zipDynWith f (unSpiderDynamic a) (unSpiderDynamic b)
#endif
SpiderDynamic a <*> SpiderDynamic b = SpiderDynamic $ Reflex.Spider.Internal.zipDynWith ($) a b
a *> b = R.unsafeBuildDynamic (R.sample $ R.current b) $ R.leftmost [R.updated b, R.tag (R.current b) $ R.updated a]
(<*) = flip (*>) -- There are no effects, so order doesn't matter
Expand Down
Loading