diff options
author | Fumiaki Kinoshita <fumiexcel@gmail.com> | 2020-07-15 21:12:07 +0900 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-10-14 18:06:12 -0400 |
commit | e60ae8a38394370fd8818ad004a101466fc7d2dc (patch) | |
tree | 6eff280150db65ae373aba5d50f550180b99983b /testsuite/tests/perf | |
parent | bf2411a3c198cb2df93a9e0aa0c3b8297f47058d (diff) | |
download | haskell-e60ae8a38394370fd8818ad004a101466fc7d2dc.tar.gz |
Add -Wnoncanonical-{monad,monoid}-instances to standardWarnings
-------------------------
Metric Decrease:
T12425
Metric Increase:
T17516
-------------------------
Diffstat (limited to 'testsuite/tests/perf')
-rw-r--r-- | testsuite/tests/perf/compiler/T12425.hs | 1 | ||||
-rw-r--r-- | testsuite/tests/perf/compiler/T3064.hs | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/testsuite/tests/perf/compiler/T12425.hs b/testsuite/tests/perf/compiler/T12425.hs index 6f23440fda..8ce441974e 100644 --- a/testsuite/tests/perf/compiler/T12425.hs +++ b/testsuite/tests/perf/compiler/T12425.hs @@ -25,7 +25,6 @@ instance Monad m => Applicative (CondT a m) where (<*>) = undefined instance Monad m => Monad (CondT a m) where - return = undefined (>>=) = undefined -- liftM :: (Monad m) => (a1 -> r) -> m a1 -> m r diff --git a/testsuite/tests/perf/compiler/T3064.hs b/testsuite/tests/perf/compiler/T3064.hs index e29dd95564..298a09cecf 100644 --- a/testsuite/tests/perf/compiler/T3064.hs +++ b/testsuite/tests/perf/compiler/T3064.hs @@ -15,7 +15,6 @@ instance Applicative f => Applicative (ReaderT r f) where f <*> v = ReaderT $ \r -> runReaderT f r <*> runReaderT v r instance (Monad m) => Monad (ReaderT r m) where - return a = ReaderT $ \_ -> return a m >>= k = ReaderT $ \r -> do a <- runReaderT m r runReaderT (k a) r |