packages feed

tilia-0.2.0.0: corpora/vendored/cpp/declaration/pattern-synonym-body-in-each-branch-out'.hs

{-# LANGUAGE CPP #-}
{-# LANGUAGE PatternSynonyms #-}

-- The arrow of a pattern synonym whose body each branch writes stays at
-- the end of its head.
module Graph.Trace.Internal.GhcFacade (pattern HsSig') where

pattern HsSig' ty <-
#if MIN_VERSION_ghc(9,2,0)
    L _ (HsSig _ _ ty)
    where
        HsSig' ty = L noSrcSpanA $ HsSig NoExtField (HsOuterImplicit []) ty

pattern HsSig' :: LHsType GhcRn -> LHsSigType Ghc.GhcRn
#else
    HsIB _ ty
    where
        HsSig' ty = HsIB [] ty

pattern HsSig' :: LHsType GhcRn -> HsImplicitBndrs GhcRn (LHsType GhcRn)
#endif