Replies: 1 comment 3 replies
-
Hi Théophile. There's no (lucid1) lucid/lucid1/src/Lucid/Base.hs Lines 520 to 527 in bfe1d2c If you want overloaded terms, you'll have to duplicate this class: (lucid2) lucid/lucid2/src/Lucid/Base.hs Lines 201 to 205 in bfe1d2c Alternatively, rather than being smart about XML and HTML are different enough that I stripped out the affordances for XML in lucid2. I think you can still make a lucid2-svg and use the rest of lucid as-is, by doing the above steps. Although arguably with all the combinators having their own monad type and different rendering mode, it could just be a separate library with possibly just an adapter to be embedded in lucid2. Up to you! |
Beta Was this translation helpful? Give feedback.
-
Hi @chrisdone! I am trying to port lucid-svg to lucid2 (https://github.com/flora-pm/lucid2-svg). In its codebase there are plenty of
with
, like https://github.com/flora-pm/lucid2-svg/blob/master/src/Lucid/Svg/Elements.hs#L39.What would be your advice to migrate to lucid2?
Beta Was this translation helpful? Give feedback.
All reactions