-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For some eta-reduced 'e', we used to bogusly eta-expand to: \x.(\y. e y) x We now correctly expand to: \x.\y.(e x) y Fixes #2781
- Loading branch information
1 parent
b14ff0e
commit b535171
Showing
4 changed files
with
52 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FIXED: Bug in the compile-time evaluator [#2781](https://github.com/clash-lang/clash-compiler/issues/2781) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
module T2781 | ||
( fullMeshSwCcTest | ||
) where | ||
|
||
import Clash.Explicit.Prelude | ||
import Clash.Cores.Xilinx.Ila (IlaConfig(..), Depth(..), ila, ilaConfig) | ||
|
||
fullMeshHwTestDummy :: | ||
Clock System -> | ||
( Signal System Bool | ||
, Vec 1 (Signal System Bool) | ||
) | ||
fullMeshHwTestDummy sysClk = | ||
fincFdecIla `hwSeqX` | ||
( pure False | ||
, repeat (pure True) | ||
) | ||
where | ||
fincFdecIla :: Signal System () | ||
fincFdecIla = ila | ||
(ilaConfig ("trigger_0" :> Nil)) | ||
sysClk | ||
(pure True :: Signal System Bool) | ||
|
||
-- | Top entity for this test. See module documentation for more information. | ||
fullMeshSwCcTest :: | ||
Clock System -> | ||
(Signal System Bool | ||
) | ||
fullMeshSwCcTest sysClk = spiDone | ||
where | ||
(spiDone | ||
, ugnsStable | ||
) = fullMeshHwTestDummy sysClk | ||
{-# ANN fullMeshSwCcTest (defSyn "fullMeshSwCcTest") #-} |