Notes on Haskell Programming (Part 6): Understanding Main.hs vs. Main.lhs
Автор: KIANMENG ANG
Загружено: 2025-12-16
Просмотров: 0
Описание:
Generated by NotebookLM based on this blog post: https://www.kianmeng.org/2025/12/note...
The provided text, an excerpt from "Notes on Haskell Programming (Part 6): Understanding Main.hs vs. Main.lhs," explores the conventions surrounding the main module file in a Haskell executable, specifically when prompted by the Cabal build tool. The author compares the two primary options for the entry point: the standard Main.hs and the Literate Programming (LP) alternative, Main.lhs. Main.hs is identified as the default choice, where all text is treated as code unless explicitly commented out. Conversely, Main.lhs utilises the Bird style, where lines prefixed with > are interpreted as code, allowing the file to be focused more on documentation and prose. The post also briefly addresses selecting an alternative filename, such as Server.hs, via the "Other (specify)" option, provided the file contains the necessary main function.
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: