File tree Expand file tree Collapse file tree 5 files changed +32
-63
lines changed Expand file tree Collapse file tree 5 files changed +32
-63
lines changed Original file line number Diff line number Diff line change 5
5
* Data.WeakBag.traverse and Data.FastWeakBag.traverse have been
6
6
renamed to Data.WeakBag.traverse_ and Data.FastWeakBag.traverse_
7
7
respectively.
8
+ * Fixes a bug in ` Reflex.Patch.MapWithMove.patchThatSortsMapWith ` that was producing invalid ` PatchMapWithMove ` .
8
9
9
10
## 0.6.2.4
10
11
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
{
2
2
"owner" : " reflex-frp" ,
3
3
"repo" : " reflex-platform" ,
4
- "branch" : " jailbreakTheselens " ,
5
- "rev" : " 4284ed527c96c373538dc7e31776d9a50ca6aa91 " ,
6
- "sha256" : " 1m1nkxq7ng9wnqbd77xn8d81f2iz8g61y5m0r3gp0gi0q59jm8ay "
4
+ "branch" : " develop " ,
5
+ "rev" : " e7b76dd552a10916c7d8702c11292dac4f4299ea " ,
6
+ "sha256" : " 0s1183arrwldcs50qhzgnv94v24n9bgq6dfq64wp0a3q2nzyvgwh "
7
7
}
Original file line number Diff line number Diff line change 17
17
] ++ lib . optionals ( reflex-platform . iosSupport ) [
18
18
"ghcIosAarch64"
19
19
] ;
20
- hsPkgs = lib . genAttrs compilers ( ghc : let
21
- ghc' = reflex-platform . ${ ghc } . override {
22
- overrides = self : super : {
23
- reflex-dontUseTemplateHaskell = self . callPackage ./. { useTemplateHaskell = false ; } ;
24
- reflex = self . callPackage ./. { useTemplateHaskell = true ; } ;
20
+ variations = map ( v : "reflex" + v ) [
21
+ "-dontUseTemplateHaskell"
22
+ ""
23
+ ] ;
24
+ compilerPkgs = lib . genAttrs compilers ( ghc : let
25
+ variationPkgs = lib . genAttrs variations ( variation : let
26
+ reflex-platform = reflex-platform-fun {
27
+ inherit system ;
28
+ __useTemplateHaskell = variation == "reflex" ; # TODO hack
29
+ haskellOverlays = [
30
+ # Use this package's source for reflex
31
+ ( self : super : {
32
+ _dep = super . _dep // {
33
+ reflex = builtins . filterSource ( path : type : ! ( builtins . elem ( baseNameOf path ) [
34
+ "release.nix"
35
+ ".git"
36
+ "dist"
37
+ ] ) ) ./. ;
38
+ } ;
39
+ } )
40
+ ] ;
25
41
} ;
26
- } ;
27
- in {
28
- inherit ( ghc' ) reflex reflex-dontUseTemplateHaskell ;
42
+ in reflex-platform . ${ ghc } . reflex ) ;
43
+ in variationPkgs // {
44
+ cache = reflex-platform . pinBuildInputs "reflex-${ system } -${ ghc } "
45
+ ( builtins . attrValues variationPkgs ) ;
29
46
} ) ;
30
- in hsPkgs // {
47
+ in compilerPkgs // {
31
48
cache = reflex-platform . pinBuildInputs "reflex-${ system } "
32
- ( lib . concatLists ( map builtins . attrValues ( builtins . attrValues hsPkgs ) ) ) ;
49
+ ( map ( a : a . cache ) ( builtins . attrValues compilerPkgs ) ) ;
33
50
} ) ;
34
51
35
52
metaCache = native-reflex-platform . pinBuildInputs "reflex-everywhere"
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ patchThatSortsMapWith cmp m = PatchMapWithMove $ Map.fromList $ catMaybes $ zipW
155
155
Just (from, to)
156
156
reverseMapping = Map. fromList $ catMaybes $ zipWith f unsorted sorted
157
157
g (to, _) (from, _) = if to == from then Nothing else
158
- let Just movingTo = Map. lookup from reverseMapping
158
+ let Just movingTo = Map. lookup to reverseMapping
159
159
in Just (to, NodeInfo (From_Move from) $ Just movingTo)
160
160
161
161
-- | Create a 'PatchMapWithMove' that, if applied to the first 'Map' provided,
You can’t perform that action at this time.
0 commit comments