News for hackers. Stuff that matters.
Re:Thinking in Types by platz on Friday May 02, 2014 @01:31PM (#7686994)
Frequently there will be many different ways to solve or architect a problem in Haskell, for better or worse depending on your viewpoint. Personally I think it it is better.

But anyways, another option would be to make a type for your list which wraps each possible element, then you can just pattern match on the ADT.

Also slightly concerned that this has language targeting beginners with almost 0 Haskell knowledge: I am not sure quick anecdotes like this will do more to help than confuse complete beginners.

I still think those interested should start with LYAH which does a good job giving enough context with the flurry of new things to learn.

I suppose it's inevitable if haskell gets more popular there will be more posts like this (which i like) but I'm not sure if its the right way to onboard newcomers.

Re:Thinking in Types by zmoazeni on Friday May 02, 2014 @03:02PM (#7687484)
I'm all for more posts like this and I hope we see more. I think it helps tear down the misconception that Haskell is only for people who do a ton of research beforehand.
Re:Thinking in Types by platz on Friday May 02, 2014 @03:10PM (#7687528)
Fair enough, I'm for whatever works!