Best products from r/haskellquestions
We found 3 comments on r/haskellquestions discussing the most recommended products. We ran sentiment analysis on each of these comments to determine how redditors feel about different products. We found 3 products and ranked them based on the amount of positive reactions they received. Here are the top 20.
1. Type Theory and Formal Proof: An Introduction
- Cambridge University Press
Features:
> How long did it take you to learn haskell to a useful degree?
Useful Haskell is a much lower bar than social media Haskell: this excellent post shows the "Haskell Pyramid," where useful and practical code can be achieved without learning anything too crazy.
Here's a brief list of things you don't need to know to write useful Haskell:
why type checking is necessary andhow it is implemented in haskell.Here's some great resources for Useful Haskell:
---
I don't mean to suggest that an interest in the things you mentioned is bad or not worth pursuing -- they're really cool! But my study of category theory, type theory, etc. has not meaningfully improved my performance at my day job of writing Haskell.
The "entity3 gameState5 garbage" is more elegantly handled with the State/StateT monad. You may also want to check out the lens library. Lens + State monad is probably what you're looking for.
Check out [real world haskell chapter on monads (including State)] (http://book.realworldhaskell.org/read/monads.html) And google for some Lens tutorials online. I liked the chapters on State (and other monads) and the introduction to the Lens library in http://www.amazon.com/Beginning-Haskell-A-Project-Based-Approach/dp/1430262508
Also, you don't need to do:
let (entity, gameState') = createEntity gameState player
let square = createSquare (12 float2Double normalScale) (16 float2Double normalScale)
Instead do:
let (entity, gameState') = createEntity gameState player
square = createSquare (12 float2Double normalScale) (16 float2Double normalScale)
Get Programming With Haskell by Will Kurt