Skip to content

Commit 11cc7e3

Browse files
authored
Merge pull request #1602 from ucsd-progsys/T1601
T1601
2 parents 763230c + 0e0d716 commit 11cc7e3

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

liquid-fixpoint

src/Language/Haskell/Liquid/Constraint/ToFixpoint.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ fixConfig tgt cfg = def
4747
, FC.ginteractive = ginteractive cfg
4848
, FC.noslice = noslice cfg
4949
, FC.rewriteAxioms = Config.allowPLE cfg
50-
, FC.etaElim = not (exactDC cfg)
50+
, FC.etaElim = not (exactDC cfg) && extensionality cfg -- SEE: https://github.com/ucsd-progsys/liquidhaskell/issues/1601
5151
, FC.extensionality = extensionality cfg
5252
}
5353

tests/pos/T1560.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{-@ LIQUID "--ple" @-}
22
{-@ LIQUID "--reflection" @-}
3+
{-@ LIQUID "--extensionality" @-}
34

45
module T1560 where
56

@@ -24,4 +25,4 @@ fgeqx x = f x `k` g x `k` ()
2425

2526
{-@ fgeq :: {f = g} @-}
2627
fgeq :: ()
27-
fgeq = f `k` g `k` ()
28+
fgeq = f `k` g `k` ()

tests/pos/T1560B.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{-@ LIQUID "--ple" @-}
22
{-@ LIQUID "--reflection" @-}
3+
{-@ LIQUID "--extensionality" @-}
34

45
module T1560 where
56

0 commit comments

Comments
 (0)