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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--fromRational",
|
| 4 |
+
"poly_type": "Ad-hoc",
|
| 5 |
+
"signature": "fromRational :: Fractional a => Rational -> a",
|
| 6 |
+
"code": "fromRational (x:%y) = fromInteger x % fromInteger y",
|
| 7 |
+
"dependencies": [
|
| 8 |
+
"fromInteger :: Num a => Integer -> a",
|
| 9 |
+
"(%) :: (Integral a) => a -> a -> Ratio a",
|
| 10 |
+
"data Ratio a = !a :% !a",
|
| 11 |
+
"type Rational = Ratio Integer"
|
| 12 |
+
]
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Generics.hs--liftA2-Maybe",
|
| 16 |
+
"poly_type": "Parametric",
|
| 17 |
+
"signature": "liftA2 :: (a1 -> a2 -> a3) -> Maybe a1 -> Maybe a2 -> Maybe a3",
|
| 18 |
+
"code": "liftA2 f (Just x) (Just y) = Just (f x y)\nliftA2 _ _ _ = Nothing",
|
| 19 |
+
"dependencies": [
|
| 20 |
+
"data Maybe a = Nothing | Just a"
|
| 21 |
+
]
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/System/IO.hs--interact",
|
| 25 |
+
"poly_type": "Monomorphic",
|
| 26 |
+
"signature": "interact :: (String -> String) -> IO ()",
|
| 27 |
+
"code": "interact f = getContents >>= \\s -> putStr (f s)",
|
| 28 |
+
"dependencies": [
|
| 29 |
+
"putStr :: String -> IO ()",
|
| 30 |
+
"getContents :: IO String",
|
| 31 |
+
"(>>=) :: IO a -> (a -> IO b) -> IO b"
|
| 32 |
+
]
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Base.hs--(++)",
|
| 36 |
+
"poly_type": "Parametric",
|
| 37 |
+
"signature": "(++) :: [a] -> [a] -> [a]",
|
| 38 |
+
"code": "(++) (x:xs) ys = x : xs ++ ys\n(++) [] ys = ys",
|
| 39 |
+
"dependencies": []
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--succ-Ordering",
|
| 43 |
+
"poly_type": "Monomorphic",
|
| 44 |
+
"signature": "succ :: Ordering -> Ordering",
|
| 45 |
+
"code": "succ LT = EQ\nsucc EQ = GT\nsucc GT = error \"bad argument\"",
|
| 46 |
+
"dependencies": [
|
| 47 |
+
"data Ordering = LT | EQ | GT"
|
| 48 |
+
]
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Num.hs--(-)",
|
| 52 |
+
"poly_type": "Ad-hoc",
|
| 53 |
+
"signature": "(-) :: Num a => a -> a -> a",
|
| 54 |
+
"code": "x - y = x + negate y",
|
| 55 |
+
"dependencies": [
|
| 56 |
+
"(+) :: Num a => a -> a -> a",
|
| 57 |
+
"negate :: Num a => a -> a"
|
| 58 |
+
]
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--fromIntegral",
|
| 62 |
+
"poly_type": "Ad-hoc",
|
| 63 |
+
"signature": "fromIntegral :: (Integral a, Num b) => a -> b",
|
| 64 |
+
"code": "fromIntegral = fromInteger . toInteger",
|
| 65 |
+
"dependencies": [
|
| 66 |
+
"fromInteger :: Num a => Integer -> a",
|
| 67 |
+
"toInteger :: Integral a => a -> Integer",
|
| 68 |
+
"(.) :: (b -> c) -> (a -> b) -> a -> c"
|
| 69 |
+
]
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Foldable.hs--mapM_",
|
| 73 |
+
"poly_type": "Ad-hoc",
|
| 74 |
+
"signature": "mapM_ :: (Foldable t, Monad m) => (a -> m b) -> t a -> m ()",
|
| 75 |
+
"code": "mapM_ f = foldr c (return ())\n where c x k = f x >> k",
|
| 76 |
+
"dependencies": [
|
| 77 |
+
"(>>) :: Monad m => m a -> m b -> m b",
|
| 78 |
+
"foldr :: Foldable t => (a -> b -> b) -> b -> t a -> b",
|
| 79 |
+
"return :: Monad m => a -> m a"
|
| 80 |
+
]
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Foldable.hs--product",
|
| 84 |
+
"poly_type": "Ad-hoc",
|
| 85 |
+
"signature": "product :: (Foldable t, Num a) => t a -> a",
|
| 86 |
+
"code": "product = getProduct #. foldMap' Product",
|
| 87 |
+
"dependencies": [
|
| 88 |
+
"getProduct :: Product a -> a",
|
| 89 |
+
"(#.) :: Coercible b c => (b -> c) -> (a -> b) -> (a -> c)",
|
| 90 |
+
"foldMap' :: Monoid m => (a -> m) -> t a -> m",
|
| 91 |
+
"newtype Product a = Product {getProduct :: a}"
|
| 92 |
+
]
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/OldList.hs--lines",
|
| 96 |
+
"poly_type": "Monomorphic",
|
| 97 |
+
"signature": "lines :: String -> [String]",
|
| 98 |
+
"code": "lines emptyStr = []\nlines s = cons (case break (== newLine) s of\n (l, s') -> (l, case s' of\n [] -> []\n _:s'' -> lines s''))\n where\n cons ~(h, t) = h : t",
|
| 99 |
+
"dependencies": [
|
| 100 |
+
"break :: (a -> Bool) -> [a] -> ([a],[a])",
|
| 101 |
+
"emptyStr :: String",
|
| 102 |
+
"newLine :: Char",
|
| 103 |
+
"(==) :: Eq a => a -> a -> Bool"
|
| 104 |
+
]
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/System/IO.hs--putChar",
|
| 108 |
+
"poly_type": "Monomorphic",
|
| 109 |
+
"signature": "putChar :: Char -> IO ()",
|
| 110 |
+
"code": "putChar c = hPutChar stdout c",
|
| 111 |
+
"dependencies": [
|
| 112 |
+
"hPutChar :: Handle -> Char -> IO ()",
|
| 113 |
+
"stdout :: Handle"
|
| 114 |
+
]
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--enumFromThen",
|
| 118 |
+
"poly_type": "Ad-hoc",
|
| 119 |
+
"signature": "enumFromThen :: Enum a => a -> a -> [a]",
|
| 120 |
+
"code": "enumFromThen x y = map toEnum [fromEnum x, fromEnum y ..]",
|
| 121 |
+
"dependencies": [
|
| 122 |
+
"map :: (a -> b) -> [a] -> [b]",
|
| 123 |
+
"toEnum :: Enum a => Int -> a",
|
| 124 |
+
"fromEnum :: Enum a => a -> Int"
|
| 125 |
+
]
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--pred-Bool",
|
| 129 |
+
"poly_type": "Monomorphic",
|
| 130 |
+
"signature": "pred :: Bool -> Bool",
|
| 131 |
+
"code": "pred True = False\npred False = error \"bad argument\"",
|
| 132 |
+
"dependencies": [
|
| 133 |
+
"data Bool = False | True"
|
| 134 |
+
]
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Generics.hs--pure-[]",
|
| 138 |
+
"poly_type": "Parametric",
|
| 139 |
+
"signature": "pure :: a -> [a]",
|
| 140 |
+
"code": "pure x = [x]",
|
| 141 |
+
"dependencies": []
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Tuple.hs--snd",
|
| 145 |
+
"poly_type": "Parametric",
|
| 146 |
+
"signature": "snd :: (a,b) -> b",
|
| 147 |
+
"code": "snd (_,y) = y",
|
| 148 |
+
"dependencies": []
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--span",
|
| 152 |
+
"poly_type": "Parametric",
|
| 153 |
+
"signature": "span :: (a -> Bool) -> [a] -> ([a],[a])",
|
| 154 |
+
"code": "span _ xs@[] = (xs, xs)\nspan p xs@(x:xs')\n | p x = let (ys,zs) = span p xs' in (x:ys,zs)\n | otherwise = ([],xs)",
|
| 155 |
+
"dependencies": []
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--scanr",
|
| 159 |
+
"poly_type": "Parametric",
|
| 160 |
+
"signature": "scanr :: (a -> b -> b) -> b -> [a] -> [b]",
|
| 161 |
+
"code": "scanr _ q0 [] = [q0]\nscanr f q0 (x:xs) = f x q : qs\n where qs@(q:_) = scanr f q0 xs",
|
| 162 |
+
"dependencies": []
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"task_id": "data/repos/ghc/libraries/ghc-prim/GHC/Classes.hs--(>=)",
|
| 166 |
+
"poly_type": "Ad-hoc",
|
| 167 |
+
"signature": "(>=) :: Ord a => a -> a -> Bool",
|
| 168 |
+
"code": "x >= y = y <= x",
|
| 169 |
+
"dependencies": [
|
| 170 |
+
"(<=) :: Ord a => a -> a -> Bool"
|
| 171 |
+
]
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--enumFrom",
|
| 175 |
+
"poly_type": "Ad-hoc",
|
| 176 |
+
"signature": "enumFrom :: Enum a => a -> [a]",
|
| 177 |
+
"code": "enumFrom x = map toEnum [fromEnum x ..]",
|
| 178 |
+
"dependencies": [
|
| 179 |
+
"map :: (a -> b) -> [a] -> [b]",
|
| 180 |
+
"toEnum :: Enum a => Int -> a",
|
| 181 |
+
"fromEnum :: Enum a => a -> Int"
|
| 182 |
+
]
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Text/Read.hs--read",
|
| 186 |
+
"poly_type": "Ad-hoc",
|
| 187 |
+
"signature": "read :: Read a => String -> a",
|
| 188 |
+
"code": "read s = either errorWithoutStackTrace id (readEither s)",
|
| 189 |
+
"dependencies": [
|
| 190 |
+
"either :: (a -> c) -> (b -> c) -> Either a b -> c",
|
| 191 |
+
"readEither :: Read a => String -> Either String a",
|
| 192 |
+
"id :: a -> a",
|
| 193 |
+
"errorWithoutStackTrace :: String -> a"
|
| 194 |
+
]
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--unzip",
|
| 198 |
+
"poly_type": "Parametric",
|
| 199 |
+
"signature": "unzip :: [(a,b)] -> ([a],[b])",
|
| 200 |
+
"code": "unzip = foldr (\\(a,b) ~(as,bs) -> (a:as,b:bs)) ([],[])",
|
| 201 |
+
"dependencies": [
|
| 202 |
+
"foldr :: (a -> b -> b) -> b -> [a] -> b"
|
| 203 |
+
]
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--isNaN-Float",
|
| 207 |
+
"poly_type": "Monomorphic",
|
| 208 |
+
"signature": "isNaN :: Float -> Bool",
|
| 209 |
+
"code": "isNaN x = zero /= isFloatNaN x",
|
| 210 |
+
"dependencies": [
|
| 211 |
+
"isFloatNaN :: Float -> Int",
|
| 212 |
+
"(/=) :: Eq a => a -> a -> Bool",
|
| 213 |
+
"zero :: Int"
|
| 214 |
+
]
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Show.hs--showList--Char",
|
| 218 |
+
"poly_type": "Monomorphic",
|
| 219 |
+
"signature": "showList :: [Char] -> ShowS",
|
| 220 |
+
"code": "showList cs = showChar quotationMark . showLitString cs . showChar quotationMark",
|
| 221 |
+
"dependencies": [
|
| 222 |
+
"showChar :: Char -> ShowS",
|
| 223 |
+
"showLitString :: String -> ShowS",
|
| 224 |
+
"type ShowS = String -> String",
|
| 225 |
+
"(.) :: (b -> c) -> (a -> b) -> a -> c",
|
| 226 |
+
"quotationMark :: Char"
|
| 227 |
+
]
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--encodeFloat-Double",
|
| 231 |
+
"poly_type": "Monomorphic",
|
| 232 |
+
"signature": "encodeFloat :: Integer -> Int -> Double",
|
| 233 |
+
"code": "encodeFloat i (I_ j) = D_ (integerEncodeDouble_ i j)",
|
| 234 |
+
"dependencies": [
|
| 235 |
+
"data Double = D_ Double_",
|
| 236 |
+
"integerEncodeDouble_ :: Integer -> Int_ -> Double_",
|
| 237 |
+
"data Int = I_ Int_"
|
| 238 |
+
]
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Generics.hs--pure-Either",
|
| 242 |
+
"poly_type": "Parametric",
|
| 243 |
+
"signature": "pure :: a -> Either e a",
|
| 244 |
+
"code": "pure = Right",
|
| 245 |
+
"dependencies": [
|
| 246 |
+
"data Either a b = Left a | Right b"
|
| 247 |
+
]
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--scanl1",
|
| 251 |
+
"poly_type": "Parametric",
|
| 252 |
+
"signature": "scanl1 :: (a -> a -> a) -> [a] -> [a]",
|
| 253 |
+
"code": "scanl1 _ [] = []\nscanl1 f (x:xs) = scanl f x xs",
|
| 254 |
+
"dependencies": [
|
| 255 |
+
"scanl :: (b -> a -> b) -> b -> [a] -> [b]"
|
| 256 |
+
]
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--dropWhile",
|
| 260 |
+
"poly_type": "Parametric",
|
| 261 |
+
"signature": "dropWhile :: (a -> Bool) -> [a] -> [a]",
|
| 262 |
+
"code": "dropWhile _ [] = []\ndropWhile p xs@(x:xs')\n | p x = dropWhile p xs'\n | otherwise = xs",
|
| 263 |
+
"dependencies": []
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"task_id": "data/repos/ghc/libraries/ghc-prim/GHC/Classes.hs--(<)",
|
| 267 |
+
"poly_type": "Ad-hoc",
|
| 268 |
+
"signature": "(<) :: Ord a => a -> a -> Bool",
|
| 269 |
+
"code": "x < y = not (y <= x>)",
|
| 270 |
+
"dependencies": [
|
| 271 |
+
"(<=) :: Ord a => a -> a -> Bool"
|
| 272 |
+
]
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Tuple.hs--fst",
|
| 276 |
+
"poly_type": "Parametric",
|
| 277 |
+
"signature": "fst :: (a,b) -> a",
|
| 278 |
+
"code": "fst (x,_) = x",
|
| 279 |
+
"dependencies": []
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--quot",
|
| 283 |
+
"poly_type": "Ad-hoc",
|
| 284 |
+
"signature": "quot :: Integral => a -> a -> a",
|
| 285 |
+
"code": "n `quot` d = fst (quotRem n d)",
|
| 286 |
+
"dependencies": [
|
| 287 |
+
"fst :: (a, b) -> a",
|
| 288 |
+
"quotRem :: Integral => a -> a -> (a, a)"
|
| 289 |
+
]
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Control/Monad/Fail.hs--fail-[]",
|
| 293 |
+
"poly_type": "Parametric",
|
| 294 |
+
"signature": "fail :: String -> [a]",
|
| 295 |
+
"code": "fail x = []",
|
| 296 |
+
"dependencies": [
|
| 297 |
+
"x :: String"
|
| 298 |
+
]
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--decodeFloat-Float",
|
| 302 |
+
"poly_type": "Monomorphic",
|
| 303 |
+
"signature": "decodeFloat :: Float -> (Integer, Int)",
|
| 304 |
+
"code": "decodeFloat (F f) = case decodeFloat_Int_ f_ of\n (i, e) -> (IS i, I e)",
|
| 305 |
+
"dependencies": [
|
| 306 |
+
"data Float = F_ Float_",
|
| 307 |
+
"decodeFloat_Int_ :: Float_ -> (Int_, Int_)",
|
| 308 |
+
"data Integer = IS Int_",
|
| 309 |
+
"data Int = I_ Int_"
|
| 310 |
+
]
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--concatMap",
|
| 314 |
+
"poly_type": "Parametric",
|
| 315 |
+
"signature": "concatMap :: (a -> [b]) -> [a] -> [b]",
|
| 316 |
+
"code": "concatMap f = foldr ((++) . f) []",
|
| 317 |
+
"dependencies": [
|
| 318 |
+
"foldr :: Foldable t => (a -> b -> b) -> b -> t a -> b",
|
| 319 |
+
"(++) :: [a] -> [a] -> [a]",
|
| 320 |
+
"(.) :: (b -> c) -> (a -> b) -> a -> c"
|
| 321 |
+
]
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Num.hs--fromInteger-Int",
|
| 325 |
+
"poly_type": "Monomorphic",
|
| 326 |
+
"signature": "fromInteger :: Integer -> Int",
|
| 327 |
+
"code": "fromInteger i = I_ (integerToInt_ i)",
|
| 328 |
+
"dependencies": [
|
| 329 |
+
"integerToInt_ :: Integer -> Int_",
|
| 330 |
+
"data Int = I_ Int_"
|
| 331 |
+
]
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--succ-Char",
|
| 335 |
+
"poly_type": "Monomorphic",
|
| 336 |
+
"signature": "succ :: Char -> Char",
|
| 337 |
+
"code": "succ c = chr (ord c + one)",
|
| 338 |
+
"dependencies": [
|
| 339 |
+
"chr :: Int -> Char",
|
| 340 |
+
"ord :: Char -> Int",
|
| 341 |
+
"(+) :: Num a => a -> a -> a",
|
| 342 |
+
"one :: Int"
|
| 343 |
+
]
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Base.hs--($)",
|
| 347 |
+
"poly_type": "Parametric",
|
| 348 |
+
"signature": "($) :: (a -> b) -> a -> b",
|
| 349 |
+
"code": "($) f = f",
|
| 350 |
+
"dependencies": []
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/System/IO.hs--print",
|
| 354 |
+
"poly_type": "Ad-hoc",
|
| 355 |
+
"signature": "print :: Show a => a -> IO ()",
|
| 356 |
+
"code": "print x = putStrLn (show x)",
|
| 357 |
+
"dependencies": [
|
| 358 |
+
"putStrLn :: String -> IO ()",
|
| 359 |
+
"show :: Show a => a -> String"
|
| 360 |
+
]
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--recip",
|
| 364 |
+
"poly_type": "Ad-hoc",
|
| 365 |
+
"signature": "recip :: Fractional a => a -> a",
|
| 366 |
+
"code": "recip x = one / x",
|
| 367 |
+
"dependencies": [
|
| 368 |
+
"(/) :: Fractional a => a -> a -> a",
|
| 369 |
+
"one :: Fractional a => a"
|
| 370 |
+
]
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--fromEnum-Int",
|
| 374 |
+
"poly_type": "Monomorphic",
|
| 375 |
+
"signature": "fromEnum :: Int -> Int",
|
| 376 |
+
"code": "fromEnum x = x",
|
| 377 |
+
"dependencies": [
|
| 378 |
+
"x :: Int"
|
| 379 |
+
]
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--(^^)",
|
| 383 |
+
"poly_type": "Ad-hoc",
|
| 384 |
+
"signature": "(^^) :: (Fractional a, Integral b) => a -> b -> a",
|
| 385 |
+
"code": "x ^^ n = if n >= 0 then x^n else recip (x^(negate n))",
|
| 386 |
+
"dependencies": [
|
| 387 |
+
"(>=) :: Ord a => a -> a -> Bool",
|
| 388 |
+
"(^) :: (Num a, Integral b) => a -> b -> a",
|
| 389 |
+
"recip :: Fractional a => a -> a",
|
| 390 |
+
"negate :: Num a => a -> a"
|
| 391 |
+
]
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"task_id": "data/repos/ghc/libraries/ghc-prim/GHC/Classes.hs--min",
|
| 395 |
+
"poly_type": "Ad-hoc",
|
| 396 |
+
"signature": "min :: Ord a => a -> a -> a",
|
| 397 |
+
"code": "min x y = if x <= y then x else y",
|
| 398 |
+
"dependencies": [
|
| 399 |
+
"(<=) :: Ord a => a -> a -> Bool"
|
| 400 |
+
]
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Base.hs--(<*>)-(,)",
|
| 404 |
+
"poly_type": "Parametric ",
|
| 405 |
+
"signature": "(<*>) :: (a, (a -> b)) -> (a0, a) -> (a0, b) ",
|
| 406 |
+
"code": "(u, f) <*> (v, x) = (u <> v, f x)",
|
| 407 |
+
"dependencies": [
|
| 408 |
+
"(<>) :: Semigroup a => a -> a -> a"
|
| 409 |
+
]
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--enumFromTo",
|
| 413 |
+
"poly_type": "Ad-hoc",
|
| 414 |
+
"signature": "enumFromTo :: Enum a => a -> a -> [a]",
|
| 415 |
+
"code": "enumFromTo x y = map toEnum [fromEnum x .. fromEnum y]",
|
| 416 |
+
"dependencies": [
|
| 417 |
+
"map :: (a -> b) -> [a] -> [b]",
|
| 418 |
+
"toEnum :: Enum a => Int -> a",
|
| 419 |
+
"fromEnum :: Enum a => a -> Int"
|
| 420 |
+
]
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--zipWith",
|
| 424 |
+
"poly_type": "Parametric",
|
| 425 |
+
"signature": "zipWith :: (a->b->c) -> [a]->[b]->[c]",
|
| 426 |
+
"code": "zipWith f = go\n where\n go [] _ = []\n go _ [] = []\n go (x:xs) (y:ys) = f x y : go xs ys",
|
| 427 |
+
"dependencies": []
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Read.hs--readsPrec",
|
| 431 |
+
"poly_type": "Ad-hoc",
|
| 432 |
+
"signature": "readsPrec :: Read a => Int -> ReadS a",
|
| 433 |
+
"code": "readsPrec = readPrec_to_S readPrec",
|
| 434 |
+
"dependencies": [
|
| 435 |
+
"readPrec_to_S :: ReadPrec a -> (Int -> ReadS a)",
|
| 436 |
+
"readPrec :: ReadPrec a"
|
| 437 |
+
]
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Base.hs--flip",
|
| 441 |
+
"poly_type": "Parametric",
|
| 442 |
+
"signature": "flip :: (a -> b -> c) -> b -> a -> c",
|
| 443 |
+
"code": "flip f x y = f y x",
|
| 444 |
+
"dependencies": []
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--drop",
|
| 448 |
+
"poly_type": "Parametric",
|
| 449 |
+
"signature": "drop :: Int -> [a] -> [a]",
|
| 450 |
+
"code": "drop _ [] = []\ndrop n (_:xs) = drop (n-one) xs\ndrop n xs | n <= zero = xs",
|
| 451 |
+
"dependencies": [
|
| 452 |
+
"(<=) :: Ord a => a -> a -> Bool",
|
| 453 |
+
"(-) :: Num a => a -> a -> a",
|
| 454 |
+
"zero :: Int",
|
| 455 |
+
"one :: Int"
|
| 456 |
+
]
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Foldable.hs--concat",
|
| 460 |
+
"poly_type": "Ad-hoc",
|
| 461 |
+
"signature": "concat :: Foldable t => t [a] -> [a]",
|
| 462 |
+
"code": "concat xs = build (\\c n -> foldr (\\x y -> foldr c y x) n xs)",
|
| 463 |
+
"dependencies": [
|
| 464 |
+
"build :: ((a -> b -> b) -> b -> b) -> [a]",
|
| 465 |
+
"foldr :: Foldable t => (a -> b -> b) -> b -> t a -> b"
|
| 466 |
+
]
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Maybe.hs--maybe",
|
| 470 |
+
"poly_type": "Parametric",
|
| 471 |
+
"signature": "maybe :: b -> (a -> b) -> Maybe a -> b",
|
| 472 |
+
"code": "maybe _ f (Just x) = f x\nmaybe n _ Nothing = n",
|
| 473 |
+
"dependencies": [
|
| 474 |
+
"data Maybe a = Nothing | Just a"
|
| 475 |
+
]
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Generics.hs--pure-Maybe",
|
| 479 |
+
"poly_type": "Parametric",
|
| 480 |
+
"signature": "pure :: a -> Maybe a",
|
| 481 |
+
"code": "pure = Just",
|
| 482 |
+
"dependencies": [
|
| 483 |
+
"data Maybe a = Nothing | Just a"
|
| 484 |
+
]
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Base.hs--(<*>)",
|
| 488 |
+
"poly_type": "Ad-hoc ",
|
| 489 |
+
"signature": "(<*>) :: Applicative f => f (a -> b) -> f a -> f b ",
|
| 490 |
+
"code": "(<*>) = liftA2 id",
|
| 491 |
+
"dependencies": [
|
| 492 |
+
"id :: a -> a",
|
| 493 |
+
"liftA2 :: Applicative f => (a -> b -> c) -> f a -> f b -> f c"
|
| 494 |
+
]
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--even",
|
| 498 |
+
"poly_type": "Ad-hoc",
|
| 499 |
+
"signature": "even :: Integral a => a -> Bool",
|
| 500 |
+
"code": "even n = n `rem` two == zero",
|
| 501 |
+
"dependencies": [
|
| 502 |
+
"rem :: Integral a => a -> a -> a",
|
| 503 |
+
"(==) :: Eq a => a -> a -> Bool",
|
| 504 |
+
"two :: Integral a => a",
|
| 505 |
+
"zero :: Integral a => a"
|
| 506 |
+
]
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--pred-Ordering",
|
| 510 |
+
"poly_type": "Monomorphic",
|
| 511 |
+
"signature": "pred :: Ordering -> Ordering",
|
| 512 |
+
"code": "pred GT = EQ\npred EQ = LT\npred LT = error \"bad argument\"",
|
| 513 |
+
"dependencies": [
|
| 514 |
+
"data Ordering = LT | EQ | GT"
|
| 515 |
+
]
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Base.hs--const",
|
| 519 |
+
"poly_type": "Parametric",
|
| 520 |
+
"signature": "const :: a -> b -> a",
|
| 521 |
+
"code": "const x _ = x",
|
| 522 |
+
"dependencies": []
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--init",
|
| 526 |
+
"poly_type": "Parametric",
|
| 527 |
+
"signature": "init :: [a] -> [a]",
|
| 528 |
+
"code": "init (x:xs) = x : init xs\ninit [] = error\ninit [x] = []",
|
| 529 |
+
"dependencies": []
|
| 530 |
+
},
|
| 531 |
+
{
|
| 532 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Foldable.hs--elem",
|
| 533 |
+
"poly_type": "Ad-hoc",
|
| 534 |
+
"signature": "elem :: (Foldable t, Eq a) => a -> t a -> Bool",
|
| 535 |
+
"code": "elem = any . (==)",
|
| 536 |
+
"dependencies": [
|
| 537 |
+
"any :: Foldable t => (a -> Bool) -> t a -> Bool",
|
| 538 |
+
"(.) :: (b -> c) -> (a -> b) -> a -> c",
|
| 539 |
+
"(==) :: Eq a => a -> a -> Bool"
|
| 540 |
+
]
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--atan2",
|
| 544 |
+
"poly_type": "Ad-hoc",
|
| 545 |
+
"signature": "atan2 :: RealFloat a => a -> a -> a",
|
| 546 |
+
"code": "atan2 y x\n | x > zero = atan (y/x)\n | x == zero && y > zero = pi/two\n | x < zero && y > zero = pi + atan (y/x)\n |(x <= zero && y < zero) ||\n (x < zero && isNegativeZero y) ||\n (isNegativeZero x && isNegativeZero y)\n = -atan2 (-y) x\n | y == zero && (x < zero || isNegativeZero x)\n = pi \n | x==zero && y==zero = y \n | otherwise = x + y",
|
| 547 |
+
"dependencies": [
|
| 548 |
+
"atan :: Floating a => a -> a",
|
| 549 |
+
"pi :: Floating a => a",
|
| 550 |
+
"(/) :: Fractional a => a -> a -> a",
|
| 551 |
+
"(+) :: Num a => a -> a -> a",
|
| 552 |
+
"(-) :: Num a => a -> a -> a",
|
| 553 |
+
"isNegativeZero :: RealFloat a => a -> Bool",
|
| 554 |
+
"(==) :: Eq a => a -> a -> Bool",
|
| 555 |
+
"(<) :: Ord a => a -> a -> Bool",
|
| 556 |
+
"(<=) :: Ord a => a -> a -> Bool",
|
| 557 |
+
"(>) :: Ord a => a -> a -> Bool",
|
| 558 |
+
"(&&) :: Bool -> Bool -> Bool",
|
| 559 |
+
"(||) :: Bool -> Bool -> Bool",
|
| 560 |
+
"zero :: Num a => a",
|
| 561 |
+
"two :: Num a => a"
|
| 562 |
+
]
|
| 563 |
+
},
|
| 564 |
+
{
|
| 565 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Base.hs--(*>)-[]",
|
| 566 |
+
"poly_type": "Parametric",
|
| 567 |
+
"signature": "(*>) :: [a] -> [b] -> [b]",
|
| 568 |
+
"code": "xs *> ys = [y | _ <- xs, y <- ys]",
|
| 569 |
+
"dependencies": []
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"task_id": "data/repos/ghc/libraries/ghc-prim/GHC/Classes.hs--(>)",
|
| 573 |
+
"poly_type": "Ad-hoc",
|
| 574 |
+
"signature": "(>) :: Ord a => a -> a -> Bool",
|
| 575 |
+
"code": "x > y = not (x <= y)",
|
| 576 |
+
"dependencies": [
|
| 577 |
+
"(>) :: Ord a => a -> a -> Bool"
|
| 578 |
+
]
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--odd",
|
| 582 |
+
"poly_type": "Ad-hoc",
|
| 583 |
+
"signature": "odd :: Integral a => a -> Bool",
|
| 584 |
+
"code": "odd = not . even",
|
| 585 |
+
"dependencies": [
|
| 586 |
+
"not :: Bool -> Bool",
|
| 587 |
+
"(.) :: (b -> c) -> (a -> b) -> a -> c",
|
| 588 |
+
"even :: Integral a => a -> Bool"
|
| 589 |
+
]
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/System/IO.hs--readFile",
|
| 593 |
+
"poly_type": "Monomorphic",
|
| 594 |
+
"signature": "readFile :: FilePath -> IO String",
|
| 595 |
+
"code": "readFile name = openFile name ReadMode >>= hGetContents",
|
| 596 |
+
"dependencies": [
|
| 597 |
+
"openFile :: FilePath -> IOMode -> IO Handle",
|
| 598 |
+
"(>>=) :: IO a -> (a -> IO b) -> IO b",
|
| 599 |
+
"hGetContents :: Handle -> IO String",
|
| 600 |
+
"data IOMode = ReadMode | WriteMode | AppendMode | ReadWriteMode"
|
| 601 |
+
]
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Base.hs--(.)",
|
| 605 |
+
"poly_type": "Parametric",
|
| 606 |
+
"signature": "(.) :: (b -> c) -> (a -> b) -> a -> c",
|
| 607 |
+
"code": "(.) f g = \\x -> f (g x)",
|
| 608 |
+
"dependencies": []
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--succ-Bool",
|
| 612 |
+
"poly_type": "Monomorphic",
|
| 613 |
+
"signature": "succ :: Bool -> Bool",
|
| 614 |
+
"code": "succ False = True\nsucc True = error \"bad argument\"",
|
| 615 |
+
"dependencies": [
|
| 616 |
+
"data Bool = False | True"
|
| 617 |
+
]
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Generics.hs--liftA2--[]",
|
| 621 |
+
"poly_type": "Parametric",
|
| 622 |
+
"signature": "liftA2 :: (a -> b -> c) -> [a] -> [b] -> [c]",
|
| 623 |
+
"code": "liftA2 f xs ys = [f x y | x <- xs, y <- ys]",
|
| 624 |
+
"dependencies": []
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--toInteger--Natural",
|
| 628 |
+
"poly_type": "Monomorphic",
|
| 629 |
+
"signature": "toInteger :: Natural -> Integer",
|
| 630 |
+
"code": "toInteger x = integerFromNatural x",
|
| 631 |
+
"dependencies": [
|
| 632 |
+
"integerFromNatural :: Natural -> Integer"
|
| 633 |
+
]
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--floatDigits-Float",
|
| 637 |
+
"poly_type": "Monomorphic",
|
| 638 |
+
"signature": "floatDigits :: Float -> Int",
|
| 639 |
+
"code": "floatDigits x = dbl_mant_dig",
|
| 640 |
+
"dependencies": [
|
| 641 |
+
"dbl_mant_dig :: Int",
|
| 642 |
+
"x :: Float"
|
| 643 |
+
]
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--divMod",
|
| 647 |
+
"poly_type": "Ad-hoc",
|
| 648 |
+
"signature": "divMod :: Integral a => a -> a -> (a,a)",
|
| 649 |
+
"code": "divMod n d = if signum r == negate (signum d) then (q-1, r+d) else qr\n where qr@(q,r) = quotRem n d",
|
| 650 |
+
"dependencies": [
|
| 651 |
+
"quotRem :: Integral a => a -> a -> (a, a)",
|
| 652 |
+
"negate :: Num a => a -> a",
|
| 653 |
+
"(+) :: Num a => a -> a -> a",
|
| 654 |
+
"(-) :: Num a => a -> a -> a",
|
| 655 |
+
"signum :: Num a => a -> a"
|
| 656 |
+
]
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--tail",
|
| 660 |
+
"poly_type": "Parametric",
|
| 661 |
+
"signature": "tail :: [a] -> [a]",
|
| 662 |
+
"code": "tail (_:xs) = xs\ntail [] = error",
|
| 663 |
+
"dependencies": []
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--decodeFloat-Double",
|
| 667 |
+
"poly_type": "Monomorphic",
|
| 668 |
+
"signature": "decodeFloat :: Double -> (Integer, Int)",
|
| 669 |
+
"code": "decodeFloat (D_ x_) = case integerDecodeDouble_ x_ of\n (i, j) -> (i, I_ j)",
|
| 670 |
+
"dependencies": [
|
| 671 |
+
"data Double = D_ Double_",
|
| 672 |
+
"integerDecodeDouble_ :: Double_ -> (Integer, Int_)",
|
| 673 |
+
"data Int = I_ Int_"
|
| 674 |
+
]
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Control/Monad/Fail.hs--fail-Maybe",
|
| 678 |
+
"poly_type": "Parametric",
|
| 679 |
+
"signature": "fail :: String -> Maybe a",
|
| 680 |
+
"code": "fail x = Nothing",
|
| 681 |
+
"dependencies": [
|
| 682 |
+
"data Maybe a = Nothing | Just a",
|
| 683 |
+
"x :: String"
|
| 684 |
+
]
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--(^)",
|
| 688 |
+
"poly_type": "Ad-hoc",
|
| 689 |
+
"signature": "(^) :: (Num a, Integral b) => a -> b -> a",
|
| 690 |
+
"code": "x ^ y | y < zero = error \"negative\"\n | y == zero = one\n | otherwise = powImpl x y",
|
| 691 |
+
"dependencies": [
|
| 692 |
+
"(<) :: Ord a => a -> a -> Bool",
|
| 693 |
+
"(==) :: Eq a => a -> a -> Bool",
|
| 694 |
+
"powImpl :: (Num a, Integral b) => a -> b -> a",
|
| 695 |
+
"zero :: Num a => a",
|
| 696 |
+
"one :: Num a => a"
|
| 697 |
+
]
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"task_id": "data/repos/ghc/libraries/ghc-prim/GHC/Classes.hs--max",
|
| 701 |
+
"poly_type": "Ad-hoc",
|
| 702 |
+
"signature": "max :: Ord a => a -> a -> a",
|
| 703 |
+
"code": "max x y = if x <= y then y else x",
|
| 704 |
+
"dependencies": [
|
| 705 |
+
"(<=) :: Ord a => a -> a -> Bool"
|
| 706 |
+
]
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Num.hs--subtract",
|
| 710 |
+
"poly_type": "Ad-hoc",
|
| 711 |
+
"signature": "subtract :: Num a => a -> a -> a",
|
| 712 |
+
"code": "subtract x y = y - x",
|
| 713 |
+
"dependencies": [
|
| 714 |
+
"(-) :: Num a => a -> a -> a"
|
| 715 |
+
]
|
| 716 |
+
},
|
| 717 |
+
{
|
| 718 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Foldable.hs--foldMap",
|
| 719 |
+
"poly_type": "Ad-hoc",
|
| 720 |
+
"signature": "foldMap :: (Foldable t, Monoid m) => (a -> m) -> t a -> m",
|
| 721 |
+
"code": "foldMap f = foldr (mappend . f) mempty",
|
| 722 |
+
"dependencies": [
|
| 723 |
+
"foldr :: Foldable t => (a -> b -> b) -> b -> t a -> b",
|
| 724 |
+
"mappend :: Monoid m => m -> m -> m",
|
| 725 |
+
"(.) :: (b -> c) -> (a -> b) -> a -> c",
|
| 726 |
+
"mempty :: Monoid m => m"
|
| 727 |
+
]
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--floatRange-Float",
|
| 731 |
+
"poly_type": "Monomorphic",
|
| 732 |
+
"signature": "floatRange :: Float -> (Int,Int)",
|
| 733 |
+
"code": "floatRange x = (dbl_min_exp, dbl_max_exp)",
|
| 734 |
+
"dependencies": [
|
| 735 |
+
"dbl_min_exp :: Int",
|
| 736 |
+
"dbl_min_exp :: Int",
|
| 737 |
+
"x :: Float"
|
| 738 |
+
]
|
| 739 |
+
},
|
| 740 |
+
{
|
| 741 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Base.hs--(&&)",
|
| 742 |
+
"poly_type": "Monomorphic",
|
| 743 |
+
"signature": "(&&) :: Bool -> Bool -> Bool",
|
| 744 |
+
"code": "(&&) True True = True\n(&&) _ _ = False",
|
| 745 |
+
"dependencies": [
|
| 746 |
+
"data Bool = True | False"
|
| 747 |
+
]
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/System/IO.hs--writeFile",
|
| 751 |
+
"poly_type": "Monomorphic",
|
| 752 |
+
"signature": "writeFile :: FilePath -> String -> IO ()",
|
| 753 |
+
"code": "writeFile f txt = withFile f WriteMode (\\ hdl -> hPutStr hdl txt)",
|
| 754 |
+
"dependencies": [
|
| 755 |
+
"hPutStr :: Handle -> String -> IO ()",
|
| 756 |
+
"withFile :: FilePath -> IOMode -> (Handle -> IO r) -> IO r",
|
| 757 |
+
"data IOMode = ReadMode | WriteMode | AppendMode | ReadWriteMode"
|
| 758 |
+
]
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Generics.hs--liftA2--(,)",
|
| 762 |
+
"poly_type": "Parametric",
|
| 763 |
+
"signature": "liftA2 :: (a0 -> b -> c) -> (a, a0) -> (a, b) -> (a, c)",
|
| 764 |
+
"code": "liftA2 f (u, x) (v, y) = (u <> v, f x y)",
|
| 765 |
+
"dependencies": [
|
| 766 |
+
"(<>) :: a -> a -> a"
|
| 767 |
+
]
|
| 768 |
+
},
|
| 769 |
+
{
|
| 770 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--isNaN-Double",
|
| 771 |
+
"poly_type": "Monomorphic",
|
| 772 |
+
"signature": "isNaN :: Double -> Bool",
|
| 773 |
+
"code": "isNaN x = zero /= isDoubleNaN x",
|
| 774 |
+
"dependencies": [
|
| 775 |
+
"isDoubleNaN :: Double -> Int",
|
| 776 |
+
"(/=) :: Eq a => a -> a -> Bool",
|
| 777 |
+
"zero :: Int"
|
| 778 |
+
]
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--encodeFloat-Float",
|
| 782 |
+
"poly_type": "Monomorphic",
|
| 783 |
+
"signature": "encodeFloat :: Integer -> Int -> Float",
|
| 784 |
+
"code": "encodeFloat i (I_ e) = F_ (integerEncodeFloat_ i e)",
|
| 785 |
+
"dependencies": [
|
| 786 |
+
"data Int = I_ Int_",
|
| 787 |
+
"data Float = F_ Float_",
|
| 788 |
+
"integerEncodeFloat_ :: Integer -> Int_ -> Float_"
|
| 789 |
+
]
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Read.hs--readParen",
|
| 793 |
+
"poly_type": "Parametric",
|
| 794 |
+
"signature": "readParen :: Bool -> ReadS a -> ReadS a",
|
| 795 |
+
"code": "readParen b g = if b then mandatory else optional\n where optional r = g r ++ mandatory r\n mandatory r =\n lex r >>= \\([leftParenthesis], s) ->\n optional s >>= \\(x, t) ->\n lex t >>= \\([rightParenthesis], u) ->\n return (x, u)\n",
|
| 796 |
+
"dependencies": [
|
| 797 |
+
"(++) :: [a] -> [a] -> [a]",
|
| 798 |
+
"return :: Monad m => a -> m a",
|
| 799 |
+
"lex :: String -> [(String, String)]",
|
| 800 |
+
"(>>=) :: Monad m => m a -> (a -> m b) -> m b",
|
| 801 |
+
"type ReadS a = String -> [(a, String)]",
|
| 802 |
+
"leftParenthesis :: Char",
|
| 803 |
+
"rightParenthesis :: Char"
|
| 804 |
+
]
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--zipWith3",
|
| 808 |
+
"poly_type": "Parametric",
|
| 809 |
+
"signature": "zipWith3 :: (a->b->c->d) -> [a]->[b]->[c]->[d]",
|
| 810 |
+
"code": "zipWith3 z = go\n where\n go (a:as) (b:bs) (c:cs) = z a b c : go as bs cs\n go _ _ _ = []",
|
| 811 |
+
"dependencies": []
|
| 812 |
+
},
|
| 813 |
+
{
|
| 814 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--concat",
|
| 815 |
+
"poly_type": "Parametric",
|
| 816 |
+
"signature": "concat :: [[a]] -> [a]",
|
| 817 |
+
"code": "concat = foldr (++) []",
|
| 818 |
+
"dependencies": [
|
| 819 |
+
"foldr :: Foldable t => (a -> b -> b) -> b -> t a -> b",
|
| 820 |
+
"(++) :: [a] -> [a] -> [a]"
|
| 821 |
+
]
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--enumFromThenTo",
|
| 825 |
+
"poly_type": "Ad-hoc",
|
| 826 |
+
"signature": "enumFromThenTo :: Enum a => a -> a -> a -> [a]",
|
| 827 |
+
"code": "enumFromThenTo x1 x2 y = map toEnum [fromEnum x1, fromEnum x2 .. fromEnum y]",
|
| 828 |
+
"dependencies": [
|
| 829 |
+
"map :: (a -> b) -> [a] -> [b]",
|
| 830 |
+
"toEnum :: Enum a => Int -> a",
|
| 831 |
+
"fromEnum :: Enum a => a -> Int"
|
| 832 |
+
]
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Base.hs--until",
|
| 836 |
+
"poly_type": "Parametric",
|
| 837 |
+
"signature": "until :: (a -> Bool) -> (a -> a) -> a -> a",
|
| 838 |
+
"code": "until p f = go\n where\n go x | p x = x\n | otherwise = go (f x)",
|
| 839 |
+
"dependencies": []
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--quotRem-Int",
|
| 843 |
+
"poly_type": "Monomorphic",
|
| 844 |
+
"signature": "quotRem :: Int -> Int -> (Int, Int)",
|
| 845 |
+
"code": "quotRem a b = quotRemInt a b",
|
| 846 |
+
"dependencies": [
|
| 847 |
+
"quotRemInt :: Int -> Int -> (Int, Int)"
|
| 848 |
+
]
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--toEnum-Int",
|
| 852 |
+
"poly_type": "Monomorphic",
|
| 853 |
+
"signature": "toEnum :: Int -> Int",
|
| 854 |
+
"code": "toEnum x = x",
|
| 855 |
+
"dependencies": [
|
| 856 |
+
"x :: Int"
|
| 857 |
+
]
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Either.hs--either",
|
| 861 |
+
"poly_type": "Parametric",
|
| 862 |
+
"signature": "either :: (a -> c) -> (b -> c) -> Either a b -> c",
|
| 863 |
+
"code": "either _ g (Right y) = g y\neither f _ (Left x) = f x",
|
| 864 |
+
"dependencies": [
|
| 865 |
+
"data Either a b = Left a | Right b"
|
| 866 |
+
]
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Generics.hs--fmap-(,)",
|
| 870 |
+
"poly_type": "Parametric",
|
| 871 |
+
"signature": "fmap :: (a0 -> b) -> (a, a0) -> (a, b)",
|
| 872 |
+
"code": "fmap f (x, y) = (x, f y)",
|
| 873 |
+
"dependencies": []
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Foldable.hs--concatMap",
|
| 877 |
+
"poly_type": "Ad-hoc",
|
| 878 |
+
"signature": "concatMap :: Foldable t => (a -> [b]) -> t a -> [b]",
|
| 879 |
+
"code": "concatMap f xs = build (\\c n -> foldr (\\x b -> foldr c b (f x)) n xs)",
|
| 880 |
+
"dependencies": [
|
| 881 |
+
"foldr :: Foldable t => (a -> b -> b) -> b -> t a -> b",
|
| 882 |
+
"build :: ((a -> b -> b) -> b -> b) -> [a]"
|
| 883 |
+
]
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--takeWhile",
|
| 887 |
+
"poly_type": "Parametric",
|
| 888 |
+
"signature": "takeWhile :: (a -> Bool) -> [a] -> [a]",
|
| 889 |
+
"code": "takeWhile _ [] = []\ntakeWhile p (x:xs)\n | p x = x : takeWhile p xs\n | otherwise = []",
|
| 890 |
+
"dependencies": []
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Num.hs--signum-Int",
|
| 894 |
+
"poly_type": "Monomorphic",
|
| 895 |
+
"signature": "signum :: Int -> Int",
|
| 896 |
+
"code": "signum n | n `ltInt` zero = negate one\n | n `eqInt` zero = zero\n | otherwise = one",
|
| 897 |
+
"dependencies": [
|
| 898 |
+
"negate :: Num a => a -> a",
|
| 899 |
+
"ltInt :: Int -> Int -> Bool",
|
| 900 |
+
"eqInt :: Int -> Int -> Bool",
|
| 901 |
+
"zero :: Int",
|
| 902 |
+
"one :: Int"
|
| 903 |
+
]
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--pred-Char",
|
| 907 |
+
"poly_type": "Monomorphic",
|
| 908 |
+
"signature": "pred :: Char -> Char",
|
| 909 |
+
"code": "pred c = chr (ord c - one)",
|
| 910 |
+
"dependencies": [
|
| 911 |
+
"chr :: Int -> Char",
|
| 912 |
+
"ord :: Char -> Int",
|
| 913 |
+
"(-) :: Num a => a -> a -> a",
|
| 914 |
+
"one :: Int"
|
| 915 |
+
]
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--tanh",
|
| 919 |
+
"poly_type": "Ad-hoc",
|
| 920 |
+
"signature": "tanh :: Floating a => a -> a",
|
| 921 |
+
"code": "tanh x = sinh x / cosh x",
|
| 922 |
+
"dependencies": [
|
| 923 |
+
"sinh :: Floating a => a -> a",
|
| 924 |
+
"cosh :: Floating a => a -> a",
|
| 925 |
+
"(/) :: Fractional a => a -> a -> a"
|
| 926 |
+
]
|
| 927 |
+
},
|
| 928 |
+
{
|
| 929 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--toEnum-Bool",
|
| 930 |
+
"poly_type": "Monomorphic",
|
| 931 |
+
"signature": "toEnum :: Int -> Bool",
|
| 932 |
+
"code": "toEnum n | n == zero = False\n | n == one = True\n | otherwise = error \"bad argument\"",
|
| 933 |
+
"dependencies": [
|
| 934 |
+
"data Bool = False | True",
|
| 935 |
+
"(==) :: Eq a => a -> a -> Bool",
|
| 936 |
+
"zero :: Int",
|
| 937 |
+
"one :: Int"
|
| 938 |
+
]
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Tuple.hs--curry",
|
| 942 |
+
"poly_type": "Parametric",
|
| 943 |
+
"signature": "curry :: ((a, b) -> c) -> a -> b -> c",
|
| 944 |
+
"code": "curry f x y = f (x, y)",
|
| 945 |
+
"dependencies": []
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--truncate",
|
| 949 |
+
"poly_type": "Ad-hoc",
|
| 950 |
+
"signature": "truncate :: (RealFrac a, Integral b) => a -> b",
|
| 951 |
+
"code": "truncate x = fst (properFraction x)",
|
| 952 |
+
"dependencies": [
|
| 953 |
+
"fst :: (a, b) -> a",
|
| 954 |
+
"properFraction :: (RealFrac a, Integral b) => a -> (b, a)"
|
| 955 |
+
]
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--significand",
|
| 959 |
+
"poly_type": "Ad-hoc",
|
| 960 |
+
"signature": "significand :: RealFloat a => a -> a",
|
| 961 |
+
"code": "significand x = encodeFloat m (negate (floatDigits x))\n where (m,_) = decodeFloat x",
|
| 962 |
+
"dependencies": [
|
| 963 |
+
"encodeFloat :: RealFloat a => Integer -> Int -> a",
|
| 964 |
+
"decodeFloat :: RealFloat a => a -> (Integer, Int)",
|
| 965 |
+
"floatDigits :: RealFloat a => a -> Int",
|
| 966 |
+
"negate :: Num a => a -> a"
|
| 967 |
+
]
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--repeat",
|
| 971 |
+
"poly_type": "Parametric",
|
| 972 |
+
"signature": "repeat :: a -> [a]",
|
| 973 |
+
"code": "repeat x = xs where xs = x : xs",
|
| 974 |
+
"dependencies": []
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--null",
|
| 978 |
+
"poly_type": "Parametric",
|
| 979 |
+
"signature": "null :: [a] -> Bool",
|
| 980 |
+
"code": "null [] = True\nnull (_:_) = False",
|
| 981 |
+
"dependencies": [
|
| 982 |
+
"data Bool = False | True"
|
| 983 |
+
]
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Generics.hs--fmap-Maybe",
|
| 987 |
+
"poly_type": "Parametric",
|
| 988 |
+
"signature": "fmap :: (a -> b) -> Maybe a -> Maybe b",
|
| 989 |
+
"code": "fmap _ Nothing = Nothing\nfmap f (Just a) = Just (f a)",
|
| 990 |
+
"dependencies": [
|
| 991 |
+
"data Maybe a = Nothing | Just a"
|
| 992 |
+
]
|
| 993 |
+
},
|
| 994 |
+
{
|
| 995 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Foldable.hs--notElem",
|
| 996 |
+
"poly_type": "Ad-hoc",
|
| 997 |
+
"signature": "notElem :: (Foldable t, Eq a) => a -> t a -> Bool",
|
| 998 |
+
"code": "notElem x = not . elem x",
|
| 999 |
+
"dependencies": [
|
| 1000 |
+
"elem :: (Foldable t, Eq a) => a -> t a -> Bool",
|
| 1001 |
+
"not :: Bool -> Bool",
|
| 1002 |
+
"(.) :: (b -> c) -> (a -> b) -> a -> c"
|
| 1003 |
+
]
|
| 1004 |
+
},
|
| 1005 |
+
{
|
| 1006 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Show.hs--showsPrec",
|
| 1007 |
+
"poly_type": "Ad-hoc",
|
| 1008 |
+
"signature": "showsPrec :: Show a => Int -> a -> ShowS",
|
| 1009 |
+
"code": "showsPrec _ x s = show x ++ s",
|
| 1010 |
+
"dependencies": [
|
| 1011 |
+
"show ::Show a => a -> String",
|
| 1012 |
+
"(++) :: [a] -> [a] -> [a]",
|
| 1013 |
+
"type ShowS = String -> String"
|
| 1014 |
+
]
|
| 1015 |
+
},
|
| 1016 |
+
{
|
| 1017 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Base.hs--map",
|
| 1018 |
+
"poly_type": "Parametric",
|
| 1019 |
+
"signature": "map :: (a -> b) -> [a] -> [b]",
|
| 1020 |
+
"code": "map _ [] = []\nmap f (x:xs) = f x : map f xs",
|
| 1021 |
+
"dependencies": []
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Foldable.hs--sum",
|
| 1025 |
+
"poly_type": "Ad-hoc",
|
| 1026 |
+
"signature": "sum :: (Foldable t, Num a) => t a -> a",
|
| 1027 |
+
"code": "sum = getSum #. foldMap' Sum",
|
| 1028 |
+
"dependencies": [
|
| 1029 |
+
"getSum :: Sum a -> a",
|
| 1030 |
+
"(#.) :: Coercible b c => (b -> c) -> (a -> b) -> (a -> c)",
|
| 1031 |
+
"foldMap' :: Monoid m => (a -> m) -> t a -> m",
|
| 1032 |
+
"newtype Sum a = Sum {getSum :: a}"
|
| 1033 |
+
]
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--reverse",
|
| 1037 |
+
"poly_type": "Parametric",
|
| 1038 |
+
"signature": "reverse :: [a] -> [a]",
|
| 1039 |
+
"code": "reverse = foldl (flip (:)) []",
|
| 1040 |
+
"dependencies": [
|
| 1041 |
+
"foldl :: (b -> a -> b) -> b -> [a] -> b",
|
| 1042 |
+
"flip :: (a -> b -> c) -> b -> a -> c"
|
| 1043 |
+
]
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--sqrt",
|
| 1047 |
+
"poly_type": "Ad-hoc",
|
| 1048 |
+
"signature": "sqrt :: Floating a => a -> a",
|
| 1049 |
+
"code": "sqrt x = x ** oneHalf",
|
| 1050 |
+
"dependencies": [
|
| 1051 |
+
"(**) :: Floating a => a -> a -> a",
|
| 1052 |
+
"oneHalf :: Floating a => a"
|
| 1053 |
+
]
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--realToFrac",
|
| 1057 |
+
"poly_type": "Ad-hoc",
|
| 1058 |
+
"signature": "realToFrac :: (Real a, Fractional b) => a -> b",
|
| 1059 |
+
"code": "realToFrac = fromRational . toRational",
|
| 1060 |
+
"dependencies": [
|
| 1061 |
+
"fromRational :: Fractional a => Rational -> a",
|
| 1062 |
+
"toRational :: Real a => a -> Rational",
|
| 1063 |
+
"(.) :: (b -> c) -> (a -> b) -> a -> c"
|
| 1064 |
+
]
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--fromEnum-Ordering",
|
| 1068 |
+
"poly_type": "Monomorphic",
|
| 1069 |
+
"signature": "fromEnum :: Ordering -> Int",
|
| 1070 |
+
"code": "fromEnum LT = zero\nfromEnum EQ = one\nfromEnum GT = two",
|
| 1071 |
+
"dependencies": [
|
| 1072 |
+
"data Ordering = LT | EQ | GT",
|
| 1073 |
+
"zero :: Int",
|
| 1074 |
+
"one :: Int",
|
| 1075 |
+
"two :: Int"
|
| 1076 |
+
]
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--round",
|
| 1080 |
+
"poly_type": "Ad-hoc",
|
| 1081 |
+
"signature": "round :: (RealFrac a, Integral b) => a -> b",
|
| 1082 |
+
"code": "round x =\n let (n, r) = properFraction x\n m = if r < zero then n - one else n + one\n in case signum (abs r - oneHalf) of\n negOne -> n\n zero -> if even n then n else m\n one -> m\n _ -> error \"Bad value\"",
|
| 1083 |
+
"dependencies": [
|
| 1084 |
+
"properFraction :: (RealFrac a, Integral b) => a -> (b, a)",
|
| 1085 |
+
"abs :: Num a => a -> a",
|
| 1086 |
+
"(+) :: Num a => a -> a -> a",
|
| 1087 |
+
"(-) :: Num a => a -> a -> a",
|
| 1088 |
+
"signum :: Num a => a -> a",
|
| 1089 |
+
"even :: Integral a => a -> Bool",
|
| 1090 |
+
"(<) :: Ord a => a -> a -> Bool",
|
| 1091 |
+
"oneHalf :: Fractional a => a",
|
| 1092 |
+
"zero :: Num a => a",
|
| 1093 |
+
"one :: Num a => a",
|
| 1094 |
+
"negOne :: Num a => a"
|
| 1095 |
+
]
|
| 1096 |
+
},
|
| 1097 |
+
{
|
| 1098 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--rem",
|
| 1099 |
+
"poly_type": "Ad-hoc",
|
| 1100 |
+
"signature": "rem :: Integral a => a -> a -> a",
|
| 1101 |
+
"code": "n `rem` d = snd (quotRem n d)",
|
| 1102 |
+
"dependencies": [
|
| 1103 |
+
"snd :: (a, b) -> b",
|
| 1104 |
+
"quotRem :: Integral a => a -> a -> (a, a)"
|
| 1105 |
+
]
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--iterate",
|
| 1109 |
+
"poly_type": "Parametric",
|
| 1110 |
+
"signature": "iterate :: (a -> a) -> a -> [a]",
|
| 1111 |
+
"code": "iterate f x = x : iterate f (f x)",
|
| 1112 |
+
"dependencies": []
|
| 1113 |
+
},
|
| 1114 |
+
{
|
| 1115 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--splitAt",
|
| 1116 |
+
"poly_type": "Parametric",
|
| 1117 |
+
"signature": "splitAt :: Int -> [a] -> ([a],[a])",
|
| 1118 |
+
"code": "splitAt n xs = (take n xs, drop n xs)",
|
| 1119 |
+
"dependencies": [
|
| 1120 |
+
"take :: Int -> [a] -> [a]",
|
| 1121 |
+
"drop :: Int -> [a] -> [a]"
|
| 1122 |
+
]
|
| 1123 |
+
},
|
| 1124 |
+
{
|
| 1125 |
+
"task_id": "data/repos/ghc/libraries/ghc-prim/GHC/Classes.hs--(/=)",
|
| 1126 |
+
"poly_type": "Ad-hoc",
|
| 1127 |
+
"signature": "(/=) :: Eq a => a -> a -> Bool",
|
| 1128 |
+
"code": "x /= y = not (x == y)",
|
| 1129 |
+
"dependencies": [
|
| 1130 |
+
"not :: Bool -> Bool",
|
| 1131 |
+
"(==) :: Eq a => a -> a -> Bool"
|
| 1132 |
+
]
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/System/IO.hs--putStrLn",
|
| 1136 |
+
"poly_type": "Monomorphic",
|
| 1137 |
+
"signature": "putStrLn :: String -> IO ()",
|
| 1138 |
+
"code": "putStrLn s = hPutStrLn stdout s",
|
| 1139 |
+
"dependencies": [
|
| 1140 |
+
"hPutStrLn :: Handle -> String -> IO ()",
|
| 1141 |
+
"stdout :: Handle"
|
| 1142 |
+
]
|
| 1143 |
+
},
|
| 1144 |
+
{
|
| 1145 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/OldList.hs--unwords",
|
| 1146 |
+
"poly_type": "Monomorphic",
|
| 1147 |
+
"signature": "unwords :: [String] -> String",
|
| 1148 |
+
"code": "unwords [] = emptyStr\nunwords ws = foldr1 (\\w s -> w ++ space:s) ws",
|
| 1149 |
+
"dependencies": [
|
| 1150 |
+
"(++) :: [a] -> [a] -> [a]",
|
| 1151 |
+
"foldr1 :: Foldable t => (a -> a -> a) -> t a -> a",
|
| 1152 |
+
"space :: Char",
|
| 1153 |
+
"emptyStr :: String"
|
| 1154 |
+
]
|
| 1155 |
+
},
|
| 1156 |
+
{
|
| 1157 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Generics.hs--liftA2",
|
| 1158 |
+
"poly_type": "Ad-hoc",
|
| 1159 |
+
"signature": "liftA2 :: Applicative f => (a -> b -> c) -> f a -> f b -> f c",
|
| 1160 |
+
"code": "liftA2 f x = (<*>) (fmap f x)",
|
| 1161 |
+
"dependencies": [
|
| 1162 |
+
"(<*>) :: f (a -> b) -> f a -> f b",
|
| 1163 |
+
"fmap :: (a -> b) -> f a -> f b"
|
| 1164 |
+
]
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--toRational-Int",
|
| 1168 |
+
"poly_type": "Monomorphic",
|
| 1169 |
+
"signature": "toRational :: Int -> Rational",
|
| 1170 |
+
"code": "toRational x = toInteger x :% one",
|
| 1171 |
+
"dependencies": [
|
| 1172 |
+
"toInteger :: Int -> Integer",
|
| 1173 |
+
"one :: Integer",
|
| 1174 |
+
"data Ratio a = !a :% !a",
|
| 1175 |
+
"type Rational = Ratio Integer"
|
| 1176 |
+
]
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--fromEnum-Char",
|
| 1180 |
+
"poly_type": "Monomorphic",
|
| 1181 |
+
"signature": "fromEnum :: Char -> Int",
|
| 1182 |
+
"code": "fromEnum = ord",
|
| 1183 |
+
"dependencies": [
|
| 1184 |
+
"ord :: Char -> Int"
|
| 1185 |
+
]
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Base.hs--mempty",
|
| 1189 |
+
"poly_type": "Ad-hoc",
|
| 1190 |
+
"signature": "mempty :: Monoid a => a",
|
| 1191 |
+
"code": "mempty = mconcat []",
|
| 1192 |
+
"dependencies": [
|
| 1193 |
+
"mconcat :: Monoid a => [a] -> a"
|
| 1194 |
+
]
|
| 1195 |
+
},
|
| 1196 |
+
{
|
| 1197 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--(**)",
|
| 1198 |
+
"poly_type": "Ad-hoc",
|
| 1199 |
+
"signature": "(**) :: Floating a => a -> a -> a",
|
| 1200 |
+
"code": "x ** y = exp (log x * y)",
|
| 1201 |
+
"dependencies": [
|
| 1202 |
+
"exp :: Floating a => a -> a",
|
| 1203 |
+
"log :: Floating a => a -> a",
|
| 1204 |
+
"(*) :: Num a => a -> a -> a"
|
| 1205 |
+
]
|
| 1206 |
+
},
|
| 1207 |
+
{
|
| 1208 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--break",
|
| 1209 |
+
"poly_type": "Parametric",
|
| 1210 |
+
"signature": "break :: (a -> Bool) -> [a] -> ([a],[a])",
|
| 1211 |
+
"code": "break p = span (not . p)",
|
| 1212 |
+
"dependencies": [
|
| 1213 |
+
"span :: (a -> Bool) -> [a] -> ([a],[a])",
|
| 1214 |
+
"not :: Bool -> Bool",
|
| 1215 |
+
"(.) :: (b -> c) -> (a -> b) -> a -> c"
|
| 1216 |
+
]
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--scanr1",
|
| 1220 |
+
"poly_type": "Parametric",
|
| 1221 |
+
"signature": "scanr1 :: (a -> a -> a) -> [a] -> [a]",
|
| 1222 |
+
"code": "scanr1 _ [] = []\nscanr1 _ [x] = [x]\nscanr1 f (x:xs) = f x q : qs\n where qs@(q:_) = scanr1 f xs",
|
| 1223 |
+
"dependencies": []
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"task_id": "data/repos/ghc/libraries/ghc-prim/GHC/Classes.hs--(<=)",
|
| 1227 |
+
"poly_type": "Ad-hoc",
|
| 1228 |
+
"signature": "(<=) :: Ord a => a -> a -> Bool",
|
| 1229 |
+
"code": "x <= y = case compare x y of { GT -> False; _ -> True }",
|
| 1230 |
+
"dependencies": [
|
| 1231 |
+
"compare :: Ord a => a -> a -> Ordering",
|
| 1232 |
+
"data Ordering = LT | EQ | GT"
|
| 1233 |
+
]
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--succ-Int",
|
| 1237 |
+
"poly_type": "Monomorphic",
|
| 1238 |
+
"signature": "succ :: Int -> Int",
|
| 1239 |
+
"code": "succ x = x + one",
|
| 1240 |
+
"dependencies": [
|
| 1241 |
+
"(+) :: Ord a => a -> a -> a",
|
| 1242 |
+
"one :: Int"
|
| 1243 |
+
]
|
| 1244 |
+
},
|
| 1245 |
+
{
|
| 1246 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--div",
|
| 1247 |
+
"poly_type": "Ad-hoc",
|
| 1248 |
+
"signature": "div :: Integral a => a -> a -> a",
|
| 1249 |
+
"code": "n `div` d = fst (divMod n d)",
|
| 1250 |
+
"dependencies": [
|
| 1251 |
+
"fst :: (a, b) -> a",
|
| 1252 |
+
"divMod :: Integral a => a -> a -> (a, a)"
|
| 1253 |
+
]
|
| 1254 |
+
},
|
| 1255 |
+
{
|
| 1256 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--ceiling",
|
| 1257 |
+
"poly_type": "Ad-hoc",
|
| 1258 |
+
"signature": "ceiling :: (RealFrac a, Integral b) => a -> b",
|
| 1259 |
+
"code": "ceiling x = if r > zero then n + one else n\n where (n,r) = properFraction x",
|
| 1260 |
+
"dependencies": [
|
| 1261 |
+
"properFraction :: (RealFrac a, Integral b) => a -> (b, a)",
|
| 1262 |
+
"(+) :: Num a => a -> a -> a",
|
| 1263 |
+
"(>) :: Ord a => a -> a -> Bool",
|
| 1264 |
+
"zero :: Num a => a",
|
| 1265 |
+
"one :: Num a => a"
|
| 1266 |
+
]
|
| 1267 |
+
},
|
| 1268 |
+
{
|
| 1269 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Foldable.hs--foldMap-Maybe",
|
| 1270 |
+
"poly_type": "Ad-hoc",
|
| 1271 |
+
"signature": "foldMap :: Monoid m => (a -> m) -> Maybe a -> m",
|
| 1272 |
+
"code": "foldMap = maybe mempty",
|
| 1273 |
+
"dependencies": [
|
| 1274 |
+
"maybe :: b -> (a -> b) -> Maybe a -> b",
|
| 1275 |
+
"mempty :: Monoid m => m"
|
| 1276 |
+
]
|
| 1277 |
+
},
|
| 1278 |
+
{
|
| 1279 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/OldList.hs--words",
|
| 1280 |
+
"poly_type": "Monomorphic",
|
| 1281 |
+
"signature": "words :: String -> [String]",
|
| 1282 |
+
"code": "words s = case dropWhile isSpace s of\n emptyStr -> []\n s' -> w : words s''\n where (w, s'') = break isSpace s'",
|
| 1283 |
+
"dependencies": [
|
| 1284 |
+
"break :: (a -> Bool) -> [a] -> ([a],[a])",
|
| 1285 |
+
"dropWhile :: (a -> Bool) -> [a] -> [a]",
|
| 1286 |
+
"isSpace :: Char -> Bool",
|
| 1287 |
+
"emptyStr :: String"
|
| 1288 |
+
]
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/System/IO.hs--putStr",
|
| 1292 |
+
"poly_type": "Monomorphic",
|
| 1293 |
+
"signature": "putStr :: String -> IO ()",
|
| 1294 |
+
"code": "putStr s = hPutStr stdout s",
|
| 1295 |
+
"dependencies": [
|
| 1296 |
+
"hPutStr :: Handle -> String -> IO ()",
|
| 1297 |
+
"stdout :: Handle"
|
| 1298 |
+
]
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--length",
|
| 1302 |
+
"poly_type": "Parametric",
|
| 1303 |
+
"signature": "length :: [a] -> Int",
|
| 1304 |
+
"code": "length xs = lenAcc xs zero",
|
| 1305 |
+
"dependencies": [
|
| 1306 |
+
"lenAcc :: [a] -> Int -> Int",
|
| 1307 |
+
"zero :: Num a => a"
|
| 1308 |
+
]
|
| 1309 |
+
},
|
| 1310 |
+
{
|
| 1311 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--replicate",
|
| 1312 |
+
"poly_type": "Parametric",
|
| 1313 |
+
"signature": "replicate :: Int -> a -> [a]",
|
| 1314 |
+
"code": "replicate n x = take n (repeat x)",
|
| 1315 |
+
"dependencies": [
|
| 1316 |
+
"take :: Int -> [a] -> [a]",
|
| 1317 |
+
"repeat :: a -> [a]"
|
| 1318 |
+
]
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Num.hs--abs-Int",
|
| 1322 |
+
"poly_type": "Monomorphic",
|
| 1323 |
+
"signature": "abs :: Int -> Int",
|
| 1324 |
+
"code": "abs n = if n > zero then n else negate n",
|
| 1325 |
+
"dependencies": [
|
| 1326 |
+
"(>) :: Ord a => a -> a -> Bool",
|
| 1327 |
+
"negate :: Num a => a -> a",
|
| 1328 |
+
"zero :: Int"
|
| 1329 |
+
]
|
| 1330 |
+
},
|
| 1331 |
+
{
|
| 1332 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Tuple.hs--uncurry",
|
| 1333 |
+
"poly_type": "Parametric",
|
| 1334 |
+
"signature": "uncurry :: (a -> b -> c) -> ((a, b) -> c)",
|
| 1335 |
+
"code": "uncurry f p = f (fst p) (snd p)",
|
| 1336 |
+
"dependencies": [
|
| 1337 |
+
"snd :: (a,b) -> b",
|
| 1338 |
+
"fst :: (a,b) -> a"
|
| 1339 |
+
]
|
| 1340 |
+
},
|
| 1341 |
+
{
|
| 1342 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--exponent",
|
| 1343 |
+
"poly_type": "Ad-hoc",
|
| 1344 |
+
"signature": "exponent :: RealFloat a => a -> Int",
|
| 1345 |
+
"code": "exponent x = if m == zero then zero else n + floatDigit \n where (m,n) = decodeFloat x",
|
| 1346 |
+
"dependencies": [
|
| 1347 |
+
"decodeFloat :: RealFloat a => a -> (Integer, Int)",
|
| 1348 |
+
"floatDigits :: RealFloat a => a -> Int",
|
| 1349 |
+
"(+) :: Num a => a -> a -> a",
|
| 1350 |
+
"(==) :: Eq a => a -> a -> Bool",
|
| 1351 |
+
"zero :: Num a => a"
|
| 1352 |
+
]
|
| 1353 |
+
},
|
| 1354 |
+
{
|
| 1355 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--properFraction",
|
| 1356 |
+
"poly_type": "Ad-hoc",
|
| 1357 |
+
"signature": "properFraction :: (RealFrac a, Integral b) => a -> (b,a)",
|
| 1358 |
+
"code": "properFraction (x:%y) = (fromInteger (toInteger q), r:%y)\n where (q,r) = quotRem x y",
|
| 1359 |
+
"dependencies": [
|
| 1360 |
+
"quotRem :: Integral a => a -> a -> (a,a)",
|
| 1361 |
+
"toInteger :: Integral => a -> Integer",
|
| 1362 |
+
"fromInteger :: Integral => Integer -> a",
|
| 1363 |
+
"data Ratio a = !a :% !a",
|
| 1364 |
+
"type Rational = Ratio Integer"
|
| 1365 |
+
]
|
| 1366 |
+
},
|
| 1367 |
+
{
|
| 1368 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Generics.hs--pure-(,)",
|
| 1369 |
+
"poly_type": "Parametric",
|
| 1370 |
+
"signature": "pure :: a0 -> (a, a0)",
|
| 1371 |
+
"code": "pure x = (mempty, x)",
|
| 1372 |
+
"dependencies": [
|
| 1373 |
+
"mempty :: a"
|
| 1374 |
+
]
|
| 1375 |
+
},
|
| 1376 |
+
{
|
| 1377 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Show.hs--showList",
|
| 1378 |
+
"poly_type": "Ad-hoc",
|
| 1379 |
+
"signature": "showList :: Show a => [a] -> ShowS",
|
| 1380 |
+
"code": "showList ls s = showList__ shows ls s",
|
| 1381 |
+
"dependencies": [
|
| 1382 |
+
"showList__ :: (a -> ShowS) -> [a] -> ShowS",
|
| 1383 |
+
"shows :: Show a => a -> ShowS",
|
| 1384 |
+
"type ShowS = String -> String"
|
| 1385 |
+
]
|
| 1386 |
+
},
|
| 1387 |
+
{
|
| 1388 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--lookup",
|
| 1389 |
+
"poly_type": "Ad-hoc",
|
| 1390 |
+
"signature": "lookup :: (Eq a) => a -> [(a,b)] -> Maybe b",
|
| 1391 |
+
"code": "lookup _key [] = Nothing\nlookup key ((x,y):xys)\n | key == x = Just y\n | otherwise = lookup key xys",
|
| 1392 |
+
"dependencies": [
|
| 1393 |
+
"data Maybe a = Nothing | Just a",
|
| 1394 |
+
"(==) :: Eq a => a -> a -> Bool"
|
| 1395 |
+
]
|
| 1396 |
+
},
|
| 1397 |
+
{
|
| 1398 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--isInfinite-Double",
|
| 1399 |
+
"poly_type": "Monomorphic",
|
| 1400 |
+
"signature": "isInfinite :: Double -> Bool",
|
| 1401 |
+
"code": "isInfinite x = 0 /= isDoubleInfinite x",
|
| 1402 |
+
"dependencies": [
|
| 1403 |
+
"isDoubleInfinite :: Double -> Int",
|
| 1404 |
+
"(/=) :: Eq a => a -> a -> Bool"
|
| 1405 |
+
]
|
| 1406 |
+
},
|
| 1407 |
+
{
|
| 1408 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--(!!)",
|
| 1409 |
+
"poly_type": "Parametric",
|
| 1410 |
+
"signature": "(!!) :: [a] -> Int -> a",
|
| 1411 |
+
"code": "xs !! n | n < zero = error \"negative index\"\n[] !! _ = error \"too large\"\n(x:_) !! zero = x\n(_:xs) !! n = xs !! (n-one)",
|
| 1412 |
+
"dependencies": [
|
| 1413 |
+
"(<) :: Ord a => a -> a -> Bool",
|
| 1414 |
+
"(-) :: Num a => a -> a -> a",
|
| 1415 |
+
"zero :: Int",
|
| 1416 |
+
"one :: Int"
|
| 1417 |
+
]
|
| 1418 |
+
},
|
| 1419 |
+
{
|
| 1420 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Traversable.hs--traverse",
|
| 1421 |
+
"poly_type": "Ad-hoc",
|
| 1422 |
+
"signature": "traverse :: (Traversable t, Applicative f) => (a -> f b) -> t a -> f (t b)",
|
| 1423 |
+
"code": "traverse f = sequenceA . fmap f",
|
| 1424 |
+
"dependencies": [
|
| 1425 |
+
"sequenceA :: (Traversable t, Applicative f) => t (f a) -> f (t a)",
|
| 1426 |
+
"(.) :: (b -> c) -> (a -> b) -> a -> c",
|
| 1427 |
+
"fmap :: Functor f => (a -> b) -> f a -> f b"
|
| 1428 |
+
]
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--filter",
|
| 1432 |
+
"poly_type": "Parametric",
|
| 1433 |
+
"signature": "filter :: (a -> Bool) -> [a] -> [a]",
|
| 1434 |
+
"code": "filter f [] = []\nfilter f (x:xs)\n | f x = x : filter f xs\n | otherwise = filter f xs",
|
| 1435 |
+
"dependencies": []
|
| 1436 |
+
},
|
| 1437 |
+
{
|
| 1438 |
+
"task_id": "data/repos/ghc/libraries/ghc-prim/GHC/Classes.hs--(==)",
|
| 1439 |
+
"poly_type": "Ad-hoc",
|
| 1440 |
+
"signature": "(==) :: Eq a => a -> a -> Bool",
|
| 1441 |
+
"code": "x == y = not (x /= y)",
|
| 1442 |
+
"dependencies": [
|
| 1443 |
+
"not :: Bool -> Bool",
|
| 1444 |
+
"(/=) :: Eq a => a -> a -> Bool"
|
| 1445 |
+
]
|
| 1446 |
+
},
|
| 1447 |
+
{
|
| 1448 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--fromEnum-Bool",
|
| 1449 |
+
"poly_type": "Monomorphic",
|
| 1450 |
+
"signature": "fromEnum :: Bool -> Int",
|
| 1451 |
+
"code": "fromEnum False = zero\nfromEnum True = one",
|
| 1452 |
+
"dependencies": [
|
| 1453 |
+
"data Bool = False | True",
|
| 1454 |
+
"zero :: Int",
|
| 1455 |
+
"one :: Int"
|
| 1456 |
+
]
|
| 1457 |
+
},
|
| 1458 |
+
{
|
| 1459 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--toRational-Natural",
|
| 1460 |
+
"poly_type": "Monomorphic",
|
| 1461 |
+
"signature": "toRational :: Natural -> Rational",
|
| 1462 |
+
"code": "toRational n = integerFromNatural n :% one",
|
| 1463 |
+
"dependencies": [
|
| 1464 |
+
"integerFromNatural :: Natural -> Integer",
|
| 1465 |
+
"one :: Integer",
|
| 1466 |
+
"data Ratio a = !a :% !a",
|
| 1467 |
+
"type Rational = Ratio Integer"
|
| 1468 |
+
]
|
| 1469 |
+
},
|
| 1470 |
+
{
|
| 1471 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--tan",
|
| 1472 |
+
"poly_type": "Ad-hoc",
|
| 1473 |
+
"signature": "tan :: Floating a => a -> a",
|
| 1474 |
+
"code": "tan x = sin x / cos x",
|
| 1475 |
+
"dependencies": [
|
| 1476 |
+
"sin :: Floating a => a -> a",
|
| 1477 |
+
"cos :: Floating a => a -> a",
|
| 1478 |
+
"(/) :: Fractional a => a -> a -> a"
|
| 1479 |
+
]
|
| 1480 |
+
},
|
| 1481 |
+
{
|
| 1482 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Base.hs--(<$)",
|
| 1483 |
+
"poly_type": "Ad-hoc",
|
| 1484 |
+
"signature": "(<$) :: Functor f => a -> f b -> f a",
|
| 1485 |
+
"code": "(<$) = fmap . const",
|
| 1486 |
+
"dependencies": [
|
| 1487 |
+
"fmap :: Functor f => (a -> b) -> f a -> f b",
|
| 1488 |
+
"const :: a -> b -> a",
|
| 1489 |
+
"(.) :: (b -> c) -> (a -> b) -> a -> c"
|
| 1490 |
+
]
|
| 1491 |
+
},
|
| 1492 |
+
{
|
| 1493 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Base.hs--mconcat-[]",
|
| 1494 |
+
"poly_type": "Parametric",
|
| 1495 |
+
"signature": "mconcat :: [[a]] -> a",
|
| 1496 |
+
"code": "mconcat xss = [x | xs <- xss, x <- xs]",
|
| 1497 |
+
"dependencies": []
|
| 1498 |
+
},
|
| 1499 |
+
{
|
| 1500 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Foldable.hs--foldMap-(,)",
|
| 1501 |
+
"poly_type": "Ad-hoc",
|
| 1502 |
+
"signature": "foldMap :: Monoid m => (a0 -> m) -> (a, a0) -> m",
|
| 1503 |
+
"code": "foldMap f (_, y) = f y",
|
| 1504 |
+
"dependencies": []
|
| 1505 |
+
},
|
| 1506 |
+
{
|
| 1507 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--gcd",
|
| 1508 |
+
"poly_type": "Ad-hoc",
|
| 1509 |
+
"signature": "gcd :: Integral a => a -> a -> a",
|
| 1510 |
+
"code": "gcd x y = gcd' (abs x) (abs y)\n where \n gcd' a zero = a\n gcd' a b = gcd' b (a `rem` b)",
|
| 1511 |
+
"dependencies": [
|
| 1512 |
+
"abs :: Num a => a -> a",
|
| 1513 |
+
"rem :: Integral a => a -> a -> a",
|
| 1514 |
+
"zero :: Num a => a"
|
| 1515 |
+
]
|
| 1516 |
+
},
|
| 1517 |
+
{
|
| 1518 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Foldable.hs--foldr",
|
| 1519 |
+
"poly_type": "Ad-hoc",
|
| 1520 |
+
"signature": "foldr :: Foldable t => (a -> b -> b) -> b -> t a -> b",
|
| 1521 |
+
"code": "foldr f z t = appEndo (foldMap (Endo #. f) t) z",
|
| 1522 |
+
"dependencies": [
|
| 1523 |
+
"appEndo :: Endo a -> a -> a",
|
| 1524 |
+
"foldMap :: Monoid m => (a -> m) -> t a -> m",
|
| 1525 |
+
"(#.) :: Coercible b c => (b -> c) -> (a -> b) -> (a -> c)"
|
| 1526 |
+
]
|
| 1527 |
+
},
|
| 1528 |
+
{
|
| 1529 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--floatRadix-Float",
|
| 1530 |
+
"poly_type": "Monomorphic",
|
| 1531 |
+
"signature": "floatRadix :: Float -> Integer",
|
| 1532 |
+
"code": "floatRadix x = flt_radix",
|
| 1533 |
+
"dependencies": [
|
| 1534 |
+
"flt_radix :: Integer",
|
| 1535 |
+
"x :: Float"
|
| 1536 |
+
]
|
| 1537 |
+
},
|
| 1538 |
+
{
|
| 1539 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Generics.hs--fmap-[]",
|
| 1540 |
+
"poly_type": "Parametric",
|
| 1541 |
+
"signature": "fmap :: (a -> b) -> [a] -> [b]",
|
| 1542 |
+
"code": "fmap = map",
|
| 1543 |
+
"dependencies": [
|
| 1544 |
+
"map :: (a -> b) -> [a] -> [b]"
|
| 1545 |
+
]
|
| 1546 |
+
},
|
| 1547 |
+
{
|
| 1548 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--take",
|
| 1549 |
+
"poly_type": "Parametric",
|
| 1550 |
+
"signature": "take :: Int -> [a] -> [a]",
|
| 1551 |
+
"code": "take _ [] = []\ntake n (x:xs) = x : take (n-one) xs\ntake n _ | n <= zero = []",
|
| 1552 |
+
"dependencies": [
|
| 1553 |
+
"(<=) :: Ord a => a -> a -> Bool",
|
| 1554 |
+
"(-) :: Num a => a -> a -> a",
|
| 1555 |
+
"zero :: Int",
|
| 1556 |
+
"one :: Int"
|
| 1557 |
+
]
|
| 1558 |
+
},
|
| 1559 |
+
{
|
| 1560 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Foldable.hs--all",
|
| 1561 |
+
"poly_type": "Ad-hoc",
|
| 1562 |
+
"signature": "all :: Foldable t => (a -> Bool) -> t a -> Bool",
|
| 1563 |
+
"code": "all p = getAll #. foldMap (All #. p)",
|
| 1564 |
+
"dependencies": [
|
| 1565 |
+
"foldMap :: Monoid m => (a -> m) -> t a -> m",
|
| 1566 |
+
"(#.) :: Coercible b c => (b -> c) -> (a -> b) -> (a -> c)",
|
| 1567 |
+
"getAll :: All -> Bool",
|
| 1568 |
+
"newtype All = All { getAll :: Bool }"
|
| 1569 |
+
]
|
| 1570 |
+
},
|
| 1571 |
+
{
|
| 1572 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--toEnum-Ordering",
|
| 1573 |
+
"poly_type": "Monomorphic",
|
| 1574 |
+
"signature": "toEnum :: Int -> Ordering",
|
| 1575 |
+
"code": "toEnum n | n == zero = LT\n | n == one = EQ\n | n == two = GT\n | otherwise = error \"bad argument\"",
|
| 1576 |
+
"dependencies": [
|
| 1577 |
+
"data Ordering = LT | EQ | GT",
|
| 1578 |
+
"(==) :: Eq a => a -> a -> Bool",
|
| 1579 |
+
"zero :: Int",
|
| 1580 |
+
"one :: Int",
|
| 1581 |
+
"two :: Int"
|
| 1582 |
+
]
|
| 1583 |
+
},
|
| 1584 |
+
{
|
| 1585 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--pred",
|
| 1586 |
+
"poly_type": "Ad-hoc",
|
| 1587 |
+
"signature": "pred :: Enum a => a -> a",
|
| 1588 |
+
"code": "pred = toEnum . (subtract one) . fromEnum",
|
| 1589 |
+
"dependencies": [
|
| 1590 |
+
"toEnum :: Enum a => Int -> a",
|
| 1591 |
+
"(.) :: (b -> c) -> (a -> b) -> a -> c",
|
| 1592 |
+
"subtract :: Num a => a -> a -> a",
|
| 1593 |
+
"fromEnum :: Enum a => a -> Int",
|
| 1594 |
+
"one :: Int"
|
| 1595 |
+
]
|
| 1596 |
+
},
|
| 1597 |
+
{
|
| 1598 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Base.hs--(*>)",
|
| 1599 |
+
"poly_type": "Ad-hoc ",
|
| 1600 |
+
"signature": "(*>) :: Applicative f => f a -> f b -> f b",
|
| 1601 |
+
"code": "a1 *> a2 = (id <$ a1) <*> a2",
|
| 1602 |
+
"dependencies": [
|
| 1603 |
+
"id :: a -> a",
|
| 1604 |
+
"(<$) :: Functor f => a -> f b -> f a",
|
| 1605 |
+
"(<*>) :: Applicative f => f (a -> b) -> f a -> f b"
|
| 1606 |
+
]
|
| 1607 |
+
},
|
| 1608 |
+
{
|
| 1609 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--last",
|
| 1610 |
+
"poly_type": "Parametric",
|
| 1611 |
+
"signature": "last :: [a] -> a",
|
| 1612 |
+
"code": "last (_:xs) = last xs\nlast [] = error\nlast [x] = x",
|
| 1613 |
+
"dependencies": []
|
| 1614 |
+
},
|
| 1615 |
+
{
|
| 1616 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--zip3",
|
| 1617 |
+
"poly_type": "Parametric",
|
| 1618 |
+
"signature": "zip3 :: [a] -> [b] -> [c] -> [(a,b,c)]",
|
| 1619 |
+
"code": "zip3 (a:as) (b:bs) (c:cs) = (a,b,c) : zip3 as bs cs\nzip3 _ _ _ = []",
|
| 1620 |
+
"dependencies": []
|
| 1621 |
+
},
|
| 1622 |
+
{
|
| 1623 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Show.hs--showParen",
|
| 1624 |
+
"poly_type": "Monomorphic",
|
| 1625 |
+
"signature": "showParen :: Bool -> ShowS -> ShowS",
|
| 1626 |
+
"code": "showParen b p = if b then showChar leftParenthesis . p . showChar rightParenthesis else p",
|
| 1627 |
+
"dependencies": [
|
| 1628 |
+
"showChar :: Char -> ShowS",
|
| 1629 |
+
"(.) :: (b -> c) -> (a -> b) -> a -> c",
|
| 1630 |
+
"leftParenthesis :: Char",
|
| 1631 |
+
"rightParenthesis :: Char",
|
| 1632 |
+
"type ShowS = String -> String"
|
| 1633 |
+
]
|
| 1634 |
+
},
|
| 1635 |
+
{
|
| 1636 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--pred-Int",
|
| 1637 |
+
"poly_type": "Monomorphic",
|
| 1638 |
+
"signature": "pred :: Int -> Int",
|
| 1639 |
+
"code": "pred x = x - one",
|
| 1640 |
+
"dependencies": [
|
| 1641 |
+
"(-) :: Num a => a -> a -> a",
|
| 1642 |
+
"one :: Int"
|
| 1643 |
+
]
|
| 1644 |
+
},
|
| 1645 |
+
{
|
| 1646 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Foldable.hs--foldl",
|
| 1647 |
+
"poly_type": "Parametric",
|
| 1648 |
+
"signature": "foldl :: (b -> a -> b) -> b -> t a -> b",
|
| 1649 |
+
"code": "foldl f z t = appEndo (getDual (foldMap (Dual . Endo . flip f) t)) z",
|
| 1650 |
+
"dependencies": [
|
| 1651 |
+
"appEndo :: Endo a -> a -> a",
|
| 1652 |
+
"getDual :: Dual a -> a",
|
| 1653 |
+
"foldMap :: Monoid m => (a -> m) -> t a -> m",
|
| 1654 |
+
"newtype Dual a = Dual { getDual :: a }",
|
| 1655 |
+
"newtype Endo a = Endo { appEndo :: a -> a }",
|
| 1656 |
+
"flip :: (a -> b -> c) -> b -> a -> c",
|
| 1657 |
+
"(.) :: (a -> a) -> (a -> a) -> (a -> a)"
|
| 1658 |
+
]
|
| 1659 |
+
},
|
| 1660 |
+
{
|
| 1661 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--lcm",
|
| 1662 |
+
"poly_type": "Ad-hoc",
|
| 1663 |
+
"signature": "lcm :: Integral a => a -> a -> a",
|
| 1664 |
+
"code": "lcm zero _ = zero\nlcm _ zero = zero\nlcm x y = abs ((x `quot` (gcd x y)) * y)",
|
| 1665 |
+
"dependencies": [
|
| 1666 |
+
"abs :: Num a => a -> a",
|
| 1667 |
+
"gcd :: Integral a => a -> a -> a",
|
| 1668 |
+
"(*) :: Num a => a -> a -> a",
|
| 1669 |
+
"quot :: Integral a => a -> a -> a",
|
| 1670 |
+
"zero :: Num a => a"
|
| 1671 |
+
]
|
| 1672 |
+
},
|
| 1673 |
+
{
|
| 1674 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--succ",
|
| 1675 |
+
"poly_type": "Ad-hoc",
|
| 1676 |
+
"signature": "succ :: Enum a => a -> a",
|
| 1677 |
+
"code": "succ = toEnum . (+ one) . fromEnum",
|
| 1678 |
+
"dependencies": [
|
| 1679 |
+
"toEnum :: Enum a => Int -> a",
|
| 1680 |
+
"(.) :: (b -> c) -> (a -> b) -> a -> c",
|
| 1681 |
+
"(+) :: Num a => a -> a -> a",
|
| 1682 |
+
"fromEnum :: Enum a => a -> Int",
|
| 1683 |
+
"one :: Int"
|
| 1684 |
+
]
|
| 1685 |
+
},
|
| 1686 |
+
{
|
| 1687 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Enum.hs--toEnum-Char",
|
| 1688 |
+
"poly_type": "Monomorphic",
|
| 1689 |
+
"signature": "toEnum :: Int -> Char",
|
| 1690 |
+
"code": "toEnum = chr",
|
| 1691 |
+
"dependencies": [
|
| 1692 |
+
"chr :: Int -> Char"
|
| 1693 |
+
]
|
| 1694 |
+
},
|
| 1695 |
+
{
|
| 1696 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Num.hs--abs-Natural",
|
| 1697 |
+
"poly_type": "Monomorphic",
|
| 1698 |
+
"signature": "abs :: Natural -> Natural",
|
| 1699 |
+
"code": "abs x = id x",
|
| 1700 |
+
"dependencies": [
|
| 1701 |
+
"id :: a -> a",
|
| 1702 |
+
"x :: Natural"
|
| 1703 |
+
]
|
| 1704 |
+
},
|
| 1705 |
+
{
|
| 1706 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Generics.hs--fmap-Either",
|
| 1707 |
+
"poly_type": "Parametric",
|
| 1708 |
+
"signature": "fmap :: (a0 -> b) -> Either a a0 -> Either a b",
|
| 1709 |
+
"code": "fmap _ (Left x) = Left x\nfmap f (Right y) = Right (f y)",
|
| 1710 |
+
"dependencies": [
|
| 1711 |
+
"data Either a b = Left a | Right b"
|
| 1712 |
+
]
|
| 1713 |
+
},
|
| 1714 |
+
{
|
| 1715 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Foldable.hs--any",
|
| 1716 |
+
"poly_type": "Ad-hoc",
|
| 1717 |
+
"signature": "any :: Foldable t => (a -> Bool) -> t a -> Bool",
|
| 1718 |
+
"code": "any p = getAny #. foldMap (Any #. p)",
|
| 1719 |
+
"dependencies": [
|
| 1720 |
+
"foldMap :: Monoid m => (a -> m) -> t a -> m",
|
| 1721 |
+
"(#.) :: Coercible b c => (b -> c) -> (a -> b) -> (a -> c)",
|
| 1722 |
+
"getAny :: Any -> Bool",
|
| 1723 |
+
"newtype Any = Any {getAny :: Bool}"
|
| 1724 |
+
]
|
| 1725 |
+
},
|
| 1726 |
+
{
|
| 1727 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--cycle",
|
| 1728 |
+
"poly_type": "Parametric",
|
| 1729 |
+
"signature": "cycle :: [a] -> [a]",
|
| 1730 |
+
"code": "cycle [] = error\ncycle xs = xs' where xs' = xs ++ xs'",
|
| 1731 |
+
"dependencies": [
|
| 1732 |
+
"(++) :: [a] -> [a] -> [a]"
|
| 1733 |
+
]
|
| 1734 |
+
},
|
| 1735 |
+
{
|
| 1736 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Traversable.hs--sequenceA",
|
| 1737 |
+
"poly_type": "Ad-hoc",
|
| 1738 |
+
"signature": "sequenceA :: (Traversable t, Applicative f) => t (f a) -> f (t a)",
|
| 1739 |
+
"code": "sequenceA = traverse id",
|
| 1740 |
+
"dependencies": [
|
| 1741 |
+
"traverse :: (Traversable t, Applicative f) => (a -> f b) -> t a -> f (t b)",
|
| 1742 |
+
"id :: a -> a"
|
| 1743 |
+
]
|
| 1744 |
+
},
|
| 1745 |
+
{
|
| 1746 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--head",
|
| 1747 |
+
"poly_type": "Parametric",
|
| 1748 |
+
"signature": "head :: [a] -> a",
|
| 1749 |
+
"code": "head (x:_) = x\nhead [] = error \"empty\"",
|
| 1750 |
+
"dependencies": []
|
| 1751 |
+
},
|
| 1752 |
+
{
|
| 1753 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--isInfinite-Float",
|
| 1754 |
+
"poly_type": "Monomorphic",
|
| 1755 |
+
"signature": "isInfinite :: Float -> Bool",
|
| 1756 |
+
"code": "isInfinite x = zero /= isFloatInfinite x",
|
| 1757 |
+
"dependencies": [
|
| 1758 |
+
"isFloatInfinite :: Float -> Int",
|
| 1759 |
+
"(/=) :: Eq a => a -> a -> Bool",
|
| 1760 |
+
"zero :: Int"
|
| 1761 |
+
]
|
| 1762 |
+
},
|
| 1763 |
+
{
|
| 1764 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Base.hs--(<*)",
|
| 1765 |
+
"poly_type": "Ad-hoc ",
|
| 1766 |
+
"signature": "(<*) :: Applicative f => f a -> f b -> f a",
|
| 1767 |
+
"code": "(<*) = liftA2 const",
|
| 1768 |
+
"dependencies": [
|
| 1769 |
+
"liftA2 :: Applicative f => (a -> b -> c) -> f a -> f b -> f c",
|
| 1770 |
+
"const :: a -> b -> a"
|
| 1771 |
+
]
|
| 1772 |
+
},
|
| 1773 |
+
{
|
| 1774 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Show.hs--show",
|
| 1775 |
+
"poly_type": "Ad-hoc",
|
| 1776 |
+
"signature": "show :: Show a => a -> String",
|
| 1777 |
+
"code": "show x = shows x emptyStr",
|
| 1778 |
+
"dependencies": [
|
| 1779 |
+
"shows :: (Show a) => a -> ShowS",
|
| 1780 |
+
"type ShowS = String -> String",
|
| 1781 |
+
"emptyStr :: String"
|
| 1782 |
+
]
|
| 1783 |
+
},
|
| 1784 |
+
{
|
| 1785 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/List.hs--zip",
|
| 1786 |
+
"poly_type": "Parametric",
|
| 1787 |
+
"signature": "zip :: [a] -> [b] -> [(a,b)]",
|
| 1788 |
+
"code": "zip (a:as) (b:bs) = (a,b) : zip as bs\nzip [] _bs = []\nzip _as [] = []",
|
| 1789 |
+
"dependencies": []
|
| 1790 |
+
},
|
| 1791 |
+
{
|
| 1792 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Num.hs--negate",
|
| 1793 |
+
"poly_type": "Ad-hoc",
|
| 1794 |
+
"signature": "negate :: Num a => a -> a",
|
| 1795 |
+
"code": "negate x = zero - x",
|
| 1796 |
+
"dependencies": [
|
| 1797 |
+
"(-) :: Num a => a -> a -> a",
|
| 1798 |
+
"zero :: Num a => a"
|
| 1799 |
+
]
|
| 1800 |
+
},
|
| 1801 |
+
{
|
| 1802 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--mod",
|
| 1803 |
+
"poly_type": "Ad-hoc",
|
| 1804 |
+
"signature": "mod :: Integral a => a -> a -> a",
|
| 1805 |
+
"code": "n `mod` d = snd (divMod n d)",
|
| 1806 |
+
"dependencies": [
|
| 1807 |
+
"snd :: (a, b) -> b",
|
| 1808 |
+
"divMod :: Integral a => a -> a -> (a, a)"
|
| 1809 |
+
]
|
| 1810 |
+
},
|
| 1811 |
+
{
|
| 1812 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--floor",
|
| 1813 |
+
"poly_type": "Ad-hoc",
|
| 1814 |
+
"signature": "floor :: (RealFrac a, Integral b) => a -> b",
|
| 1815 |
+
"code": "floor x = if r < zero then n - one else n\n where (n,r) = properFraction x",
|
| 1816 |
+
"dependencies": [
|
| 1817 |
+
"properFraction :: (RealFrac a, Integral b) => a -> (b, a)",
|
| 1818 |
+
"(-) :: Num a => a -> a -> a",
|
| 1819 |
+
"(<) :: Ord a => a -> a -> Bool",
|
| 1820 |
+
"zero :: Num a => a",
|
| 1821 |
+
"one :: Num a => a"
|
| 1822 |
+
]
|
| 1823 |
+
},
|
| 1824 |
+
{
|
| 1825 |
+
"task_id": "data/repos/libraries/ghc-prim/GHC/Classes.hs--compare",
|
| 1826 |
+
"poly_type": "Ad-hoc",
|
| 1827 |
+
"signature": "compare :: Ord a => a -> a -> Ordering",
|
| 1828 |
+
"code": "compare x y = if x == y then EQ\n else if x <= y then LT\n else GT",
|
| 1829 |
+
"dependencies": [
|
| 1830 |
+
"(==) :: Eq a => a -> a -> Bool",
|
| 1831 |
+
"(<=) :: Ord a => a -> a -> Bool",
|
| 1832 |
+
"data Ordering = LT | EQ | GT"
|
| 1833 |
+
]
|
| 1834 |
+
},
|
| 1835 |
+
{
|
| 1836 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/System/IO.hs--appendFile",
|
| 1837 |
+
"poly_type": "Monomorphic",
|
| 1838 |
+
"signature": "appendFile :: FilePath -> String -> IO ()",
|
| 1839 |
+
"code": "appendFile f txt = withFile f AppendMode (\\ hdl -> hPutStr hdl txt)",
|
| 1840 |
+
"dependencies": [
|
| 1841 |
+
"hPutStr :: Handle -> String -> IO ()",
|
| 1842 |
+
"withFile :: FilePath -> IOMode -> (Handle -> IO r) -> IO r",
|
| 1843 |
+
"data IOMode = ReadMode | WriteMode | AppendMode | ReadWriteMode"
|
| 1844 |
+
]
|
| 1845 |
+
},
|
| 1846 |
+
{
|
| 1847 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Num.hs--negate-Int",
|
| 1848 |
+
"poly_type": "Monomorphic",
|
| 1849 |
+
"signature": "negate :: Int -> Int",
|
| 1850 |
+
"code": "negate x = zero - x",
|
| 1851 |
+
"dependencies": [
|
| 1852 |
+
"(-) :: Num a => a -> a -> a",
|
| 1853 |
+
"zero :: Int"
|
| 1854 |
+
]
|
| 1855 |
+
},
|
| 1856 |
+
{
|
| 1857 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--logBase",
|
| 1858 |
+
"poly_type": "Ad-hoc",
|
| 1859 |
+
"signature": "logBase :: Floating a => a -> a -> a",
|
| 1860 |
+
"code": "logBase x y = log y / log x",
|
| 1861 |
+
"dependencies": [
|
| 1862 |
+
"log :: Floating a => a -> a",
|
| 1863 |
+
"(/) :: Fractional a => a -> a -> a"
|
| 1864 |
+
]
|
| 1865 |
+
},
|
| 1866 |
+
{
|
| 1867 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Float.hs--scaleFloat",
|
| 1868 |
+
"poly_type": "Ad-hoc",
|
| 1869 |
+
"signature": "scaleFloat :: RealFloat a => Int -> a -> a",
|
| 1870 |
+
"code": "scaleFloat zero x = x\nscaleFloat zero x = x\nscaleFloat zero x = x\nscaleFloat k x\n | isFix = x\n | otherwise = encodeFloat m (n + clamp b k)\n where (m,n) = decodeFloat x\n (l,h) = floatRange x\n d = floatDigits x\n b = h - l + four*d\n isFix = x == zero || isNaN x || isInfinite x",
|
| 1871 |
+
"dependencies": [
|
| 1872 |
+
"floatDigits :: RealFloat a => a -> Int",
|
| 1873 |
+
"floatRange :: RealFloat a => a -> (Int,Int)",
|
| 1874 |
+
"(*) :: Num a => a -> a -> a",
|
| 1875 |
+
"(+) :: Num a => a -> a -> a",
|
| 1876 |
+
"isInfinite :: RealFloat a => a -> Bool",
|
| 1877 |
+
"encodeFloat :: RealFloat a => Integer -> Int -> a",
|
| 1878 |
+
"clamp :: (Ord a) => (a, a) -> a -> a",
|
| 1879 |
+
"decodeFloat :: RealFloat a => a -> (Integer,Int)",
|
| 1880 |
+
"isNaN :: RealFloat a => a -> Bool",
|
| 1881 |
+
"(==) :: Eq a => a -> a -> Bool",
|
| 1882 |
+
"zero :: Int",
|
| 1883 |
+
"four :: Int"
|
| 1884 |
+
]
|
| 1885 |
+
},
|
| 1886 |
+
{
|
| 1887 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Real.hs--toRational-Integer",
|
| 1888 |
+
"poly_type": "Monomorphic",
|
| 1889 |
+
"signature": "toRational :: Integer -> Rational",
|
| 1890 |
+
"code": "toRational x = x :% one",
|
| 1891 |
+
"dependencies": [
|
| 1892 |
+
"one :: Integer",
|
| 1893 |
+
"data Ratio a = !a :% !a",
|
| 1894 |
+
"type Rational = Ratio Integer"
|
| 1895 |
+
]
|
| 1896 |
+
},
|
| 1897 |
+
{
|
| 1898 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Base.hs--mconcat",
|
| 1899 |
+
"poly_type": "Ad-hoc",
|
| 1900 |
+
"signature": "mconcat :: Monoid a => [a] -> a",
|
| 1901 |
+
"code": "mconcat = foldr mappend mempty",
|
| 1902 |
+
"dependencies": [
|
| 1903 |
+
"foldr :: (a -> b -> b) -> b -> [a] -> b",
|
| 1904 |
+
"mappend :: Monoid a => a -> a -> a",
|
| 1905 |
+
"mempty :: Monoid a => a"
|
| 1906 |
+
]
|
| 1907 |
+
},
|
| 1908 |
+
{
|
| 1909 |
+
"task_id": "data/repos/ghc-internal-9.1001.0/src/GHC/Internal/Data/Foldable.hs--foldMap-List",
|
| 1910 |
+
"poly_type": "Ad-hoc",
|
| 1911 |
+
"signature": "foldMap :: Monoid m => (a -> m) -> [a] -> m",
|
| 1912 |
+
"code": "foldMap = (mconcat .) . map",
|
| 1913 |
+
"dependencies": [
|
| 1914 |
+
"mconcat :: Monoid a => [a] -> a",
|
| 1915 |
+
"(.) :: (b -> c) -> (a -> b) -> a -> c",
|
| 1916 |
+
"map :: (a -> b) -> [a] -> [b]"
|
| 1917 |
+
]
|
| 1918 |
+
}
|
| 1919 |
+
]
|