Skip to content

Examples for (un)escapeArgs are ill-typed in GHC.ResponseFile docs

Examples for (un)escapeArgs are ill-typed in GHC.ResponseFile docs:

-- > unescapeArgs "hello\\ \\\"world\\\"\n" == escapeArgs "hello \"world\""
unescapeArgs :: String -> [String]

https://gitlab.haskell.org/ghc/ghc/-/blob/3fb1afea019422292954785575902c62473e93e3/libraries/base/GHC/ResponseFile.hs#L80

-- > unescapeArgs "hello\\ \\\"world\\\"\\n" == escapeArgs "hello \"world\""
escapeArgs :: [String] -> String

https://gitlab.haskell.org/ghc/ghc/-/blob/3fb1afea019422292954785575902c62473e93e3/libraries/base/GHC/ResponseFile.hs#L99

Location of documentation issue: the Haddocks of base.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information