dmjio / hackernews

:newspaper: HackerNews API
http://hackage.haskell.org/package/hackernews
MIT License
40 stars 9 forks source link

Setting `userAbout` field to `Nothing` if empty #1

Closed zudov closed 10 years ago

zudov commented 10 years ago

Some HN users (e.g. zinfandel) simply doesn't have about field, such case results to Nothing in User's record. Others (e.g. root) have it but it's empty. It seems that it's a good idea to turn such empty fields into Nothing.

dmjio commented 10 years ago

Great addition, can you bump the dependency to 0.2.2.2 before we merge?

zudov commented 10 years ago

Yep, done.