Conversation
|
Is this useful without the layout inspection bits? Do you have an example? |
|
Yes -- I actually don't see how this would be related to layout inspection at all. This is needed for use with my conditional layout modifier module. Atm, Magnify only provides functions that return functions Modified Payouts, not the layout modifiers themselves. My conditionallayout modifier needs to interact directly with the layout modifier obejcts so it cannot use these functions. |
|
Oh, mea culpa, now I see. For some reason I though this is because you wanted to make a condition that looks into Magnifier and completely overlooked the “little” issue that ConditionalLayoutModifier doesn't work with a What about trying to deal with that issue directly instead of exposing internals of every LayoutModifier someone wants to use with the ConditionalLayoutModifier? Should be easy to create a function conditional ∷ … ⇒ c → ModifiedLayout m l a → ModifiedLayout (ConditionalLayoutModifier m c) l aso then you just do conditional ∷ … ⇒ c → (l a → ModifiedLayout m l a) → (l a → ModifiedLayout (ConditionalLayoutModifier m c) l a)and then the usage is (Also, a random thought for #582 before I get to replying in detail to your other questions: if you implement it as an |
Description
It is important for these types to be exposed to access the underlying LayoutModifier. It is not possible to interact with it without these.
In particular I needed these changes for compatibility with this PR #582
Checklist
I've read CONTRIBUTING.md
I've considered how to best test these changes (property, unit,
manually, ...) and concluded: XXX
I updated the
CHANGES.mdfileI updated the
XMonad.Doc.Extendingfile (if appropriate)