Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix reflex-dom-core build with use-template-haskell flag disabled #449

Merged
merged 2 commits into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion reflex-dom-core/src/Reflex/Dom/Builder/Class/Events.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ module Reflex.Dom.Builder.Class.Events where
#ifdef USE_TEMPLATE_HASKELL
import Data.GADT.Compare.TH
#else
import Data.Type.Equality ((:~:)(..))
import Data.GADT.Compare
(GOrdering(..), (:~:)(..), GEq(..), GCompare(..))
(GOrdering(..), GEq(..), GCompare(..))
#endif
import Data.Text (Text)

Expand Down
4 changes: 3 additions & 1 deletion release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

let
native-reflex-platform = reflex-platform-fun {};
inherit (native-reflex-platform.nixpkgs) lib;
inherit (native-reflex-platform.nixpkgs) lib haskell;

tests = system: import ./test { pkgs = (reflex-platform-fun { inherit system; }).nixpkgs; };

Expand Down Expand Up @@ -56,11 +56,13 @@ let
./test
])) ./.;
};
reflex-dom-core_disable-use-template-haskell = haskell.lib.disableCabalFlag super.reflex-dom-core "use-template-haskell";
})
];
};
all = tests system // {
inherit (reflex-platform.${ghc})
reflex-dom-core_disable-use-template-haskell
reflex-dom-core
reflex-dom
;
Expand Down