From 3fb2208eddb9836d11655e44ad35adf158d2aa23 Mon Sep 17 00:00:00 2001 From: davve Date: Sat, 12 Aug 2006 17:15:34 +0000 Subject: Perfect rendering of Test.hs --- src/Html.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Html.hs') diff --git a/src/Html.hs b/src/Html.hs index ae14c9ae..530df829 100644 --- a/src/Html.hs +++ b/src/Html.hs @@ -81,10 +81,10 @@ class ADDATTRS a where (!) :: a -> [HtmlAttr] -> a instance (ADDATTRS b) => ADDATTRS (a -> b) where - fn ! attr = \ arg -> fn arg ! attr + (!) fn attr = \ arg -> fn arg ! attr instance ADDATTRS Html where - (Html htmls) ! attr = Html (map addAttrs htmls) + (!) (Html htmls) attr = Html (map addAttrs htmls) where addAttrs html = case html of -- cgit v1.2.3