What are some languages based on Haskell? I know about Curry, Agda, Idris, and Disciple.
Name:
Anonymous2013-05-05 13:33
Instead of looking into more and more new obscure languages, I would say it's more beneficial to look into historic languages which are known to have made a difference.
In this case, look into what inspired Haskell instead: ML, Miranda, ...
And I also enjoyed scala. Scala supports full monad comprehensions with their for expressions. People call it loops, but that is fully retarded, it is much more powerful than a loop. For desugaring it uses concatMap in a class, which is the same as join . map
Looks a bit like this:
for {
user <- getUserById(id)
orders <- getOrdersForUser(user.email)
products <- getProductsForOrders(orders)
stock <- getStockForProducts(products)
} yield stock
Monad comprehensions are somewhat more powerful than the do notation, because your monad can actually change type.