File tree Expand file tree Collapse file tree 5 files changed +30
-4
lines changed Expand file tree Collapse file tree 5 files changed +30
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ write-ghc-environment-files: always
16
16
-- index state, to go along with the cabal.project.freeze file. update the index
17
17
-- state by running `cabal update` twice and looking at the index state it
18
18
-- displays to you (as the second update will be a no-op)
19
- index-state : 2023-09-12T05:36 :44Z
19
+ index-state : 2023-10-18T12:11 :41Z
20
20
21
21
-- For some reason the `clash-testsuite` executable fails to run without
22
22
-- this, as it cannot find the related library...
Original file line number Diff line number Diff line change @@ -385,12 +385,15 @@ test-suite doctests
385
385
build-depends :
386
386
base,
387
387
clash-prelude,
388
- doctest-parallel >= 0.2 && < 0.4 ,
388
+ doctest-parallel >= 0.3.1 && < 0.4 ,
389
389
filepath
390
390
391
391
if flag(workaround-ghc-mmap-crash)
392
392
ghc-options : -with-rtsopts=-xm20000000
393
393
394
+ if flag(multiple-hidden)
395
+ CPP-Options : -DCLASH_MULTIPLE_HIDDEN
396
+
394
397
395
398
test-suite unittests
396
399
import : common-options
Original file line number Diff line number Diff line change @@ -846,6 +846,13 @@ readNew (blockRam (0 :> 1 :> Nil))
846
846
... =>
847
847
Signal dom addr -> Signal dom (Maybe (addr, a)) -> Signal dom a
848
848
849
+ #elif __GLASGOW_HASKELL__ >= 902 && !defined(CLASH_MULTIPLE_HIDDEN)
850
+ >>> :t readNew (blockRam (0 :> 1 :> Nil))
851
+ readNew (blockRam (0 :> 1 :> Nil))
852
+ :: ...
853
+ ... =>
854
+ Signal dom addr -> Signal dom (Maybe (addr, a)) -> Signal dom a
855
+
849
856
#else
850
857
>>> :t readNew (blockRam (0 :> 1 :> Nil))
851
858
readNew (blockRam (0 :> 1 :> Nil))
Original file line number Diff line number Diff line change
1
+ {-# LANGUAGE CPP #-}
1
2
module Main where
2
3
3
- import System.Environment (getArgs )
4
4
import Test.DocTest (mainFromCabal )
5
+ import System.Environment (getArgs )
5
6
6
7
main :: IO ()
7
- main = mainFromCabal " clash-prelude" =<< getArgs
8
+ main = mainFromCabal " clash-prelude" =<< fmap (extraArgs ++ ) getArgs
9
+
10
+ extraArgs :: [String ]
11
+ extraArgs = map (" --ghc-arg=" ++ )
12
+ [
13
+ #if __GLASGOW_HASKELL__ >= 904
14
+ " -DCLASH_OPAQUE=OPAQUE"
15
+ #else
16
+ " -DCLASH_OPAQUE=NOINLINE"
17
+ #endif
18
+ #ifdef CLASH_MULTIPLE_HIDDEN
19
+ , " -DCLASH_MULTIPLE_HIDDEN"
20
+ #endif
21
+ ]
Original file line number Diff line number Diff line change 48
48
"ghc-typelits-natnormalise"
49
49
"${ ghc-typelits-natnormalise } "
50
50
{ } ;
51
+ # doctest-parallel = hprev.callHackage "doctest-parallel" "0.3.1" { };
52
+ doctest-parallel = hprev . callHackageDirect { pkg = "doctest-parallel" ; ver = "0.3.1" ; sha256 = "sha256-j0mk4RTEau6Cl90E8vMWZiA/ldRRurtLSYbGGE+q/vk=" ; } { } ;
51
53
} ;
52
54
53
55
# An overlay with the packages in this repository.
You can’t perform that action at this time.
0 commit comments