Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit a7dcf13

Browse files
committed
Reformat with fourmolu
Using previously-added configuration and `fourmolu -i .` Note that we exclude the test-cases (`./{hoogle,html-hypsrc,latex}-test`) as they are sensitive to formatting.
1 parent 151b173 commit a7dcf13

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+11095
-8918
lines changed
Lines changed: 58 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
-----------------------------------------------------------------------------
2+
3+
-----------------------------------------------------------------------------
4+
25
-- |
36
-- Module : Documentation.Haddock
47
-- Copyright : (c) David Waern 2010
@@ -10,79 +13,79 @@
1013
--
1114
-- The Haddock API: A rudimentary, highly experimental API exposing some of
1215
-- the internals of Haddock. Don't expect it to be stable.
13-
-----------------------------------------------------------------------------
14-
module Documentation.Haddock (
15-
16-
-- * Interface
17-
Interface(..),
18-
InstalledInterface(..),
19-
toInstalledIface,
20-
createInterfaces,
21-
processModules,
16+
module Documentation.Haddock
17+
( -- * Interface
18+
Interface (..)
19+
, InstalledInterface (..)
20+
, toInstalledIface
21+
, createInterfaces
22+
, processModules
2223

23-
-- * Export items & declarations
24-
ExportItem(..),
25-
DocForDecl,
26-
FnArgsDoc,
24+
-- * Export items & declarations
25+
, ExportItem (..)
26+
, DocForDecl
27+
, FnArgsDoc
2728

28-
-- * Cross-referencing
29-
LinkEnv,
30-
DocName(..),
29+
-- * Cross-referencing
30+
, LinkEnv
31+
, DocName (..)
3132

32-
-- * Instances
33-
DocInstance,
34-
InstHead,
33+
-- * Instances
34+
, DocInstance
35+
, InstHead
3536

36-
-- * Documentation comments
37-
Doc,
38-
MDoc,
39-
DocH(..),
40-
Example(..),
41-
Hyperlink(..),
42-
DocMarkup,
43-
DocMarkupH(..),
44-
Documentation(..),
45-
ArgMap,
46-
WarningMap,
47-
DocMap,
48-
HaddockModInfo(..),
49-
markup,
37+
-- * Documentation comments
38+
, Doc
39+
, MDoc
40+
, DocH (..)
41+
, Example (..)
42+
, Hyperlink (..)
43+
, DocMarkup
44+
, DocMarkupH (..)
45+
, Documentation (..)
46+
, ArgMap
47+
, WarningMap
48+
, DocMap
49+
, HaddockModInfo (..)
50+
, markup
5051

51-
-- * Interface files
52-
InterfaceFile(..),
53-
readInterfaceFile,
54-
freshNameCache,
52+
-- * Interface files
53+
, InterfaceFile (..)
54+
, readInterfaceFile
55+
, freshNameCache
5556

56-
-- * Flags and options
57-
Flag(..),
58-
DocOption(..),
57+
-- * Flags and options
58+
, Flag (..)
59+
, DocOption (..)
5960

60-
-- * Error handling
61-
HaddockException(..),
61+
-- * Error handling
62+
, HaddockException (..)
6263

63-
-- * Program entry point
64-
haddock,
65-
haddockWithGhc,
66-
getGhcDirs,
67-
withGhc
68-
) where
64+
-- * Program entry point
65+
, haddock
66+
, haddockWithGhc
67+
, getGhcDirs
68+
, withGhc
69+
) where
6970

7071
import Documentation.Haddock.Markup (markup)
71-
import Haddock.InterfaceFile
72+
import Haddock
7273
import Haddock.Interface
73-
import Haddock.Types
74+
import Haddock.InterfaceFile
7475
import Haddock.Options
75-
import Haddock
76-
76+
import Haddock.Types
7777

7878
-- | Create 'Interface' structures from a given list of Haddock command-line
7979
-- flags and file or module names (as accepted by 'haddock' executable). Flags
8080
-- that control documentation generation or show help or version information
8181
-- are ignored.
8282
createInterfaces
83-
:: [Flag] -- ^ A list of command-line flags
84-
-> [String] -- ^ File or module names
85-
-> IO [Interface] -- ^ Resulting list of interfaces
83+
:: [Flag]
84+
-- ^ A list of command-line flags
85+
-> [String]
86+
-- ^ File or module names
87+
-> IO [Interface]
88+
-- ^ Resulting list of interfaces
8689
createInterfaces flags modules = do
8790
(_, ifaces, _) <- withGhc flags (readPackagesAndProcessModules flags modules)
8891
return ifaces

haddock-api/src/Haddock/Backends/HaddockDB.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
-----------------------------------------------------------------------------
2+
3+
-----------------------------------------------------------------------------
4+
25
-- |
36
-- Module : Haddock.Backends.HaddockDB
47
-- Copyright : (c) Simon Marlow 2003
@@ -7,7 +10,6 @@
710
-- Maintainer : haddock@projects.haskell.org
811
-- Stability : experimental
912
-- Portability : portable
10-
-----------------------------------------------------------------------------
1113
module Haddock.Backends.HaddockDB (ppDocBook) where
1214

1315
{-
@@ -23,6 +25,7 @@ import Text.PrettyPrint
2325

2426
ppDocBook :: a
2527
ppDocBook = error "not working"
28+
2629
{-
2730
ppDocBook :: FilePath -> [(Module, Interface)] -> String
2831
ppDocBook odir mods = render (ppIfaces mods)

0 commit comments

Comments
 (0)