Package: libghc6-xhtml-dev
Version: 3000.0.2.1-2
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

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libghc6-xhtml-dev depends on:
ii  ghc6                          6.8.2-3    GHC - the Glasgow Haskell Compilat

libghc6-xhtml-dev recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to