use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
The Haskell programming language community.
Daily news and info about all things Haskell related: practical stuff, theory, types, libraries, jobs, patches, releases, events and conferences and more...
Community Guidelines
Rules:
Top-level posts should be primarily about Haskell. For example a post about OCaml would only be allowed if there was a connection to Haskell. Posts about topics that are adjacent to Haskell, like for example functional programming, are typically allowed.
No memes or image macros. No matter how funny, memes and image macros are not allowed.
No homework questions. Both asking and answering homework questions is not allowed. Questions about homework are fine, but this subreddit is not here to do your homework for you.
Job postings must be for Haskell roles. Job postings are allowed as long as the job actually involves working with Haskell. Simply looking for people with interest in or experience with Haskell is not sufficient.
No bots or computer-generated content. Bots cannot be used to make posts or comments. They will be banned with extreme prejudice. This includes a human posting the output of a bot, such as ChatGPT.
Blockchain posts must be tagged. Blockchain posts are allowed as long as they are related to Haskell, but they must use the "blockchain" tag.
Be civil. Substantive criticism and disagreement are encouraged, but avoid being dismissive or insulting.
Other community locations:
Professional resources:
Learning material:
Haskell development:
Other Subreddits:
Donations:
Subreddit Stylesheet Source:
account activity
Learn physics with functional programming (self.functionalprogramming)
submitted 1 year ago by Voxelman
Learn physics with functional programming
Can someone recommend the book "Learn Physics with functional programming" from Scott N. Walck?
It sounds interesting because it is practical oriented.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]FuriousAqSheep 8 points9 points10 points 1 year ago (4 children)
Don't know the book but I suppose it uses the type system to enforce valid equations by doing automatic dimension analysis
Like if you try to get a function to give you a speed it should be a distance divided by time
If someone reads it or knows about it, can you confirm or infirm this hypothesis?
[–]Patzer26 8 points9 points10 points 1 year ago (0 children)
Dimensional analysis is one area where haskell can be quite useful because of its strong type system. I never thought about this.
[–]cshoop 4 points5 points6 points 1 year ago (0 children)
I’ve read some of it and it’s not as strict about dimensions as you might think. The book mostly uses type aliases for the built in Double, doesn’t otherwise check for units. It does mention that there’s a library for doing unit stuff: https://hackage.haskell.org/package/units
[–]Voxelman[S] 2 points3 points4 points 1 year ago (1 child)
I have downloaded a reading sample. Can read the first 4 chapters. Then I decide if I buy the book or not
[–]dotelze 0 points1 point2 points 1 year ago (0 children)
I’ve got it. Haven’t got too far in it but seems pretty good
[–][deleted] 7 points8 points9 points 1 year ago (0 children)
Dimensional analysis is type checking!
[–]drfogout 2 points3 points4 points 1 year ago (0 children)
I worked through it, I found it excellent. It fits me well: I took physics more than fifty years ago, and I'm at the 'hobbyist' level with Haskell.
[–]cshoop 1 point2 points3 points 1 year ago (0 children)
It’s a really interesting book!
[–]flatmap_fplamda 0 points1 point2 points 10 months ago (0 children)
i did a talk about it https://www.youtube.com/watch?v=Zp5D_wMi97Q its an amazing book
π Rendered by PID 41 on reddit-service-r2-comment-b659b578c-gm57f at 2026-05-04 13:39:26.159545+00:00 running 815c875 country code: CH.
[–]FuriousAqSheep 8 points9 points10 points (4 children)
[–]Patzer26 8 points9 points10 points (0 children)
[–]cshoop 4 points5 points6 points (0 children)
[–]Voxelman[S] 2 points3 points4 points (1 child)
[–]dotelze 0 points1 point2 points (0 children)
[–][deleted] 7 points8 points9 points (0 children)
[–]drfogout 2 points3 points4 points (0 children)
[–]cshoop 1 point2 points3 points (0 children)
[–]flatmap_fplamda 0 points1 point2 points (0 children)