Commit 463c9a87 authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

Fix a broken link.

parent c05c3e87
......@@ -39,7 +39,7 @@ componentBuildInfo =
-- | Is a component buildable (i.e., not marked with @buildable: False@)?
-- See also this note in
-- "Distribution.Simple.LocalBuildInfo#buildable_vs_enabled_components".
-- "Distribution.Types.ComponentEnabledSpec#buildable_vs_enabled_components".
--
-- @since 1.26.0.0
--
......
......@@ -48,7 +48,7 @@ import Data.Maybe (isNothing)
-- | Describes what components are enabled by user-interaction.
-- See also this note in
-- "Distribution.Simple.LocalBuildInfo#buildable_vs_enabled_components".
-- "Distribution.Types.ComponentEnabledSpec#buildable_vs_enabled_components".
--
-- @since 1.26.0.0
data ComponentEnabledSpec
......@@ -67,14 +67,14 @@ defaultComponentEnabled :: ComponentEnabledSpec
defaultComponentEnabled = ComponentEnabledSpec False False
-- | Is this component enabled? See also this note in
-- "Distribution.Simple.LocalBuildInfo#buildable_vs_enabled_components".
-- "Distribution.Types.ComponentEnabledSpec#buildable_vs_enabled_components".
--
-- @since 1.26.0.0
componentEnabled :: ComponentEnabledSpec -> Component -> Bool
componentEnabled enabled = isNothing . componentDisabledReason enabled
-- | Is this component name enabled? See also this note in
-- "Distribution.Simple.LocalBuildInfo#buildable_vs_enabled_components".
-- "Distribution.Types.ComponentEnabledSpec#buildable_vs_enabled_components".
--
-- @since 1.26.0.0
componentNameEnabled :: ComponentEnabledSpec -> ComponentName -> Bool
......
......@@ -225,7 +225,7 @@ allLibraries p = maybeToList (library p) ++ subLibraries p
-- call the given function with the library build info as argument.
-- You probably want 'withLibLBI' if you have a 'LocalBuildInfo',
-- see the note in
-- "Distribution.Simple.LocalBuildInfo#buildable_vs_enabled_components"
-- "Distribution.Types.ComponentEnabledSpec#buildable_vs_enabled_components"
-- for more information.
withLib :: PackageDescription -> (Library -> IO ()) -> IO ()
withLib pkg_descr f =
......@@ -241,7 +241,7 @@ hasExes p = any (buildable . buildInfo) (executables p)
-- | Perform the action on each buildable 'Executable' in the package
-- description. You probably want 'withExeLBI' if you have a
-- 'LocalBuildInfo', see the note in
-- "Distribution.Simple.LocalBuildInfo#buildable_vs_enabled_components"
-- "Distribution.Types.ComponentEnabledSpec#buildable_vs_enabled_components"
-- for more information.
withExe :: PackageDescription -> (Executable -> IO ()) -> IO ()
withExe pkg_descr f =
......@@ -256,7 +256,7 @@ hasTests = any (buildable . testBuildInfo) . testSuites
-- | Perform an action on each buildable 'TestSuite' in a package.
-- You probably want 'withTestLBI' if you have a 'LocalBuildInfo', see the note in
-- "Distribution.Simple.LocalBuildInfo#buildable_vs_enabled_components"
-- "Distribution.Types.ComponentEnabledSpec#buildable_vs_enabled_components"
-- for more information.
withTest :: PackageDescription -> (TestSuite -> IO ()) -> IO ()
......@@ -272,7 +272,7 @@ hasBenchmarks = any (buildable . benchmarkBuildInfo) . benchmarks
-- | Perform an action on each buildable 'Benchmark' in a package.
-- You probably want 'withBenchLBI' if you have a 'LocalBuildInfo', see the note in
-- "Distribution.Simple.LocalBuildInfo#buildable_vs_enabled_components"
-- "Distribution.Types.ComponentEnabledSpec#buildable_vs_enabled_components"
-- for more information.
withBenchmark :: PackageDescription -> (Benchmark -> IO ()) -> IO ()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment