ApiAnnotations : strings in warnings do not return SourceText
ApiAnnotations : strings in warnings do not return SourceText

The strings used in a WARNING pragma are captured via

strings :: { Located ([AddAnn],[Located FastString]) }
    : STRING { sL1 $1 ([],[L (gl $1) (getSTRING $1)]) }
..

The STRING token has a method getSTRINGs that returns the original
source text for a string.

A warning of the form

{-# WARNING Logic
          , mkSolver
          , mkSimpleSolver
          , mkSolverForLogic
          , solverSetParams
          , solverPush
          , solverPop
          , solverReset
          , solverGetNumScopes
          , solverAssertCnstr
          , solverAssertAndTrack
          , solverCheck
          , solverCheckAndGetModel
          , solverGetReasonUnknown
          "New Z3 API support is still incomplete and fragile: \
          \you may experience segmentation faults!"
  #-}

returns the concatenated warning string rather than the original source.

haskell/haddock,haskell/haddock,mrBliss/haddock,mrBliss/haddock,haskell/haddock,Fuuzetsu/haddock,Helkafen/haddock,haskell/haddock,niteria/haddock,mrBliss/haddock,idontgetoutmuch/haddock,Fuuzetsu/haddock,idontgetoutmuch/haddock,haskell/haddock,Fuuzetsu/haddock,randen/haddock,randen/haddock,Helkafen/haddock,randen/haddock,Fuuzetsu/haddock,niteria/haddock,Helkafen/haddock,idontgetoutmuch/haddock,niteria/haddock