3 ms·
There's little need to reorder Haskell code because you can define things in any order. The literate programming tangle process mainly exists to remove Pascal'
by fanf2 10y ago
There's little need to reorder Haskell code because you can define things in any order.
The literate programming tangle process mainly exists to remove Pascal's order restrictions.
- rekado 10y agoReordering is still useful in Haskell. Just two examples for order dependent things in Haskell: top-level Template Haskell splicing; imports and GHC feature comments. It can be nice to have a single document explaining the whole project, producing individual source files upon tangling. For this approach you need control over order and target files. "Literate Haskell" is hardly more than a reversal of the meaning of comments and code.