Re: [Haskell-cafe] HELP

2010-10-21 Thread Brian Troutwine
I'm not sure what you're asking for; it looks like you have to implement the functions from the specifications. On Thu, Oct 21, 2010 at 6:11 PM, Yaadallah Khan yk...@hotmail.com wrote: I am Studying for an exam, and i have just come accross the following 3 questions, i am not familiar with the

Re: [Haskell-cafe] A Question of Restriction

2009-07-27 Thread Brian Troutwine
Hello Wouter. I've had a go at the paper linked and perused other references found with Google. Unfortunately, such sophisticated use of the type system is pretty far out of my normal problem domain and I can't see how to apply the techniques presented to my motivating example. Would you be so

[Haskell-cafe] A Question of Restriction

2009-07-26 Thread Brian Troutwine
Hello all. I would like to define a data type that is the super-set of several types and then each of the proper subset types. For example: data Foo = One | Two | Three | Four data Odd = One | Three data Even = Two | Four This, of course, does not work. It seems that such a thing

Re: [Haskell-cafe] A Question of Restriction

2009-07-26 Thread Brian Troutwine
at 09:01:22PM -0700, Brian Troutwine wrote: Hello all. I would like to define a data type that is the super-set of several types and then each of the proper subset types. For example: data Foo = O !Odd | E !Even    data Odd = One | Three    data Even = Two | Four This, of course, does

[Haskell-cafe] Strictness problems with Control.Event?

2008-11-05 Thread Brian Troutwine
I'm attempting to use Control.Event to limit HTTP requests made by a dippy little scraper I'm constructing to once per second but I think, maybe, that the Events are not being evaluated. First, some imports. import qualified Data.ByteString as B import qualified Data.ByteString.Char8 as C

[Haskell-cafe] HXT/Practical/Weather.hs difficulties

2008-11-04 Thread Brian Troutwine
Hello all, I'm working through the practical HXT examples and have gotten stumped with the weather example[1]. I'm using GHC 6.8.3 and HXT 8.1.0. I compile the example like so... [EMAIL PROTECTED]:~ $ ghc --make weather.hs [1 of 1] Compiling Main ( weather.hs, weather.o ) Linking

Re: [Haskell-cafe] HXT/Practical/Weather.hs difficulties

2008-11-04 Thread Brian Troutwine
Oh my, how silly of me. The page has moved to http://www.weather.gov/xml/current_obs/KAGC.xml ! Firefox simply follows the redirect. Thanks for the putStrLn suggestion, George. On Tue, Nov 4, 2008 at 5:28 PM, George Pollard [EMAIL PROTECTED] wrote: On Tue, 2008-11-04 at 17:04 -0800, Brian

[Haskell-cafe] Cabal packaging problem - Build-Depends name for Network.Curl.Download?

2008-10-30 Thread Brian Troutwine
Hello all, I'm having a small bit of trouble using cabal to package a program I'm calling aule. I cannot build the program using cabal but can compile it using ghc directly. Here's my aule.config: Name:Aule Version: 0.2.0 Cabal-Version: = 1.2 Build-type: