PolysemyCleanArchitecture
effectful
PolysemyCleanArchitecture | effectful | |
---|---|---|
4 | 21 | |
186 | 334 | |
- | 4.5% | |
0.0 | 8.0 | |
5 months ago | 4 days ago | |
Haskell | Haskell | |
Apache License 2.0 | 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.
PolysemyCleanArchitecture
-
What is the best web framework in the statically typed functional programming world?
Another benefit of its architecture is that it was easy to plug an algebraic effects library on it (Implementing Clean Architecture with Haskell and Polysemy).
-
While Learning Haskell Developing Project
since i am self learner im lost at haskell world. i need to direction start coding while learning haskell. i did google and find this project https://github.com/thma/PolysemyCleanArchitecture is it good? is it ultimate haskell project? need opinion before i spend my months to learn.
- 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
-
Real world applications with tagless-final, ReaderT, and three-layers
Nice article! Definitely check out this related blog post: https://github.com/thma/PolysemyCleanArchitecture
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?
clean-architecture-manga - :cyclone: Clean Architecture with .NET6, C#10 and React+Redux. Use cases as central organizing structure, completely testable, decoupled from frameworks
godot-haskell - Haskell bindings for GdNative
ribosome - A Neovim plugin host and framework for Haskell
cleff - Fast and concise extensible effects
polysemy-RandomFu
unliftio - The MonadUnliftIO typeclass for unlifting monads to IO
mixpanel-client - Haskell client implementation of mixpanel HTTP api
ghc-proposals - Proposed compiler and language changes for GHC and GHC/Haskell
algebraic-classes - Conversions between algebraic classes and F-algebras.
hpqtypes-effectful - Effectful bindings for hpqtypes
effect-zoo - Effect Zoo for Scala
Functional PHP - Primitives for functional programming in PHP