haskellweekly
effectful
haskellweekly | effectful | |
---|---|---|
4 | 21 | |
141 | 336 | |
0.7% | 5.1% | |
9.3 | 8.0 | |
5 days ago | 23 days ago | |
Haskell | Haskell | |
MIT License | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
haskellweekly
-
Haskell ecosystem questions.
7. https://haskell.pl-a.net and https://haskellweekly.news
-
Suitable open source projects to contribute to as a beginner.
The other suggestion is to look at https://haskellweekly.news/ and specifically at the 'Call for participation' section at the bottom of each issue.
-
2021 State of Haskell Survey
I added "n/a" as a pre-selected answer choice to all single-response questions. (See this commit.) That should allow you to undo accidentally answering a question.
-
Issue 274 :: Haskell Weekly newsletter
Oh no! I'm very sorry about that. The "X" was definitely meant as a placeholder. I must have forgotten to fill it in. It should be fixed just as soon as this commit is built and deployed: https://github.com/haskellweekly/haskellweekly/commit/5d052eaee9d2cff69f4a6e7c57051e7df139bc80
effectful
-
Haskell in Production: Standard Chartered
Also a much simpler alternative in my opinion to monad transformers is effectful:
https://github.com/haskell-effectful/effectful
Here's a talk on it:
https://www.youtube.com/watch?v=BUoYKBLOOrE
-
The "Services" design pattern
effectful got rid of all issues I listed (I expanded a little on it here).
-
effectful and polysemy users: How do you test? Any of "same as mtl", "novel ways enabled by effects", or "same but more efficiently because..."? Please share experiences
There is also a long document on Issues with the Transformer/mtl library.
-
Haskell ecosystem questions.
cats-effects -> https://github.com/haskell-effectful/effectful
-
How to Handle My Horrible Haskell: Global State
I think ReaderT over IO or an algebraic effect system that uses it under the hood like effectful is the way to go. However, you mentioned redux, so perhaps you'd be comfortable with organizing things using TEA (the elm architecture)? You would have actions that different components listen to , and your async stuff could be handled using subscriptions.
-
Real world applications with tagless-final, ReaderT, and three-layers
API for basic usage is very similar, but things quickly go south once you want to use higher order effects (i.e. effects that make use of the m type parameter). A lot of things then become very hard to write due to complex types or outright impossible (this issue is a good example - a reasonable thing to do that is very straightforward to write with effectful, apparently impossible to do with polysemy).
-
How to Lose Functional Programming at Work
> Lets say you have a huge overly-convoluted Haskell program. Somewhere deep down a call hierachy of pure functions you need to print something to the console. That is not easy to refactor.
> Or vice-versa you have a huge convoluted program where everything happens inside an IO monad because at some point something is written to the console. Now you realize you dont need to write to the console.
These problems are essentially completely resolved these days by a modern effect system like effectful. Basically, they allow you to do arbitrary effects deep down a call stack with minimal plumbing (you still have adjust the types, as you should: that's the point of effect tracking!) and also to remove effects, so you can easily convert between pure code and "effectful code that just so happens to do no effects".
https://github.com/haskell-effectful/effectful
-
Published my first Haskell library on Hackage: xdg-basedir-compliant
Also note that Polysemy has some really bad performance characteristics. Don't know how much of a problem it could be at such a small scale, but if you need to use an effect system, maybe something faster like effectful would be a better choice.
-
Effectful | Paweł Szulc | Lambda Days 2022
See also https://github.com/haskell-effectful/effectful/issues/99.
-
Monad transformer libraries
FYI, transformers and mtl have several subtle traps. You can read about them here.
What are some alternatives?
postgrest - REST API for any Postgres database
godot-haskell - Haskell bindings for GdNative
Hasura - Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
cleff - Fast and concise extensible effects
mtl-style-example - A small example of using mtl style to unit test effectful code
unliftio - The MonadUnliftIO typeclass for unlifting monads to IO
swarm - Resource gathering + programming game
ghc-proposals - Proposed compiler and language changes for GHC and GHC/Haskell
hpqtypes-effectful - Effectful bindings for hpqtypes
PolysemyCleanArchitecture - Showcasing how the Polysemy library can be used to implement a REST application conforming to the guidelines of the Clean Architecture model.
effect-zoo - Effect Zoo for Scala
Functional PHP - Primitives for functional programming in PHP