@@ -44,6 +44,7 @@ import Dhall.Docs.Embedded
44
44
import Dhall.Docs.Html
45
45
import Dhall.Docs.Markdown
46
46
import Dhall.Docs.Store
47
+ import Dhall.Docs.Util (fileAnIssue )
47
48
import Dhall.Parser
48
49
( Header (.. )
49
50
, ParseError (.. )
@@ -439,26 +440,6 @@ addHtmlExt :: Path Rel File -> Path Rel File
439
440
addHtmlExt relFile =
440
441
Data.Maybe. fromMaybe (fileAnIssue " addHtmlExt" ) $ Path. addExtension " .html" relFile
441
442
442
- -- | If you're wondering the GitHub query params for issue creation:
443
- -- https://docs.github.com/en/github/managing-your-work-on-github/about-automation-for-issues-and-pull-requests-with-query-parameters
444
- fileAnIssue :: Text -> a
445
- fileAnIssue titleName =
446
- error $ " \ESC [1;31mError\ESC [0m Documentation generator bug\n\n " <>
447
-
448
- " Explanation: This error message means that there is a bug in the " <>
449
- " Dhall Documentation generator. You didn't did anything wrong, but " <>
450
- " if you would like to see this problem fixed then you should report " <>
451
- " the bug at:\n\n " <>
452
-
453
- " https://github.com/dhall-lang/dhall-haskell/issues/new?labels=dhall-docs,bug\n\n " <>
454
-
455
- " explaining your issue and add \" " <> Data.Text. unpack titleName <> " \" as error code " <>
456
- " so we can find the proper location in the source code where the error happened\n\n " <>
457
-
458
- " Please, also include your package in the issue. It can be in:\n\n " <>
459
- " * A compressed archive (zip, tar, etc)\n " <>
460
- " * A git repository, preferably with a commit reference"
461
-
462
443
{-| Generate all of the docs for a package. This function does all the `IO ()`
463
444
related tasks to call `generateDocsPure`
464
445
-}
0 commit comments