Home
last modified time | relevance | path

Searched refs:getSimpleIntegralLit (Results 1 – 1 of 1) sorted by relevance

/dports/lang/ghc/ghc-8.10.7/compiler/deSugar/
H A DMatchLit.hs172 warnAboutOverflowedLiterals dflags (getSimpleIntegralLit hsLit)
295 getLHsIntegralLit (dL->L _ (HsLit _ lit)) = getSimpleIntegralLit lit
307 getSimpleIntegralLit :: HsLit GhcTc -> Maybe (Integer, Name)
308 getSimpleIntegralLit (HsInt _ IL{ il_value = i }) = Just (i, intTyConName) function
309 getSimpleIntegralLit (HsIntPrim _ i) = Just (i, intPrimTyConName) function
310 getSimpleIntegralLit (HsWordPrim _ i) = Just (i, wordPrimTyConName) function
311 getSimpleIntegralLit (HsInt64Prim _ i) = Just (i, int64PrimTyConName) function
312 getSimpleIntegralLit (HsWord64Prim _ i) = Just (i, word64PrimTyConName) function
313 getSimpleIntegralLit (HsInteger _ i ty) function
316 getSimpleIntegralLit _ = Nothing function