Support version 8.0 of OverloadedLabels

pull/244/head
Evan Rutledge Borden 2019-06-23 14:27:58 -05:00
parent f6dae9ed0f
commit 1b02393a9d
1 changed files with 3 additions and 1 deletions

View File

@ -57,8 +57,10 @@ layoutExpr lexpr@(L _ expr) = do
briDocByExactInlineOnly "HsRecFld" lexpr
#if MIN_VERSION_ghc(8,6,0) /* ghc-8.6 */
HsOverLabel _ext _reboundFromLabel name ->
#else
#elif MIN_VERSION_ghc(8,2,0) /* ghc-8.2 */
HsOverLabel _reboundFromLabel name ->
#else
HsOverLabel name ->
#endif
let label = FastString.unpackFS name
in docLit . Text.pack $ '#' : label