Live data from Hacker News

Conrad Barski's Haskell Tutorial

lisperati.com

31–40 of 42 posts

Re: Conrad Barski's Haskell Tutorial

#31
post #27
post #12

Earlier quoted context omitted.

Did you respect indentation? Tutorial is really failing here with this “just paste this to the bottom”.

I did respect indentation, and here's what I get as an error: > tutorial.hs:21:23: Illegal type signature: `[Person] people' Perhaps you intended to use -XScopedTypeVariables In a pattern type-signature

I guess you have a little error in your code. Maybe if you copied and pasted there was an error.

For example, if you have

     let people :: [Person] people
instead of

     let people :: [Person]
         people = -- ...
that would give you that error.

Re: Conrad Barski's Haskell Tutorial

#34
post #27
post #12

Earlier quoted context omitted.

Did you respect indentation? Tutorial is really failing here with this “just paste this to the bottom”.

I did respect indentation, and here's what I get as an error: > tutorial.hs:21:23: Illegal type signature: `[Person] people' Perhaps you intended to use -XScopedTypeVariables In a pattern type-signature

You copy-pasted it without a newline.

This is how it should look http://lpaste.net/90921

Re: Conrad Barski's Haskell Tutorial

#35
post #24

Earlier quoted context omitted.

Thanks for the wonderful Land of Lisp book! I only wish someone would do a similar "Land of C" book some day :-)

I haven't read that one, and I am looking for an into to Lisp book. What did you like about it? (and I think it would be a missed opportunity to not title it "Sea of C")

Read it. How can you not read a book with such a front cover? And it has examples you really want to play with (literally), not 10000 kinds of "hello fibonacci".

Re: Conrad Barski's Haskell Tutorial

#37
post #33

I'm unsure which regex package flavor to use... regex-base? regex-compat? regex-pcre? regex-???

This confused me when I was learning Haskell as well. The way I understand it is that regex-base defines a base-line interface -- such as the context-aware =~ function -- that all of the other packages implement, which is why they're known as 'backends' (e.g. regex-tdfa, regex-pcre, etc.).

In newer versions of GHC (> 6.6), the backends re-export this interface so that you just need to import the backend. regex-tdfa is the backend that I've used myself, mainly because I saw it used in other packages (Hakyll).

http://www.haskell.org/haskellwiki/Regular_expressions#regex...

Re: Conrad Barski's Haskell Tutorial

#38
post #3

Wow, how did my Haskell tutorial get to the HN front page out of nowhere? :-) If you like my stuff, keep an eye out for my new Bitcoin book, which will be coming out this fall. I've been slaving over the artwork for months, it should be a beautiful book! The working title is "Bitcoins for the Befuddled".

Thanks for the wonderful Land of Lisp book! I only wish someone would do a similar "Land of C" book some day :-)

Following the naming pattern, the title would be more like "County of C" ;-).

Re: Conrad Barski's Haskell Tutorial

#39
post #9
post #2

Picnicmob was a really clever idea. I think I remember that it got cancelled though, which was unfortunate. I like the tutorial though. I'd be willing to bet it's his style and work that inspired the "Learn you a..." books. The Haskell one is great, and so is the Erlang one.

don't forget _why's (poignant) guide to ruby http://mislav.uniqpath.com/poignant-guide/

I've never read all of the poignant guide, though I probably should for entertainment value. But, yeah, I'd imagine that was also an inspiration.
Post reply on HN