Simon Peyton Jones pushed to branch wip/spj-reinstallable-base at Glasgow Haskell Compiler / GHC Commits: a9950708 by Simon Peyton Jones at 2026-04-02T00:05:18+01:00 Add Real to known-key names [skip ci] - - - - - 2 changed files: - compiler/GHC/Builtin/Names.hs - libraries/base/src/GHC/KnownKeyNames.hs Changes: ===================================== compiler/GHC/Builtin/Names.hs ===================================== @@ -213,6 +213,7 @@ basicKnownKeyTable , (mkTcOcc "Bounded", boundedClassKey) , (mkTcOcc "Enum", enumClassKey) , (mkTcOcc "Integral", integralClassKey) + , (mkTcOcc "Real", realClassKey) , (mkTcOcc "Data", dataClassKey) , (mkTcOcc "Ix", ixClassKey) , (mkTcOcc "Alternative", alternativeClassKey) ===================================== libraries/base/src/GHC/KnownKeyNames.hs ===================================== @@ -29,7 +29,7 @@ module GHC.KnownKeyNames , (<>), mappend -- Numbers - , Num, Integral + , Num, Integral, Real , (-), negate, fromInteger, fromRational , mkRationalBase2, mkRationalBase10 @@ -64,10 +64,10 @@ import GHC.Internal.OverloadedLabels( fromLabel ) import GHC.Internal.Records( HasField, getField ) import qualified GHC.Internal.IsList as IL - {- Note [Known-key names and IsList] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Very annoyingly both Foldable and isList +Very annoyingly both the classes Foldable and IsList have a method `toList`. +we can't have two known-key names with the same OccName. -} isList_toList :: IL.IsList l => l -> [IL.Item l] View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a9950708ae6cfe0836b58f0bd2c2e5fe... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a9950708ae6cfe0836b58f0bd2c2e5fe... You're receiving this email because of your account on gitlab.haskell.org.