- Package:
- libghc-html-dev
- Source:
- haskell-html
- Description:
- Haskell html library for GHC
- Submitter:
- Josh Triplett
- Date:
- 2015-12-20 23:36:03 UTC
- Severity:
- wishlist
When using this library, I often found it inconvenient to convert the argument of hotlink to an Html myself by calling toHtml. I think hotlink should instead accept any HTML a, and convert it by calling toHtml. This should prove source-compatible with any existing callers, since an Html qualifies as an HTML. This would change the type of hotlink from hotlink :: URL -> Html -> HotLink to hotlink :: HTML h => URL -> h -> HotLink Notably, this makes it easier to curry hotlink, or to use it with zipWith (if you have two lists) or uncurry (if you have a list of tuples). For the simple case of a single HTML type, it allows passing that type directly with no parentheses or $, rather than having to use parentheses or $ around the call to toHtml in the argument. - Josh Triplett
Hi Bjorn, do you still maintain the xhtml library? There is a request by a Debian user about the type of hotlink (which I agree with). Could you consider this enhancement with the next xhtml release? Thanks, Joachim
I don't maintain the xhtml library anymore. Check with libraries@haskell.org .
Hi Josh, it seems that mainenance of the xhtml library now lies with haskell-libraries mailing list. Are you interested in taking your proposal to the list yourself? Greeting, Joachim Am Sonntag, den 19.06.2011, 17:11 +0100 schrieb Bjorn Bringert:
I no longer use the xhtml library. (Of the projects I work on, one switched to a custom templating engine, and the other uses Blaze.) So I probably won't chase this issue down upstream in the near future. - Josh Triplett
Dear submitter, as the package haskell-xhtml has just been removed from the Debian archive unstable we hereby close the associated bug reports. We are sorry that we couldn't deal with your issue properly. For details on the removal, please see https://bugs.debian.org/789018 The version of this package that was in Debian prior to this removal can still be found using http://snapshot.debian.org/. This message was generated automatically; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org. Debian distribution maintenance software pp. Luca Falavigna (the ftpmaster behind the curtain)