Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
haddock
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stephen Judkins
haddock
Commits
41d98467
Commit
41d98467
authored
6 years ago
by
Alec Theriault
Browse files
Options
Downloads
Plain Diff
Merge branch 'ghc-8.4' into ghc-8.6
parents
44169f4b
9712d889
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGES.md
+4
-0
4 additions, 0 deletions
CHANGES.md
doc/markup.rst
+3
-3
3 additions, 3 deletions
doc/markup.rst
haddock-api/src/Haddock.hs
+8
-3
8 additions, 3 deletions
haddock-api/src/Haddock.hs
haddock-api/src/Haddock/Interface.hs
+1
-0
1 addition, 0 deletions
haddock-api/src/Haddock/Interface.hs
with
16 additions
and
6 deletions
CHANGES.md
+
4
−
0
View file @
41d98467
## TBA
*
Make
`--package-version`
optional for
`--hoogle`
(#899)
## Changes in version 2.21.0
*
Overhaul handling of data declarations in XHTML and LaTeX. Adds support for
...
...
This diff is collapsed.
Click to expand it.
doc/markup.rst
+
3
−
3
View file @
41d98467
...
...
@@ -776,14 +776,14 @@ Special Characters
~~~~~~~~~~~~~~~~~~
The following characters have special meanings in documentation
comments: ``\
\
``, ``/``, ``'``, ``
\
```, ``"``, ``@``, ``<``, ``$``. To insert a
comments: ``\``, ``/``, ``'``, `````, ``"``, ``@``, ``<``, ``$``
, ``#``
. To insert a
literal occurrence of one of these special characters, precede it with a
backslash (``\
\
``).
backslash (``\``).
Additionally, the character ``>`` has a special meaning at the beginning
of a line, and the following characters have special meanings at the
beginning of a paragraph: ``*``, ``-``. These characters can also be
escaped using ``\
\
``.
escaped using ``\``.
Furthermore, the character sequence ``>>>`` has a special meaning at the
beginning of a line. To escape it, just prefix the characters in the
...
...
This diff is collapsed.
Click to expand it.
haddock-api/src/Haddock.hs
+
8
−
3
View file @
41d98467
...
...
@@ -48,6 +48,7 @@ import Control.Exception
import
Data.Maybe
import
Data.IORef
import
Data.Map
(
Map
)
import
Data.Version
(
makeVersion
)
import
qualified
Data.Map
as
Map
import
System.IO
import
System.Exit
...
...
@@ -363,9 +364,13 @@ render dflags flags sinceQual qual ifaces installedIfaces extSrcMap = do
-- might want to fix that if/when these two get some work on them
when
(
Flag_Hoogle
`
elem
`
flags
)
$
do
case
pkgNameVer
of
(
Just
(
PackageName
pkgNameFS
),
Just
pkgVer
)
->
let
pkgNameStr
|
unpackFS
pkgNameFS
==
"main"
&&
title
/=
[]
=
title
|
otherwise
=
unpackFS
pkgNameFS
(
Just
(
PackageName
pkgNameFS
),
mpkgVer
)
->
let
pkgNameStr
|
unpackFS
pkgNameFS
==
"main"
&&
title
/=
[]
=
title
|
otherwise
=
unpackFS
pkgNameFS
pkgVer
=
fromMaybe
(
makeVersion
[]
)
mpkgVer
in
ppHoogle
dflags'
pkgNameStr
pkgVer
title
(
fmap
_doc
prologue
)
visibleIfaces
odir
_
->
putStrLn
.
unlines
$
...
...
This diff is collapsed.
Click to expand it.
haddock-api/src/Haddock/Interface.hs
+
1
−
0
View file @
41d98467
...
...
@@ -84,6 +84,7 @@ processModules
processModules
verbosity
modules
flags
extIfaces
=
do
#
if
defined
(
mingw32_HOST_OS
)
-- Avoid internal error: <stderr>: hPutChar: invalid argument (invalid character)' non UTF-8 Windows
liftIO
$
hSetEncoding
stdout
$
mkLocaleEncoding
TransliterateCodingFailure
liftIO
$
hSetEncoding
stderr
$
mkLocaleEncoding
TransliterateCodingFailure
#
endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment