JSON Parser 100% From Scratch in Haskell (only 111 lines)

Поділитися
Вставка
  • Опубліковано 25 гру 2024

КОМЕНТАРІ • 282

  • @johnwerner3714
    @johnwerner3714 4 роки тому +299

    Are you having trouble understanding haskell? Study this video for a month. His explanations are in perfect English and you listen to him think out loud; his THOUGHT PROCESS IS VERY CLEAR. No textbook can give you that. Great teacher !! OUTSTANDING

    • @edvardm4348
      @edvardm4348 Рік тому +10

      My thoughts exactly! I've read lots of Haskell books and even written a clumsy parser, but this guy is amazingly good in explaining things

    • @panjak323
      @panjak323 9 місяців тому +7

      "Study this video for a month" this statement doesn't give Haskell a very nice look.

    • @andrewbuzz7308
      @andrewbuzz7308 8 місяців тому

      And I still won't know how to indent properly SO IT COMPILES (1:35:03)

    • @nonefvnfvnjnjnjevjenjvonej3384
      @nonefvnfvnjnjnjevjenjvonej3384 6 місяців тому

      i studied it for a month. still didnt understand. moving on to php now.

    • @samuraijosh1595
      @samuraijosh1595 3 місяці тому

      @@andrewbuzz7308 just use a formatter.

  • @ariashark
    @ariashark 5 років тому +447

    this is some extremely high quality content

    • @mnslr
      @mnslr 3 роки тому +8

      absolutely. I heard "emacs" and despite already assigning this guy the "dope tech 'tuber" label he gets the rare "speaks to my soul" label too

    • @elatedbento
      @elatedbento 3 роки тому +3

      Couldn't agree more. Great channel!

  • @Ahmad-if1tt
    @Ahmad-if1tt 4 роки тому +278

    Holy crap, you just covered the first half of my functional programming course in one video (Functors, Applicatives, Monads, Parsing) and I understood more than I did in all my lectures combined. Props man, if I pass it's all cuz of you.

  • @BatteryAcid1103
    @BatteryAcid1103 5 років тому +26

    Me, a dirty C#, Java, Javascript, Typescript programmer:
    uh huh, you did some weird functional haskell stuff, when are you gonna get to the parsing?
    Haskell:
    runParser (stringP "null") "null"
    Just ("","null")
    Me:
    Alright, what the fuck is this black magic?

    • @comed1an
      @comed1an 5 днів тому

      know thyself lol

  • @Klarpimier
    @Klarpimier 10 місяців тому +7

    I want to add something VERY IMPORTANT here: this code as it’s written in this video won’t work. It will run in an infinite loop and never finish
    The problem is with the many function and definitions like in fmap and the applicative map operator. The way Haskell works involves some lazy evaluation, which means that expressions are evaluated as they are needed. If you unpack the definition as so “(Parser p1)” etc., Haskell will evaluate the contained function p1 before determining what needs to be executed with the given string. This means that, for a recursive call like in many, the program will continue to evaluate the full implementation of the function without knowing when to stop. To fix this, change the instances of (Parsel p) to just p and use runParser p to call the function. This way Haskell will only evaluate the function implementation when it’s given text argument and hence know when to stop.

  • @chadthunder6915
    @chadthunder6915 4 роки тому +63

    This video got me huge into Haskell, I gave up on Learn You a Haskell when I got to applicatives but you made something so cool and elegant with them that I had to go back and keep learning. Now I can follow along everything you're saying, Haskell has changed how I look at programming

    • @michaelthompson7217
      @michaelthompson7217 3 роки тому +5

      it’s nice that learn you a haskell is free but it’s not really a great book IMO. i have no idea why the first pages of the book are all haskell syntactic sugar and other garbage that has nothing to do with the core of what haskell is (the language) and how to program with the core of the language

    • @thoperSought
      @thoperSought 2 роки тому +1

      @@michaelthompson7217
      agreed. I'm not really sure who LYaH is for, tbh
      I guess it might be okay when it's used in a University course, alongside a lecture and some assignments-I end up referring to it sometimes, for examples of things, and I guess it would serve a similar function for someone who has to pass a class

  • @agivney
    @agivney 5 років тому +29

    The way you explain this make this easy to understand. The irony of this is that by not trying to look like a genius, by keeping to a simple style, you actually show your intelligence. Well done. Please do make some more content like this!

  • @cameron1729
    @cameron1729 4 роки тому +48

    I'm glad you explained the runParser thing. So many tutorials gloss over why a 'field' in a 'struct' would be called runThing.

  • @stefanalecu9532
    @stefanalecu9532 Рік тому +4

    I came back to this 2 years later, now I'm actually doing a bachelor's thesis on a compiler using Haskell and this was such a great video, it's even better now that I understand Haskell and compilers better
    If it wasn't for you Tsoding I probably wouldn't have discovered my passion for programming language design, I remember tuning in to all of the Porth streams and trying to implement it in C++ myself
    Thank you so much ❤

  • @computationaltrinitarianism
    @computationaltrinitarianism 5 років тому +82

    Just a small caveat: Applicative has some laws that can't be expressed in Haskell code. So the proof that it is Applicative is not complete with just the implementation. But usually the obvious implementation does satisfy the laws.

    • @unsafecast3636
      @unsafecast3636 3 роки тому +4

      I'm intrigued. Can you expand on this?

    • @chon-850
      @chon-850 3 роки тому +4

      @@unsafecast3636
      According to hackage.haskell.org/package/base-4.14.1.0/docs/Control-Applicative.html
      A valid applicative needs to satisfy the following laws, some of which are not expressed in the implementation. This means you could write an Applicative instance of a type and have it compile in Haskell, but it doesn't necessarily mean it's mathematically a lawful / valid applicative.
      Identity:
      pure id v = v
      Composition:
      pure (.) u v w = u (v w)
      Homomorphism:
      pure f pure x = pure (f x)
      Interchange:
      u pure y = pure ($ y) u

    • @unsafecast3636
      @unsafecast3636 3 роки тому +3

      @@chon-850oh okay. Thanks

  • @twashing2006
    @twashing2006 4 роки тому +18

    Hey man, really appreciate your taking the time to step through your intuitions especially. There's one thing to know the theory of a programming language. But the real test is being able to construct a program with it. Cheers!

  • @stas4112
    @stas4112 2 роки тому +10

    My favorite thing about this channel is that it takes me like 6 hours to follow along with a 2 hour long video haha. The level of detail is absolutely incredible, we're very lucky to have this content just online like this

  • @danconcep
    @danconcep 4 роки тому +5

    I found your video looking for some Haskell tutorials and I am amazed on how well you explain everything. Thank you! My favourite video on Haskell for now.

  • @neel6
    @neel6 3 місяці тому +1

    I was intrigued by Haskell and decided to follow along with you as you code. Was able to understand a good chunk of it without needing any course or tutorial.
    Thank you for your efforts!

  • @3_14pie
    @3_14pie 6 місяців тому +2

    haskell hurts my brain, but learning it has been so fantastic, I'm getting a new perspective on programming, and this video has been a great resource for that

  • @Acuzzio
    @Acuzzio 4 роки тому +8

    This video is absolutely fantastic. I miss my time playing with Haskell... always forgot ':r', too. I would have loved this level of content 8 years ago :). Amazing, man, just amazing.

  • @yecinemegdiche3202
    @yecinemegdiche3202 3 роки тому +9

    I tried to keep my serious face when you kept saying "penetration", but I absolutely lost it when you said "double penetration"
    Awesome video though! Thanks

  • @Honken
    @Honken 5 років тому +7

    That's the most ... descriptive ... explanation of a functor I've ever heard. Thank you.

  • @gorlamigoosfraba417
    @gorlamigoosfraba417 4 роки тому +2

    I was just looking for an excuse to learn how to parse stuff in haskell but didn't know where to begin... Thanks man, this was amazing!!! Looking forward to get more haskell wisdom

  • @Budaeku
    @Budaeku 5 років тому +6

    Praise our Haskell Wizard Overloard! All jokes aside, this was a really fascinating video that I'll probably rewatch later to learn more from. I've been using C for a class and I miss the rich abstractions in Haskell. It's kinda jarring going from one mindset to the other. In C you can accomplish the same things but with structs, loops, pointers, etc. I imagine working in C helps one reason about performance better in a HLL like Haskell and working in Haskell helps one identify useful abstractions for coding in a lower level language like C.

  • @joshbassett
    @joshbassett 8 місяців тому +1

    Amazing video. I've used parsec/attoparsec/megaparsec to build parsers, but how they work was always somewhat of a mystery to me. Watching you build a parser from scratch was incredible, and all the little insights along the way were so valuable.

  • @freaking1122
    @freaking1122 3 роки тому +3

    Thank you for taking the time to do this. It’s incredibly detailed and informative

  • @fennecbesixdouze1794
    @fennecbesixdouze1794 4 місяці тому +1

    Legendary video. Worth noting that this approach can also be followed in imperative languages (Javascript, anyone?) and leads to an incredibly succinct way of implementing parsers.

  • @eliasavelino6729
    @eliasavelino6729 2 роки тому +2

    I don't even program in Haskel let alone any functional language but when I do I sure as hell will watch your videos!

  • @holdenmcgroin8917
    @holdenmcgroin8917 5 років тому +74

    You've just popularized hole-driven development :)

    • @pmcgee003
      @pmcgee003 Рік тому

      Not surprising, given the amount of penetration in this video. 🙃

  • @pouris
    @pouris Рік тому +22

    "We need to prove that parser is penetrable"
    -- Tsoding 2019

  • @alinisar87
    @alinisar87 4 роки тому +5

    This is absolutely amazing content. Thank you for this, please keep up the good work man!

  • @dimaorols8143
    @dimaorols8143 5 років тому +4

    Спасибо за то, что показали, как реализовать синтаксический анализ в Haskell. Не зная Haskell, я решил попробовать разобрать XML для альтернативного языка разметки. Вы обеспечили отличное основание.

    • @mechmaker9346
      @mechmaker9346 5 років тому +3

      Для
      парсинга есть библиотека parsec.
      Это почти тоже самое,что он показал в видео.

  • @flwi
    @flwi 5 років тому +15

    Nice haskell session. I just started learning it and it's interesting for me to see how your coding workflow is.

  • @GabrielPiveta
    @GabrielPiveta 4 роки тому +48

    next video: how to implement a haskell compiler in haskell.

  • @Astr0B
    @Astr0B 5 років тому +100

    I’m a C# dev so this Haskell stuff looks like black magic

    • @roridev
      @roridev 4 роки тому +7

      same here, i'm trying to understand FP.

    • @shubham.1172
      @shubham.1172 4 роки тому +10

      This paper from 1998 is an extremely nice introduction to lambda calculus www.cse.chalmers.se/research/group/logic/TypesSS05/Extra/geuvers.pdf

    • @0xDEAD_Inside
      @0xDEAD_Inside 4 роки тому +1

      @@shubham.1172 Thanks

    • @ribosomerocker
      @ribosomerocker 4 роки тому +4

      Same. It was very hard understanding functional programming a few weeks ago, before I started learning haskell. Now it feels really nice, this guy knows what he's doing.

    • @mohameddaahir4
      @mohameddaahir4 4 роки тому +4

      fsharpforfunandprofit.com/posts/understanding-parser-combinators/ might be more approachable if you know or planning to learn F#

  • @Quux_Music
    @Quux_Music 4 роки тому +26

    I'm intrigued about the Porn Folder indicator on the status bar

  • @pexoto5093
    @pexoto5093 2 роки тому +3

    Pleeease dont stop posting content you're so cool and such a good informative teacher

  • @janekx21
    @janekx21 Рік тому +1

    This is magic. Thanks for keeping my hope high on learning haskell and parsers.

  • @gandalfg1479
    @gandalfg1479 2 роки тому

    Every parser related video, i closed it off before minute 10. Yours is super quality content man. Very intuitive the way you explain. nice!

  • @0x1337feed
    @0x1337feed 3 роки тому +2

    mind blown at 1:00:10
    imma go back and rewrite my scheme implementation using all of what I've learned here cause man this is epic

  • @aarondl
    @aarondl 5 років тому +14

    I would be incredibly grateful if you could evolve this into a small series. Much like you start with Functor and move towards Applicative and Monad in implementation, if this could start with an Applicative and move towards an implementation using Monad and then MonadTs. It would still be a JSON parser each time, just showcasing how you would do it with each abstraction.
    edit: This was a great video, thank you

  • @griof
    @griof 5 років тому +2

    Definitely the most useful explanation on applicatives. Super cool

  • @asdobst
    @asdobst 5 років тому +6

    thank you for this video, it really helped with functors and applicatives!

  • @mechmaker9346
    @mechmaker9346 5 років тому +3

    Good video.
    It shows how haskell abstractiobs can help us to express our functions or data types.

  • @alvarojimenez1252
    @alvarojimenez1252 Рік тому +2

    You made me open my notes on Monoidal Categories, something not even the professor in that course managed to do

  • @nilp0inter2
    @nilp0inter2 4 роки тому +40

    This is Fcking Amazing!

  • @jit_rs
    @jit_rs 4 роки тому +2

    This video served me a perfect parser combinator tutorial. Vielen Dank!

  • @phillipabell2666
    @phillipabell2666 4 роки тому +1

    I’ll give a pogchamp. As a java programmer, this looks like black magic. Though I oddly understood some of it. I appreciate the explanations of everything. Not to mention the result was incredible I am impressed.

  • @tombear9770
    @tombear9770 4 роки тому +2

    hoooolyyyyy ...!!!1111
    you just helped me implement a parser for the first time and I am buzzed about it :D
    I got up to 1:39:25, now I am going to grab a beer and drink it with you talking the last 10 mins to celebrate xD
    p.s. you are a swell and entertaining dude

  • @whythosenames
    @whythosenames 2 роки тому +1

    this is the best video i have seen on youtube in my entire life

  • @linuxgaminginfullhd60fps10
    @linuxgaminginfullhd60fps10 4 роки тому +3

    The chat is not silent - it is speechless!

  • @Uchchhash
    @Uchchhash 4 роки тому +1

    I've learned so much from this man! More videos like this please!

  • @johnnyphoney5669
    @johnnyphoney5669 5 років тому +24

    58:00 Why not just implement "jsonBool" as:
    JsonBool ((True

    • @johnnyphoney5669
      @johnnyphoney5669 5 років тому +12

      Ah, I see in the GitHub repo that at some point you did kinda the same.

    • @skepticmoderate5790
      @skepticmoderate5790 3 роки тому

      I was thinking (const True) stringP "true" because I didn't know about

    • @beffuni
      @beffuni 8 місяців тому

      Lol I was thinking the same thing and glad someone 4 years ago thought the same

  • @therenaissance8322
    @therenaissance8322 5 років тому +35

    I lost it at around 45 minutes when you introduced operator...

    • @Tsoding
      @Tsoding  5 років тому +32

      Understandable, is probably the weirdest of them all. I think the problem is that it does way too many things:
      1. It merges the Applicatives.
      2. It applies the function of the right applicative to the value of the left applicative.
      It's really unintuitive what would you use such combination of actions for. Use case example at 41:30 is probably the best thing I could come up with. Sorry if I could not explain it better. I also initially didn't understand why would you need , but over time after working with Maybe-s a lot I eventually sort of realized what it's meant for.

    • @artwelf
      @artwelf 5 років тому +24

      Pure functions perform calculations. But sometimes you want to have not only pure calculations but side effects as well. Functors, applicative functors, and monads are exactly about it: about performing pure calculations AND/OR side effects.
      Let's take for example Double. Pure functions should be deterministic, it means they have to be defined for all possible operations with Doubles. But what if you divide a Double by zero? Dividing by zero is not defined, and the result of it is out of the set of Doubles. Thus, with Maybe Double you perform EITHER pure calculations by getting (Just result) OR perform a side effect (in our case it is Nothing).
      The Parser from the video is an example of performing pure calculations AND (instead of OR which we have seen with Maybe Double in the example above) side effects. When we parse the string we get the result of the pure calculation (the second element of the tuple) AND a side effect (the rest of the string as the tuple's first element).
      Now it is easy to grasp the notion of the () operator (it calls "apply"). You have two entities, and each of them performs pure calculation AND a side effect. When you "apply" the first of it to the second with the help of () operator, you need to perform pure calculations with both second values of tuples AND sequentially perform 2 side effects (to return the rest of the string from the first parser and to return the rest of the rest of the string from the second parser). So you are parsing the input string with the first parser (and get a tuple (the_rest_of_the_string, pure_function)), and then parse the_rest_of_the_string with the second parser (and get a tuple (the_rest_of_the_rest_of_the_string, pure_function_applied_to_value)).
      Hope it will help you to understand.

    • @artwelf
      @artwelf 5 років тому +15

      And later in the video, you will encounter 2 more operators from Applicative: ().
      The first operator () ignores the value of the first parser and takes the value of the second parser but performs side effects of both parsers as well.

    • @therenaissance8322
      @therenaissance8322 5 років тому

      I get it now... Thanks!

    • @julianrachele757
      @julianrachele757 5 років тому +10

      The way I kinda wrapped my mind around it is this:
      Imagine this:
      let a = (5+)
      let b = 5
      In Haskell, everything is a function, and a and b can easily be combined with the expression a b.
      >a b
      10
      But not everything is a nice pure function. Sometimes you have Applicatives, like Maybe. Consider this:
      let a = Just (5+)
      let b = Just 5
      You can no longer just do (a b) to get 10. Since Maybe is Applicative, however, we know that we can turn "inside out" the contents and evaluate the function of one with respect to the value of another.
      >a b
      Just 10
      The result is an Applicative as well, an assertion that has been unadulterated by our .
      I've almost certainly oversimplified it but I hope the explanation makes it clearer.

  • @KhaliliStudios
    @KhaliliStudios 5 років тому +3

    Wow you make it seem so effortless 🤩

  • @tekno679
    @tekno679 4 роки тому +2

    hundred times better than a college course. thank you

  • @NoOne-ev3jn
    @NoOne-ev3jn 6 місяців тому +2

    Tsoding is just underrated

  • @user-ot54ht
    @user-ot54ht 11 місяців тому

    Fantastic video. 10/10. I wanted to learn to program in Lean, and this was such a blessing.

  • @stefanalecu9532
    @stefanalecu9532 3 роки тому

    I enjoyed seeing you program in Haskell even though I am a beginner, you made the process seem fun, thank you

  • @EricKlinkhammer
    @EricKlinkhammer 5 років тому

    Awesome video. I'm going to share this with all my coworkers. Please keep up the great content!

  • @emm1257
    @emm1257 5 років тому +5

    I got this recommended and I just had to watch it

  • @sleazysquid4502
    @sleazysquid4502 3 роки тому

    This is the best intro video for parser combinators I know of.

  • @adharshmanikandan2326
    @adharshmanikandan2326 3 роки тому +4

    JS dev be like, I made chat apps, typed 10k lines in 2 mins.
    Haskell deb be like, I made Parsers, only 111 lines in 2 hours.

    • @mikejackson7230
      @mikejackson7230 3 роки тому

      JS dev here. I have no idea what I am watching.

  • @thomasberryhill6318
    @thomasberryhill6318 5 років тому +13

    This is such a good video, thanks so much :)
    A question though, wouldn't a monadic interface for Parser make it easier to read and write combinators? Especially with do-notation...

    • @Tsoding
      @Tsoding  5 років тому +11

      I guess it's a personal preference. I personally like the Applicative style better because the set of resulting parsers sort of resembles BNF in structure :D

    • @coolabananers
      @coolabananers 5 років тому +5

      You could use the language extension ApplicativeDo

  • @minhtu_thomas_hoang
    @minhtu_thomas_hoang 3 роки тому +3

    This tutorial complements real well with The Haskell Book's chapter 24 on "Parser Combinator".

  • @ShawnShaddock
    @ShawnShaddock Рік тому

    This was incredible, thank you for making it ❤

  • @TropicalMelonMan
    @TropicalMelonMan 4 роки тому

    Hello Tsoding, long time no see. This is helpful for me to better understand the usage of the Maybe-monad we have begun using at my job (C#). There is no better way than you showing how it works in the OG functional language. Thank you for the great content. Hope you are well.

  • @HomeofLawboy
    @HomeofLawboy Рік тому

    Impressive tutorial, very in-depth and well explained.

  • @tiagogoll4142
    @tiagogoll4142 3 роки тому +3

    Are you aware of ghcid --allow-eval mode?
    With it you can evaluate as many conditions as you like using "-- $> " so you just need to save the file and the expression will be evaluated bellow the "all good" confirmation, instead of having a tab bellow just to type some code to have it evaluated.

  • @dartstone238
    @dartstone238 5 років тому +2

    I studied Haskell in class. Loved the language but didn't continued learning it. Makes me want to go back to it.

  • @ben2258
    @ben2258 5 років тому +3

    Really great video! Just wanted to ask: Isn't your Parser type (if you made it a Monad) just an instance of State? i.e. Parser a is the same as State String (Maybe a)?

    • @moonythm
      @moonythm 4 роки тому

      I think he wanted to show how it works under the hood

  • @zcysqgjkltym
    @zcysqgjkltym 2 роки тому

    Как же мне не хватало этих видео лет 10 назад, Спасибо!

  • @DanielSantaCruz
    @DanielSantaCruz 5 років тому +2

    Moar like this, please :) Good stuff, tsoding.

  • @tepan
    @tepan 5 років тому +7

    charP '!' *> applause

  • @fuuryuuSKK
    @fuuryuuSKK 2 роки тому

    at 34:30, the issue was that f was already bound as the functor fmap is supposed to apply, and thus was unavailable as a valid local placeholder. Always keep your scopes in mind

  • @linkernick5379
    @linkernick5379 5 років тому +8

    Крутое видео, спасибо!

  • @MrHatoi
    @MrHatoi 4 роки тому +4

    This was literally the first thing I tried when I started learning Haskell, it took me closer to 200 lines though lol

  • @KnowledgeableGnome
    @KnowledgeableGnome 5 років тому

    Very nice! Excellent explanations as you go along too.

  • @adi5381
    @adi5381 5 років тому

    I haven't done haskell before but I followed this whole video. I have a lot of experience with imperative languages so functional programming is kinda confusing to me. I don't understand the specifics of all this but I understand what it does. I found this video very relaxing. :) Good job!

  • @dimitriss1634
    @dimitriss1634 3 роки тому +1

    what is this "P*rn Folder" thing in your bar? :p Great video brother! Love it

  • @TheMakoda1
    @TheMakoda1 4 роки тому +1

    Awesome video!!!! Thank you for taking the time to do this!!!!
    I have a question though:
    In the code below
    instance Functor Parser where
    fmap m (Parser p) = Parser $ \input -> do
    (input', x)

  • @nikayayeh4809
    @nikayayeh4809 5 років тому

    Great video on implementing a simple parser combinator.

  • @linhe6729
    @linhe6729 4 роки тому

    It's fun and very informative. I really appreciate it!

  • @RemDaDesigner
    @RemDaDesigner 3 роки тому +1

    One day I'll understand this whole vid.

  • @mfatihkoksal
    @mfatihkoksal 4 роки тому +1

    "Maybe is already an Alternative. May be we can take advantage of that" :D 56:00

  • @Rundik
    @Rundik 5 років тому +7

    Любое видео по функциональному языку: ничего не понятно, но очень интересно

  • @n3ttx580
    @n3ttx580 5 років тому

    I have 0 idea what are you doing, and honestly it looks more like some forbidden language to summon demons, but I watched it almost to the end just because it is entertaining. I might get into Haskell after this :D

  • @fuuryuuSKK
    @fuuryuuSKK 2 роки тому +3

    charP could also have been implemented as
    charP x = Parser f
    where
    f x:ys = Just (ys, x)
    f _ = Nothing

  • @daryo_pl
    @daryo_pl 5 років тому

    Congrats, you have done very good job here :)

  • @jenslindstrom2841
    @jenslindstrom2841 4 роки тому +2

    This looks like voodoo magic, where to start learning?

  • @blitzritz
    @blitzritz 5 років тому

    Most educational haskell video this!

  • @hamzadlm6625
    @hamzadlm6625 Рік тому

    Someone nominate this guy for an award

  • @MatthiasBloch
    @MatthiasBloch 2 роки тому

    Awesome stuff. Learned a lot, thanks!

  • @andrewdunbar828
    @andrewdunbar828 2 роки тому +4

    I would enjoy seeing you make a parser for some binary format (exe, mp3, png...) using parser combinators made by hand or from a major library, or hand-made recursive descent, in one of the new languages such as Rust.

    • @stefanalecu9532
      @stefanalecu9532 Рік тому +2

      You could probably do a similar thing but using Attoparsec instead, since it's specialized on binary formats

  • @UODZU-P
    @UODZU-P 4 роки тому +1

    Is this reversible? can you output JSON from your AST

  • @gabrieltejedapizarro
    @gabrieltejedapizarro 3 роки тому +1

    Haskell is the way

  • @joseoliveira8423
    @joseoliveira8423 4 роки тому

    Awesome content! Thank you so much for this!

  • @JeyPeyy
    @JeyPeyy 4 роки тому

    As my professor once told us, Haskell is basically a DSL for implementing parsers.

  • @AlexDanut
    @AlexDanut 5 років тому +1

    Can't you use alternative to parse floats and things, so that if parsing a float, with a decimal point, fails, then it tries to parse the value as an integer?

  • @teemukarppinen9462
    @teemukarppinen9462 5 років тому +1

    Double penetration operation is my favourite new applicative related term haha

  • @WilcoVerhoef
    @WilcoVerhoef 4 роки тому +1

    Data.Map (containers) was never in base, but containers _is_ part of the haskell platform

  • @brecoldyls
    @brecoldyls 4 роки тому +1

    49:40 to 49:48 had me laughing so hard 😂 this is amazing thank you

  • @sippy_cups
    @sippy_cups 4 роки тому

    you are a very good streamer. thanks!

  • @edilmedeiros
    @edilmedeiros 5 років тому

    Very nice and instructive. Thanks for sharing.