evancz / url-parser

Parse URLs into nicely structured data
http://package.elm-lang.org/packages/evancz/url-parser/latest/
BSD 3-Clause "New" or "Revised" License
114 stars 29 forks source link

Learning Elm, and trying to read this source. What *is* a Parser!? #28

Closed colinta closed 7 years ago

colinta commented 7 years ago

I have not been able to figure out how to read this type definition:

type Parser a b =
  Parser (State a -> List (State b))

Can you explain what the Parser type is? Sorry to bother you with this, hopefully it's easy, but nothing I've read in the docs about types mentions this syntax, or why you need it / use it (type A b c = A (... b ... c))

process-bot commented 7 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

evancz commented 7 years ago

You can definitely get some help with this through a community forum: http://elm-lang.org/community