Re: [Haskell-cafe] A 3 line program --> Reid, Don, Daniel
Hello Ketil! Tue, Oct 27, 2009 at 09:06:50AM +0100 you wrote: > > At which point you probably want to make use of iconv, so you might as > > well support all iconv-supported encodings. > > Interestingly, Wikipedia [0] says that "Unicode-aware programs are > required to display, print and manipulate [UTF-32 and -16]", although no > source is provided for this requirement. I believe that `required' there means that you have to use a Unicode-aware program (and can't use a legacy program avan for plain English text, in contrast to UTF-8), not that every Unicode-aware program has to actually handle the encodings. Best regards, -- DoubleF No virus detected in this message. Ehrm, wait a minute... /kernel: pid 56921 (antivirus), uid 32000: exited on signal 9 Oh yes, no virus:) pgp9KVyBeH3vX.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] pure crisis :)
Hello Bulat! Sun, Feb 01, 2009 at 10:19:18PM +0300 you wrote: > Hello haskell-cafe, > pure functional denotation for crisis: > (_|_) Thus, when people try to evaluate the amount of savings they have left, their behavior frequently becomes _undefined_ :) -- DoubleF pgpqVznaWBs7H.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Alternate instance Show (Maybe a)?
Hello Yitzchak! Sat, Feb 03, 2007 at 07:54:17PM +0200 you wrote: > Show instances are supposed to follow the convention that > "show x" is a Haskell expression that recreates x. In other words, > Show is mainly used for debugging, for simple serialization, and > for interactive use in a Haskell shell like ghci or hugs. > > If you need to create strings from a datatype for some other > reason, use a different function name. If you need to do it > for several datatypes, create your own class. Yes, I think another Show-like class will probably be a better solution... Thanks Yitzchak and Bjorn, -- DoubleF No virus detected in this message. Ehrm, wait a minute... /kernel: pid 56921 (antivirus), uid 32000: exited on signal 9 Oh yes, no virus:) pgpKrflZnT8EB.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Alternate instance Show (Maybe a)?
Hello list, Suppose I want show Nothing to return "", and show (Just foo) return show foo. I don't seem to be able to. Looks like I either have to use some other function name, like `mShow', or have to import Prelude hiding Maybe, reimplement Maybe, write all the other useful instances (Functor, Monad) for it, etc. Not particularly hard, but looks ugly. Isn't there a better solution? I recall some discussion about this, but can't find it in the archives... TIA, -- DoubleF No virus detected in this message. Ehrm, wait a minute... /kernel: pid 56921 (antivirus), uid 32000: exited on signal 9 Oh yes, no virus:) pgpK6irUBjFEF.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Undecideable instances for one instance?
Hello Christophe! Wed, Jun 07, 2006 at 12:39:30PM +0400 I wrote: > > instance Locatable a where > > You probably mean ``instance Locatable (Located a)'', don't you? Ouch, scratch that... -- DoubleF No virus detected in this message. Ehrm, wait a minute... /kernel: pid 56921 (antivirus), uid 32000: exited on signal 9 Oh yes, no virus:) pgpbQyCpLlVb5.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Undecideable instances for one instance?
Hello Christophe! Wed, Jun 07, 2006 at 10:27:22AM +0200 you wrote: > The sample code is: > > {-# OPTIONS_GHC -fglasgow-exts #-} > module Main where > > data Located a = L a > > class Locatable a where > value :: Located a -> a > wrap :: a -> Located a > > instance Locatable a where You probably mean ``instance Locatable (Located a)'', don't you? > value (L a) = a > wrap a = L a HTH, -- DoubleF No virus detected in this message. Ehrm, wait a minute... /kernel: pid 56921 (antivirus), uid 32000: exited on signal 9 Oh yes, no virus:) pgptB4QMALhAQ.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] ghc-6-2-1_1.msi MD5 sum
Could anyone give me the MD5 sum of http://www.haskell.org/ghc/dist/6.2.1/ghc-6-2-1_1.msi I've been writing in Haskell for FreeBSD, and now I wanted to compile one under windows. The .msi file seems to be broken, and I just wanted to check... -- DoubleF "The more data I punch in this card, the lighter it becomes, and the lower the mailing cost." -- Stan Kelly-Bootle, "The Devil's DP Dictionary" pgpOVWaX9rZJz.pgp Description: PGP signature ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe