Home
last modified time | relevance | path

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

/dports/devel/hs-ormolu/ormolu-0.4.0.0/_cabal_deps/ghc-lib-parser-9.2.1.20211101/compiler/GHC/Types/
H A DLiteral.hs47 , isMinBound
582 isMinBound :: Platform -> Literal -> Bool
583 isMinBound _ (LitChar c) = c == minBound function
584 isMinBound platform (LitNumber nt i) = case nt of function
597 isMinBound _ _ = False function
/dports/devel/hs-hlint/hlint-3.3.4/_cabal_deps/ghc-lib-parser-9.0.1.20210324/compiler/GHC/Core/Opt/
H A DConstantFold.hs605 mkRuleFn platform Gt (Lit lit) _ | isMinBound platform lit = Just $ falseValInt platform
606 mkRuleFn platform Le (Lit lit) _ | isMinBound platform lit = Just $ trueValInt platform
607 mkRuleFn platform Ge _ (Lit lit) | isMinBound platform lit = Just $ trueValInt platform
608 mkRuleFn platform Lt _ (Lit lit) | isMinBound platform lit = Just $ falseValInt platform
615 isMinBound :: Platform -> Literal -> Bool
616 isMinBound _ (LitChar c) = c == minBound function
617 isMinBound platform (LitNumber nt i) = case nt of function
624 isMinBound _ _ = False function
/dports/devel/hs-haskell-language-server/haskell-language-server-1.4.0/_cabal_deps/ghc-lib-parser-8.10.7.20210828/compiler/prelude/
H A DPrelRules.hs566 mkRuleFn dflags Gt (Lit lit) _ | isMinBound dflags lit = Just $ falseValInt dflags
567 mkRuleFn dflags Le (Lit lit) _ | isMinBound dflags lit = Just $ trueValInt dflags
568 mkRuleFn dflags Ge _ (Lit lit) | isMinBound dflags lit = Just $ trueValInt dflags
569 mkRuleFn dflags Lt _ (Lit lit) | isMinBound dflags lit = Just $ falseValInt dflags
576 isMinBound :: DynFlags -> Literal -> Bool
577 isMinBound _ (LitChar c) = c == minBound function
578 isMinBound dflags (LitNumber nt i _) = case nt of function
585 isMinBound _ _ = False function
/dports/lang/ghc/ghc-8.10.7/compiler/prelude/
H A DPrelRules.hs566 mkRuleFn dflags Gt (Lit lit) _ | isMinBound dflags lit = Just $ falseValInt dflags
567 mkRuleFn dflags Le (Lit lit) _ | isMinBound dflags lit = Just $ trueValInt dflags
568 mkRuleFn dflags Ge _ (Lit lit) | isMinBound dflags lit = Just $ trueValInt dflags
569 mkRuleFn dflags Lt _ (Lit lit) | isMinBound dflags lit = Just $ falseValInt dflags
576 isMinBound :: DynFlags -> Literal -> Bool
577 isMinBound _ (LitChar c) = c == minBound function
578 isMinBound dflags (LitNumber nt i _) = case nt of function
585 isMinBound _ _ = False function
/dports/devel/hs-ormolu/ormolu-0.4.0.0/_cabal_deps/ghc-lib-parser-9.2.1.20211101/compiler/GHC/Core/Opt/
H A DConstantFold.hs1072 mkRuleFn platform Gt (Lit lit) _ | isMinBound platform lit = Just $ falseValInt platform
1073 mkRuleFn platform Le (Lit lit) _ | isMinBound platform lit = Just $ trueValInt platform
1074 mkRuleFn platform Ge _ (Lit lit) | isMinBound platform lit = Just $ trueValInt platform
1075 mkRuleFn platform Lt _ (Lit lit) | isMinBound platform lit = Just $ falseValInt platform