[Git][ghc/ghc][master] docs: fix internal import in getopt examples

Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC Commits: 8af260d0 by Nikolaos Chatzikonstantinou at 2025-08-06T08:37:23-04:00 docs: fix internal import in getopt examples This external-facing doc example shouldn't mention GHC internals when using 'fromMaybe'. - - - - - 1 changed file: - libraries/base/src/System/Console/GetOpt.hs Changes: ===================================== libraries/base/src/System/Console/GetOpt.hs ===================================== @@ -315,7 +315,7 @@ arguments:
module Opts1 where
import System.Console.GetOpt -> import GHC.Internal.Data.Maybe ( fromMaybe ) +> import Data.Maybe ( fromMaybe )
data Flag = Verbose | Version @@ -356,7 +356,7 @@ A different approach is to group the option values in a record of type module Opts2 where
import System.Console.GetOpt -> import GHC.Internal.Data.Maybe ( fromMaybe ) +> import Data.Maybe ( fromMaybe )
data Options = Options { optVerbose :: Bool
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8af260d0ea71876e963279b770006f29... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8af260d0ea71876e963279b770006f29... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Marge Bot (@marge-bot)