Sometimes it feels like magic that we can concatenate Text values in Haskell with a Semigroup instance and there is no IO in sight.
Then you look at the implementation and the magic is gone.
#Exercitium: Problemas de programación con Haskell de marzo de 2020. https://jaalonso.github.io/exercitium/2020/03 #Haskell #ProgramaciónFuncional #Matemáticas
Kwang's #Haskell Blog - Memoization in Haskell
"memoization is used widely in many programming languages, but it can’t be applied directly to Haskell because Haskell is pure and we don’t want to introduce impurity just to memoize a function. Fortunately, it is possible to memoize a function without side effects thanks to Haskell’s nature of lazy evaluation.
The following memoize function takes a function of type Int -> a and returns a memoized version of the same function. The trick is to turn a function into a value because, in Haskell, functions are not memoized but values are."
https://kseo.github.io/posts/2017-01-14-memoization-in-hasekll.html#:~:text=memoization%20is%20used,but%20values%20are.
@leean00 The Taskell task and project manager is written in Haskell which I'm unfortunately not familiar with. But let's see if Haskell folks can help you.
Issue 481 :: Haskell Weekly Newsletter
#Exercitium: Problemas de programación con Haskell de abril de 2020. https://jaalonso.github.io/exercitium/2020/04 #Haskell #ProgramaciónFuncional #Matemáticas
#haskell pretty print structured data, recommendations? I currently recurse over my structure, tracking indentation level. Works, but is definitely a little clumsy.
#haskell have a playground too