Skip to content

Commit 837b83f

Browse files
authored
Merge branch 'develop' into duplicate-package
2 parents 9ecb140 + d35db8c commit 837b83f

File tree

5 files changed

+32
-64
lines changed

5 files changed

+32
-64
lines changed

default.nix

Lines changed: 0 additions & 49 deletions
This file was deleted.

dep/reflex-platform/github.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"owner": "reflex-frp",
33
"repo": "reflex-platform",
4-
"branch": "jailbreakTheselens",
5-
"rev": "4284ed527c96c373538dc7e31776d9a50ca6aa91",
6-
"sha256": "1m1nkxq7ng9wnqbd77xn8d81f2iz8g61y5m0r3gp0gi0q59jm8ay"
4+
"branch": "develop",
5+
"rev": "e7b76dd552a10916c7d8702c11292dac4f4299ea",
6+
"sha256": "0s1183arrwldcs50qhzgnv94v24n9bgq6dfq64wp0a3q2nzyvgwh"
77
}

release.nix

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,36 @@ let
1717
] ++ lib.optionals (reflex-platform.iosSupport) [
1818
"ghcIosAarch64"
1919
];
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+
];
2541
};
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);
2946
});
30-
in hsPkgs // {
47+
in compilerPkgs // {
3148
cache = reflex-platform.pinBuildInputs "reflex-${system}"
32-
(lib.concatLists (map builtins.attrValues (builtins.attrValues hsPkgs)));
49+
(map (a: a.cache) (builtins.attrValues compilerPkgs));
3350
});
3451

3552
metaCache = native-reflex-platform.pinBuildInputs "reflex-everywhere"

src/Reflex/Network.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import Reflex.NotReady.Class
2020
import Reflex.PostBuild.Class
2121

2222
-- | A 'Dynamic' "network": Takes a 'Dynamic' of network-creating actions and replaces the network whenever the 'Dynamic' updates.
23-
-- The returned Event of network results fires when the 'Dynamic' updates.
23+
-- The returned Event of network results fires at post-build time and when the 'Dynamic' updates.
2424
-- Note: Often, the type 'a' is an Event, in which case the return value is an Event-of-Events, where the outer 'Event' fires
2525
-- when switching networks. Such an 'Event' would typically be flattened (via 'switchPromptly').
2626
networkView :: (NotReady t m, Adjustable t m, PostBuild t m) => Dynamic t (m a) -> m (Event t a)

src/Reflex/Workflow.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ workflow w0 = do
3434
rec eResult <- networkHold (unWorkflow w0) $ fmap unWorkflow $ switch $ snd <$> current eResult
3535
return $ fmap fst eResult
3636

37-
-- | Similar to 'workflow', but outputs an 'Event' that fires whenever the current 'Workflow' is replaced by the next 'Workflow'.
37+
-- | Similar to 'workflow', but outputs an 'Event' that fires at post-build time and whenever the current 'Workflow' is replaced by the next 'Workflow'.
3838
workflowView :: forall t m a. (Reflex t, NotReady t m, Adjustable t m, MonadFix m, MonadHold t m, PostBuild t m) => Workflow t m a -> m (Event t a)
3939
workflowView w0 = do
4040
rec eResult <- networkView . fmap unWorkflow =<< holdDyn w0 eReplace

0 commit comments

Comments
 (0)