Skip to content

Formatting duplicates haddock comments #282

@samtay

Description

@samtay

On stylish-haskell version 0.11.0.0:
Starting with

-- | Game state
data Game = Game { _board    :: Board -- ^ Board state
                 , _time     :: Int   -- ^ Time elapsed
                 , _paused   :: Bool  -- ^ Playing vs. paused
                 , _speed    :: Float -- ^ Speed in [0..1]
                 , _interval :: TVar Int -- ^ Interval kept in TVar
                 , _focus    :: F.FocusRing Name -- ^ Keeps track of grid focus
                 , _selected :: Cell -- ^ Keeps track of cell focus
                 }

after parsing (with default record settings):

-- | Game state
data Game
  = Game
      { _board    :: Board -- ^ Board state
        -- ^ Time elapsed
      , _time     :: Int -- ^ Time elapsed
        -- ^ Playing vs. paused
      , _paused   :: Bool -- ^ Playing vs. paused
        -- ^ Speed in [0..1]
      , _speed    :: Float -- ^ Speed in [0..1]
        -- ^ Interval kept in TVar
      , _interval :: TVar Int -- ^ Interval kept in TVar
        -- ^ Keeps track of grid focus
      , _focus    :: F.FocusRing Name -- ^ Keeps track of grid focus
        -- ^ Keeps track of cell focus
      , _selected :: Cell -- ^ Keeps track of cell focus
      }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions