Hello, I don't know why my simple example will not render a simple HTML
document.
For the moment, I simply want to render this:
html
/html
or whatever, the simplest document is.
When I run my source code, it simply hangs (as the transcript below shows)
{- SOURCE CODE -}
import
On 12/30/06, Jeremy Shaw [EMAIL PROTECTED] wrote:
So may something like this would work:
main = print $ htmlprint $ go (CString False )
mk.hs:6:33:
Couldn't match expected type `Content i'
against inferred type `i1 - Content i1'
In the first argument of `go',
Actually, the examples directory in the distro for the development release
has a nice program to create an element and print it to stdout called
SimpleTestBool.hs:
module Main where
import List (isPrefixOf)
import Text.XML.HaXml.XmlContent
import Text.XML.HaXml.Types
import
Hi, I am getting into Haskell so I decided to convert a Perl module of
mine:
http://cpan.uwinnipeg.ca/htdocs/Crypt-Discordian/Crypt/Discordian.html
into Haskell. I was pleased at the cleanliness and conciseness of the
Haskell code. However, I am sure that it can be improved on and am
Arthur van Leeuwen [EMAIL PROTECTED] writes:
On Wed, Feb 23, 2005 at 08:46:23AM +0100, Arthur van Leeuwen wrote:
On Wed, Feb 23, 2005 at 12:27:19AM +, Terrence Brannon wrote:
[snip, encryptia discordia]
How about
module CryptDiscordian
where
import List
vowels = aeiouAEIOU
that spirituality is as much about
disharmony as it is about harmony.
So, in their primary book, Principia Discorida:
http://principiadiscordia.com/
you never know what is serious and what is play. The wikipedia has
more to say on them:
http://en.wikipedia.org/wiki/Discordian
--
Terrence
{-
I have written a program (below) to run a test suite for a list of functions:
[isTotalJunc, isPartialJunc]
where each function receives a datum of type ApplyArg whose value slot is
one element at a time of the list of types below:
[JNone, JOne, JAny, JAll]
I therefore must run 8
I'm working on exercise 6.16 in Thompson's Haskell; the Craft of
Functional Programming
My goal for the moment is to call printPicture to see my results:
type Picture = [[Char]]
printPicture :: Picture - IO ()
printPicture = putStr . concat . map (++\n)
And everything is encouraging. The
I have decided to escape the world of Perl into something more
definitional. I gave up on CAML and Erlang because they contain
imperative elements and I am tired of that form of coding. So, I have
narrowed it down to Haskell and Mercury.
The attractive things about Haskell are:
- automatic