Searched refs:getSimpleIntegralLit (Results 1 – 1 of 1) sorted by relevance
172 warnAboutOverflowedLiterals dflags (getSimpleIntegralLit hsLit)295 getLHsIntegralLit (dL->L _ (HsLit _ lit)) = getSimpleIntegralLit lit307 getSimpleIntegralLit :: HsLit GhcTc -> Maybe (Integer, Name)308 getSimpleIntegralLit (HsInt _ IL{ il_value = i }) = Just (i, intTyConName) function309 getSimpleIntegralLit (HsIntPrim _ i) = Just (i, intPrimTyConName) function310 getSimpleIntegralLit (HsWordPrim _ i) = Just (i, wordPrimTyConName) function311 getSimpleIntegralLit (HsInt64Prim _ i) = Just (i, int64PrimTyConName) function312 getSimpleIntegralLit (HsWord64Prim _ i) = Just (i, word64PrimTyConName) function313 getSimpleIntegralLit (HsInteger _ i ty) function316 getSimpleIntegralLit _ = Nothing function