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

Brian Troutwine goofyheadedpunk at gmail.com
Tue Nov 4 20:04:43 EST 2008


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...

> blt at doritos:~
> $ ghc --make weather.hs
> [1 of 1] Compiling Main             ( weather.hs, weather.o )
> Linking weather ...

And execute it...

> blt at doritos:~
> $ ./weather
>
> error: ""<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0/..."" (line 1, column 16):
> unexpected "P"
> expecting white space, "[" or ">"
>
> Unable to parse weather data.

Woops. Would someone be so kind as to explain why this is failing? I'm
at rather a loss.

[1] http://www.haskell.org/haskellwiki/HXT/Practical/Weather1

--Brian

P.S. Is this question better suited to the haskell-beginner list?


More information about the Haskell-Cafe mailing list