3 ms·
Haskell actually supports literate programming [0]. Oleg Kiselyov regularly writes examples of his ideas using it, e.g. [1], [2]. [0] https://wiki.haskell.org/
by Joker_vD 3y ago
Haskell actually supports literate programming [0]. Oleg Kiselyov regularly writes examples of his ideas using it, e.g. [1], [2].
[0] https://wiki.haskell.org/Literate_programming#Haskell_and_literate_programming https://wiki.haskell.org/Literate_programming#Haskell_and_li...
[1] https://okmij.org/ftp/Haskell/class-based-dispatch.lhs https://okmij.org/ftp/Haskell/class-based-dispatch.lhs
[2] https://okmij.org/ftp/Computation/lightweight-guarantees/eliminating-mult-array-bound-check.lhs https://okmij.org/ftp/Computation/lightweight-guarantees/eli...
- jmillikin 3y agoHaskell does not natively support literate programming -- it only allows the comment/code default to be swapped. The format named "literate Haskell" is basically just syntactic sugar for {- comment blocks -}. Literate programming requires the ability to decouple the ordering of code relative to the commentary. I wrote more about this at <https://news.ycombinator.com/item?id=35985835 https://news.ycombinator.com/item?id=35985835> and <https://john-millikin.com/software/anansi#history https://john-millikin.com/software/anansi#history>.