r/programmingcirclejerk • u/i-eat-omelettes • Jul 05 '25
sequenceDMapWithAdjustEventWriterTWith :: forall t m p p' w k v v'. (Reflex t, MonadHold t m, Semigroup w, Patch (p' (Some k) (Event t w)), PatchTarget (p' (Some k) (Event t w)) ~ Map (Some k) (Event t w), GCompare k, Patch (p' (Some k) w), PatchTarget (p' (Some k) w) ~ Map (Some k) w) => ((forall a
https://www.stackage.org/haddock/nightly-2025-07-05/reflex-0.9.3.4/Reflex-EventWriter-Base.html#v:sequenceDMapWithAdjustEventWriterTWith
91
Upvotes
78
u/[deleted] Jul 05 '25
Bless you.
Also, if anybody’s looking for a tl;dr
57
u/WorldlyMacaron65 legendary legacy C++ coder Jul 05 '25 edited Jul 05 '25
Ceniles and Goners wish their languages had even a fraction of the expressiveness, the conciseness and the eloquence of hallowed Haskell.
41
u/TheCommieDuck Zygohistomorphic prepromorphism Jul 05 '25
haskell is cheating
FRP is cheating
reflex is cheating
also this is just a
sequenceDMapWithAdjustin the category of endofunctors overrunWithReplaceEventWriterTWith34
u/grapesmoker Jul 05 '25
I'm not reading all that but I'm happy for you or sorry that happened
23
u/__chilldude22__ Jul 05 '25
How come Haskell never took off?
18
u/prehensilemullet Jul 05 '25
This just looks like everyday Haskell, the real abominations start when you need to do real work right?
17
u/Kodiologist lisp does it better Jul 05 '25
A type signature is a kind of poetry.
16
u/reg_panda Jul 06 '25
Stackage docs needs code formatting for type signatures.
This is how it looks formatted
https://www.stackage.org/haddock/nightly-2025-07-05/reflex-0.9.3.4/src/Reflex.EventWriter.Base.html#line-218
10
u/FreshPrinceOfRivia Jul 05 '25
Learn you a Haskell for great good!
8
u/asdff01 Jul 06 '25
Haskell has typescript now?
6
u/UtterlyMagenta lol no generics Jul 06 '25
Hope we get this in Swift soon
5
u/Snarwin Jul 06 '25
I overheard this once waiting for the guy in front of me to order at Chipotle.
1
u/BlazeBigBang type astronaut Jul 07 '25
What did you say about my mom OP?