Skip to content

Commit

Permalink
this is what snark looks like Seth.
Browse files Browse the repository at this point in the history
  • Loading branch information
fommil committed Dec 6, 2018
1 parent c221b39 commit 010caec
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions manuscript/backmatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,14 @@ explicitly, which is more boilerplate but makes the code easier to read:
println line
~~~~~~~~

Whereas in Scala this encoding may be called *Finally Tagless*, in Haskell it is
known as MTL style. Without going into details, some Scala developers didn't
understand a research paper about the performance benefits of [Generalised ADTs
in Haskell](http://okmij.org/ftp/tagless-final/index.html#tagless-final).

An alternative to MTL style are *Extensible Effects*, also known as [Free Monad
style](http://okmij.org/ftp/Haskell/extensible/more.pdf).


## Modules

Expand Down
8 changes: 8 additions & 0 deletions manuscript/book.org
Original file line number Diff line number Diff line change
Expand Up @@ -17026,6 +17026,14 @@ echo Console{readln, println} = do line <- readln
println line
#+END_SRC

Whereas in Scala this encoding may be called /Finally Tagless/, in Haskell it is
known as MTL style. Without going into details, some Scala developers didn't
understand a research paper about the performance benefits of [[http://okmij.org/ftp/tagless-final/index.html#tagless-final][Generalised ADTs
in Haskell]].

An alternative to MTL style are /Extensible Effects/, also known as [[http://okmij.org/ftp/Haskell/extensible/more.pdf][Free Monad
style]].

*** Modules

Haskell source code is arranged into hierarchical modules with the restriction
Expand Down

0 comments on commit 010caec

Please sign in to comment.