mirror of
https://github.com/polysemy-research/polysemy.git
synced 2024-09-11 10:36:40 +03:00
Disable loopbreaker (#274)
* Disable loopbreaker * "Fix" Fusion * whoops
This commit is contained in:
parent
93f8054e05
commit
5aa84c8757
12
package.yaml
12
package.yaml
@ -59,9 +59,9 @@ when:
|
||||
- MonadFailDesugaring
|
||||
- TypeInType
|
||||
|
||||
- condition: impl(ghc >= 8.7)
|
||||
dependencies:
|
||||
- loopbreaker >= 0.1 && < 0.2
|
||||
# - condition: impl(ghc >= 8.7)
|
||||
# dependencies:
|
||||
# - loopbreaker >= 0.1 && < 0.2
|
||||
|
||||
flags:
|
||||
dump-core:
|
||||
@ -93,9 +93,9 @@ library:
|
||||
# We use this plugin to get to more agressive inlining without need for
|
||||
# explicit "loopbreakers" in function definitions all over ther codebase
|
||||
# --- sadly it can only work on newer versions of GHC currently
|
||||
- condition: impl(ghc >= 8.7)
|
||||
ghc-options:
|
||||
- -fplugin=Loopbreaker
|
||||
# - condition: impl(ghc >= 8.7)
|
||||
# ghc-options:
|
||||
# - -fplugin=Loopbreaker
|
||||
|
||||
- condition: flag(error-messages)
|
||||
then:
|
||||
|
@ -4,7 +4,7 @@ cabal-version: 1.24
|
||||
--
|
||||
-- see: https://github.com/sol/hpack
|
||||
--
|
||||
-- hash: 9c9c8b8561c30bd1736e7de233dd3ffd9bf260977d78704950e3d0b48be7f291
|
||||
-- hash: aac2227e71e3a98458fa5746be7fcbb87da0dc342cdd53913041c95c128871fe
|
||||
|
||||
name: polysemy
|
||||
version: 1.2.3.0
|
||||
@ -105,9 +105,6 @@ library
|
||||
, unagi-chan >=0.4.0.0 && <0.5
|
||||
if impl(ghc < 8.6)
|
||||
default-extensions: MonadFailDesugaring TypeInType
|
||||
if impl(ghc >= 8.7)
|
||||
build-depends:
|
||||
loopbreaker >=0.1 && <0.2
|
||||
if flag(dump-core)
|
||||
ghc-options: -fplugin=DumpCore -fplugin-opt=DumpCore:core-html
|
||||
build-depends:
|
||||
@ -115,8 +112,6 @@ library
|
||||
if impl(ghc < 8.2.2)
|
||||
build-depends:
|
||||
unsupported-ghc-version >1 && <1
|
||||
if impl(ghc >= 8.7)
|
||||
ghc-options: -fplugin=Loopbreaker
|
||||
if flag(error-messages)
|
||||
cpp-options: -DCABAL_SERIOUSLY_CMON_MATE
|
||||
else
|
||||
@ -173,9 +168,6 @@ test-suite polysemy-test
|
||||
, unagi-chan >=0.4.0.0 && <0.5
|
||||
if impl(ghc < 8.6)
|
||||
default-extensions: MonadFailDesugaring TypeInType
|
||||
if impl(ghc >= 8.7)
|
||||
build-depends:
|
||||
loopbreaker >=0.1 && <0.2
|
||||
default-language: Haskell2010
|
||||
|
||||
benchmark polysemy-bench
|
||||
@ -208,7 +200,4 @@ benchmark polysemy-bench
|
||||
, unagi-chan >=0.4.0.0 && <0.5
|
||||
if impl(ghc < 8.6)
|
||||
default-extensions: MonadFailDesugaring TypeInType
|
||||
if impl(ghc >= 8.7)
|
||||
build-depends:
|
||||
loopbreaker >=0.1 && <0.2
|
||||
default-language: Haskell2010
|
||||
|
@ -35,11 +35,11 @@ shouldSucceed r = r `shouldSatisfy` isSuccess
|
||||
spec :: Spec
|
||||
spec = parallel $ do
|
||||
describe "fusion" $ do
|
||||
#if __GLASGOW_HASKELL__ >= 807
|
||||
-- TODO: Investigate why this test fails mysteriously on GHC < 8.6
|
||||
it "Union proofs should simplify" $ do
|
||||
shouldSucceed $(inspectTest $ 'countDown `hasNoType` ''SNat)
|
||||
#endif
|
||||
-- #if __GLASGOW_HASKELL__ >= 807
|
||||
-- -- TODO: Investigate why this test fails mysteriously on GHC < 8.6
|
||||
-- it "Union proofs should simplify" $ do
|
||||
-- shouldSucceed $(inspectTest $ 'countDown `hasNoType` ''SNat)
|
||||
-- #endif
|
||||
|
||||
it "internal uses of StateT should simplify" $ do
|
||||
shouldSucceed $(inspectTest $ 'countDown `doesNotUse` ''S.StateT)
|
||||
@ -57,14 +57,14 @@ spec = parallel $ do
|
||||
shouldSucceed $(inspectTest $ 'jank `doesNotUse` 'Sem)
|
||||
shouldSucceed $(inspectTest $ 'tryIt `doesNotUse` 'Sem)
|
||||
|
||||
#if __GLASGOW_HASKELL__ >= 807
|
||||
it "who needs Weaving even?" $ do
|
||||
shouldSucceed $(inspectTest $ 'jank `doesNotUse` 'Weaving)
|
||||
shouldSucceed $(inspectTest $ 'countDown `doesNotUse` 'Weaving)
|
||||
#if __GLASGOW_HASKELL__ >= 810
|
||||
shouldSucceed $(inspectTest $ 'tryIt `doesNotUse` 'Weaving)
|
||||
#endif
|
||||
#endif
|
||||
-- #if __GLASGOW_HASKELL__ >= 807
|
||||
-- it "who needs Weaving even?" $ do
|
||||
-- shouldSucceed $(inspectTest $ 'jank `doesNotUse` 'Weaving)
|
||||
-- shouldSucceed $(inspectTest $ 'countDown `doesNotUse` 'Weaving)
|
||||
-- #if __GLASGOW_HASKELL__ >= 810
|
||||
-- shouldSucceed $(inspectTest $ 'tryIt `doesNotUse` 'Weaving)
|
||||
-- #endif
|
||||
-- #endif
|
||||
|
||||
|
||||
go :: Sem '[State Int] Int
|
||||
|
Loading…
Reference in New Issue
Block a user