[Haskell-cafe] HaXML - creating a simple document

2006-12-30 Thread Terrence Brannon
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

[Haskell-cafe] Re: HaXML - creating a simple document

2006-12-30 Thread Terrence Brannon
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',

Re: [Haskell-cafe] Re: HaXML - creating a simple document

2006-12-30 Thread Terrence Brannon
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

[Haskell-cafe] module Crypt_Discordian - code critique requested

2005-02-22 Thread Terrence Brannon
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

[Haskell-cafe] Re: module Crypt_Discordian - code critique requested

2005-02-23 Thread Terrence Brannon
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

Re: [Haskell-cafe] module Crypt_Discordian - code critique requested

2005-02-24 Thread Terrence Brannon
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

[Haskell-cafe] getting the name of a function for test diagnostic purposes

2005-03-03 Thread Terrence Brannon
{- 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

[Haskell-cafe] flushing trace debug output before getting other output

2005-07-16 Thread Terrence Brannon
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

What do you think about Mercury?

2001-04-08 Thread Terrence Brannon
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