Add CPP for pre 8.6 HsOverLabel
parent
d071534cad
commit
f6dae9ed0f
|
@ -55,7 +55,11 @@ layoutExpr lexpr@(L _ expr) = do
|
||||||
HsRecFld{} -> do
|
HsRecFld{} -> do
|
||||||
-- TODO
|
-- TODO
|
||||||
briDocByExactInlineOnly "HsRecFld" lexpr
|
briDocByExactInlineOnly "HsRecFld" lexpr
|
||||||
|
#if MIN_VERSION_ghc(8,6,0) /* ghc-8.6 */
|
||||||
HsOverLabel _ext _reboundFromLabel name ->
|
HsOverLabel _ext _reboundFromLabel name ->
|
||||||
|
#else
|
||||||
|
HsOverLabel _reboundFromLabel name ->
|
||||||
|
#endif
|
||||||
let label = FastString.unpackFS name
|
let label = FastString.unpackFS name
|
||||||
in docLit . Text.pack $ '#' : label
|
in docLit . Text.pack $ '#' : label
|
||||||
HsIPVar{} -> do
|
HsIPVar{} -> do
|
||||||
|
|
Loading…
Reference in New Issue