short module descriptions (#1690)

Towards #1689

The [`Description:` field](https://haskell-haddock.readthedocs.io/en/latest/markup.html#the-module-description) in a module's toplevel haddock will be displayed on the Contents page.

![Screenshot from 2023-12-14 20-55-26](https://github.com/swarm-game/swarm/assets/261693/841f2834-8273-4394-b764-8f5f4479b9c4)
This commit is contained in:
Karl Ostmo 2023-12-16 11:05:27 -08:00 committed by GitHub
parent 53e6f35c0e
commit 7fa97b6461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
23 changed files with 28 additions and 1 deletions

View File

@ -3,6 +3,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: Application entry point
--
-- Main entry point for the Swarm application.
module Swarm.App where

View File

@ -2,6 +2,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: Constants used throughout the UI and game
--
-- Constants used throughout the UI and game.
module Swarm.Constant where

View File

@ -3,6 +3,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: keywords for doc gen and testing
--
-- Collect keywords for documentation generation and testing.
module Swarm.Doc.Keyword (

View File

@ -2,6 +2,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: Pedagogical soundness of tutorials
--
-- Assess pedagogical soundness of the tutorials.
--

View File

@ -2,6 +2,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: Doc markup utilities
--
-- Utilities for generating doc markup
module Swarm.Doc.Util where

View File

@ -1,3 +1,6 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: Effect system
module Swarm.Effect (
module X,
)

View File

@ -4,6 +4,9 @@
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE UndecidableInstances #-}
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: Time effects
module Swarm.Effect.Time where
import Control.Algebra

View File

@ -2,6 +2,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: Achievements player obtained
--
-- Metadata about achievements that the player has obtained.
module Swarm.Game.Achievement.Attainment (

View File

@ -1,5 +1,6 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: All achievements enumerated
--
-- Definitions of all possible achievements.
module Swarm.Game.Achievement.Definitions (

View File

@ -2,6 +2,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: Flavor text
--
-- Flavor text about all defined achievements.
module Swarm.Game.Achievement.Description where

View File

@ -2,6 +2,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: Achievements load/save
--
-- Load/save logic for achievements.
-- Each achievement is saved to its own file to better

View File

@ -4,6 +4,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: State machine of Swarm's interpreter
--
-- The Swarm interpreter uses a technique known as a
-- <https://matt.might.net/articles/cesk-machines/ CESK machine> (if

View File

@ -6,6 +6,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: TUI rendering of entities
--
-- Utilities for describing how to display in-game entities in the TUI.
module Swarm.Game.Display (

View File

@ -3,6 +3,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: Object that exists in the world
--
-- An 'Entity' represents an object that exists in the world. Each
-- entity has a way to be displayed, some metadata such as a name and

View File

@ -5,6 +5,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: Locations and headings
--
-- Locations and headings.
module Swarm.Game.Location (

View File

@ -3,6 +3,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: Entity transformations, not limited to "crafting"
--
-- A recipe represents some kind of process for transforming
-- some input entities into some output entities.

View File

@ -2,6 +2,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: Fetching game data
--
-- Various utilities related to loading game data files.
module Swarm.Game.ResourceLoading where

View File

@ -7,6 +7,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: Standalone worlds
--
-- Scenarios are standalone worlds with specific starting and winning
-- conditions, which can be used both for building interactive

View File

@ -4,6 +4,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: Goals of scenario
module Swarm.Game.Scenario.Objective where
import Control.Applicative ((<|>))

View File

@ -5,6 +5,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: Game-related state and utilities
--
-- Definition of the record holding all the game-related state, and various related
-- utility functions.

View File

@ -5,11 +5,12 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: Stepping robot CESK machines
--
-- Facilities for stepping the robot CESK machines, /i.e./ the actual
-- interpreter for the Swarm language.
--
-- ** Note on the IO:
-- == Note on the IO:
--
-- The only reason we need @IO@ is so that robots can run programs
-- loaded from files, via the 'Swarm.Language.Syntax.Run' command.

View File

@ -6,6 +6,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: Robot command logic
--
-- Implementation of robot commands
module Swarm.Game.Step.Const where

View File

@ -5,6 +5,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
-- Description: Grid on which the game takes place
--
-- A /world/ refers to the grid on which the game takes place, and the
-- things in it (besides robots). A world has a base, immutable