Better HN
topnewbestaskshowjobs
Log inSign up

cstml

2 karma · joined Jan 11, 2021 (5y ago) · 6 submissions

Submissions

comment 5y ago · link · parent

Fantastic.

2.

Haskell: Applicative Typeclass(cstml.github.io ↗)

3 points · by cstml · 5y ago · discuss

comment 5y ago · link · parent

Indeed, but arguably both can sound strange to an outsider.

Much of the minimal elegance of Haskell relies on it being able to express logic while abstracting away details. If the goal was to get the syntax to look more like the one of JS/TS, there could have been a way to write it similarly to your example - and even simpler. But the point was - show how the use of a monoid abstracts all that - allowing one to simply use the already defined operations of the monoid.

At the time the exaples were written, they were indeed intended for a Haskell crowd, but good point going forward. Thank you.

comment 5y ago · link · parent

I wrote this small post on a use case of the Monoid typeclass in Haskell.

5.

Haskell: Monoid (Use Case Example)(cstml.github.io ↗)

3 points · by cstml · 5y ago · 7 comments

comment 5y ago · link · parent

Why is there no common place where people can see names that have been used already? It could make us avoid such nuissance.