-
Notifications
You must be signed in to change notification settings - Fork 145
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
Build with ghc 9.6 #469
Build with ghc 9.6 #469
Changes from all commits
b440982
e050ff4
71e089b
ba00d42
dbcf9d0
843ddd2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ import Reflex.Requester.Base | |
|
||
import qualified Control.Category | ||
import Control.Lens hiding (element) | ||
import Control.Monad.Fix | ||
import Control.Monad.Reader | ||
import qualified Control.Monad.State as Lazy | ||
import Control.Monad.State.Strict | ||
|
@@ -278,6 +279,15 @@ elementConfig_eventSpec f (ElementConfig a b c d) = (\d' -> ElementConfig a b c | |
{-# INLINE elementConfig_eventSpec #-} | ||
#endif | ||
|
||
instance (Reflex t, er ~ EventResult, DomSpace s) => Default (ElementConfig er t s) where | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://downloads.haskell.org/~ghc/9.0.1/docs/html/users_guide/9.0.1-notes.html
|
||
{-# INLINABLE def #-} | ||
def = ElementConfig | ||
{ _elementConfig_namespace = Nothing | ||
, _elementConfig_initialAttributes = mempty | ||
, _elementConfig_modifyAttributes = Nothing | ||
, _elementConfig_eventSpec = def | ||
} | ||
|
||
data Element er d t | ||
= Element { _element_events :: EventSelector t (WrapArg er EventName) --TODO: EventSelector should have two arguments | ||
, _element_raw :: RawElement d | ||
|
@@ -542,15 +552,6 @@ instance HasNamespace (ElementConfig er t m) where | |
{-# INLINABLE namespace #-} | ||
namespace = elementConfig_namespace | ||
|
||
instance (Reflex t, er ~ EventResult, DomSpace s) => Default (ElementConfig er t s) where | ||
{-# INLINABLE def #-} | ||
def = ElementConfig | ||
{ _elementConfig_namespace = Nothing | ||
, _elementConfig_initialAttributes = mempty | ||
, _elementConfig_modifyAttributes = Nothing | ||
, _elementConfig_eventSpec = def | ||
} | ||
|
||
instance (DomBuilder t m, PerformEvent t m, MonadFix m, MonadHold t m) => DomBuilder t (PostBuildT t m) where | ||
type DomBuilderSpace (PostBuildT t m) = DomBuilderSpace m | ||
wrapRawElement e = lift . wrapRawElement e | ||
|
@@ -750,7 +751,7 @@ instance HasDocument m => HasDocument (QueryT t q m) | |
class HasSetValue a where | ||
type SetValue a :: * | ||
setValue :: Lens' a (SetValue a) | ||
|
||
instance Reflex t => HasSetValue (TextAreaElementConfig er t m) where | ||
type SetValue (TextAreaElementConfig er t m) = Event t Text | ||
setValue = textAreaElementConfig_setValue |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,7 @@ import Reflex.Profiled | |
|
||
{-# INLINE mainHydrationWidgetWithHead #-} | ||
mainHydrationWidgetWithHead :: (forall x. HydrationWidget x ()) -> (forall x. HydrationWidget x ()) -> JSM () | ||
mainHydrationWidgetWithHead = mainHydrationWidgetWithHead' | ||
mainHydrationWidgetWithHead head' body = mainHydrationWidgetWithHead' head' body | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://downloads.haskell.org/~ghc/9.0.1/docs/html/users_guide/9.0.1-notes.html
|
||
|
||
{-# INLINABLE mainHydrationWidgetWithHead' #-} | ||
-- | Warning: `mainHydrationWidgetWithHead'` is provided only as performance tweak. It is expected to disappear in future releases. | ||
|
@@ -67,7 +67,7 @@ mainHydrationWidgetWithHead' = mainHydrationWidgetWithSwitchoverAction' (pure () | |
|
||
{-# INLINE mainHydrationWidgetWithSwitchoverAction #-} | ||
mainHydrationWidgetWithSwitchoverAction :: JSM () -> (forall x. HydrationWidget x ()) -> (forall x. HydrationWidget x ()) -> JSM () | ||
mainHydrationWidgetWithSwitchoverAction = mainHydrationWidgetWithSwitchoverAction' | ||
mainHydrationWidgetWithSwitchoverAction switchoverAction head' body = mainHydrationWidgetWithSwitchoverAction' switchoverAction head' body | ||
|
||
{-# INLINABLE mainHydrationWidgetWithSwitchoverAction' #-} | ||
-- | Warning: `mainHydrationWidgetWithSwitchoverAction'` is provided only as performance tweak. It is expected to disappear in future releases. | ||
|
@@ -187,7 +187,7 @@ runHydrationWidgetWithHeadAndBodyWithFailure onFailure switchoverAction app = wi | |
|
||
{-# INLINE mainWidget #-} | ||
mainWidget :: (forall x. Widget x ()) -> JSM () | ||
mainWidget = mainWidget' | ||
mainWidget w = mainWidget' w | ||
|
||
{-# INLINABLE mainWidget' #-} | ||
-- | Warning: `mainWidget'` is provided only as performance tweak. It is expected to disappear in future releases. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hydration
test suite was failing on 9.4+redneb/hs-linux-namespaces#3