[Haskell-beginners] A wikipedia episode guide parser. [code review request]
Thomas Nickson
thomas.nickson at gmail.com
Sun May 6 20:07:16 CEST 2012
I have written my first piece of haskell code which I'm, to be honest, not
too proud of. I have used the tag soup library to parse and manipulate the
wikipedia episode list page such as:
http://en.wikipedia.org/wiki/List_of_Weeds_episodes
to scrape some of the episode information and place it in to a series of
data structures. Nothing too complicated.
I know there are probably better libraries out there, I know of HXT and
others but it uses arrows and I want to start getting to know the basics
before moving on to that. The main point here being that I'm not to
interested in the library I used but the code I produced with it.
My main concern is in the layout of the code. It needs to keep state and
I'm aware of the state monad but is it a good idea to push all of the code
in to the state monad and restructure it that way or is that too complex
for what I do. I'm not really sure how else I could refactor it but any
suggestions on how to improve would be great.
The code is here:
http://pastebin.com/409SLPre
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120506/3b52cd14/attachment.htm>
More information about the Beginners
mailing list