First time doing haskell immediate impressions 

Nice language overall, good tooling, and seems to hold together better than OCaml (my only prior FP experience).

The learning curve is super steep, especially given that I’m doing it in limited time for AoC 2023 day 2 only, but it definitely feels like you can easily get very proficient with it. I get a bit lost among all the function application/composition/binding/pipelining operators and had troubles wrapping my head around do expressions but I eventually managed to have a working program.

Day 2 of AoC required making a parser, so I used parsec, which forced me to play quite a bit with the Parser monad (+ the IO monad to read the input file at the beginning).

I really struggled to Google some basic stuff, like I easily spent 15 minutes looking for the & operator. I’m ashamed to admit it but it was Ch*tGPT that helped me for this.

Enough said. I probably won’t become a hardcore #Haskell dev but I’ll definitely consider its use for small projects in the future (e.g. game solvers). And no more OCaml in my life, for sure.

Follow

First time doing haskell immediate impressions 

@edgarogh Yeah, operators are pretty unsearchable.

However there's an index for many kinds of stuff you may be interested in.

Search operators: hoogle.haskell.org/?hoogle=%28

Search by name: hoogle.haskell.org/?hoogle=Sem

Search by type (!): hoogle.haskell.org/?hoogle=May

(Bonus) Find packages: hackage.haskell.org/packages/s

First time doing haskell immediate impressions 

@dpwiz @edgarogh Yeah, searching by type seems strange at first but that's really something you use every day (once you get the knack of it)

First time doing haskell immediate impressions 

@clementd I didn't really dive into hoogle but I clearly see how it could've helped me. I did a little bit of Coq (the proof assistant) during a semester of studies, and IIRC there was a way to lookup existing proofs from the standard library (and any installed lib) by type, too (and that's really useful).

@edgarogh Another thing that helped me was using hlint. Not necessarily for discovering new things, rather improving my style

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.