Re: [Haskell-cafe] Adding Html formatting to formlets

2012-02-03 Thread Alberto G. Corona
Hi Jeremy If the signature of a formlet or digestive functor is View *format m a * with `*m*` a monad, `*a*` the resulting value and `*format*` the formatting (Usually HTML) then the signatures of the operators for Text.XHtml format are: *() :: Monad m = (Html - Html) - View Html m a -

[Haskell-cafe] Adding Html formatting to formlets

2012-02-02 Thread Alberto G. Corona
I came across the idea that is easy to define additional operators to Text.FormLets for adding custom HTML formatting. Had anyone tried that? For example to enclose the Prod formulary in a Table using Text.XHtml tags. I defined additional operators and ++ for enclosing and prepending Html to a

Re: [Haskell-cafe] Adding Html formatting to formlets

2012-02-02 Thread Jeremy Shaw
Hello, Formlets is deprecated in favor of digestive functors. If you have not looked at the digestive-functors package I highly recommend that you do. It fixes a lot of little issues that formlets had -- but is basically the same thing. The () operator is a already a standard operator in