chunk_id
large_stringlengths
7
11
question_id
large_stringlengths
4
8
language
large_stringclasses
1 value
chunk_index
int64
0
6
chunk_text
large_stringlengths
127
3.8k
sparse_text
large_stringlengths
120
5.55k
dense_vector
listlengths
3.58k
3.58k
sparse_indices
listlengths
2
238
sparse_values
listlengths
2
238
export_source
large_stringclasses
1 value
20168703_c0
20168703
haskell
0
Title: Define function in Haskell using foldr Problem title: Define function in Haskell using foldr Tags: fold, digits, haskell, decimal Problem: Define function in Haskell using foldr I'm trying to define a function in Haskell using the foldr function: fromDigits :: [Int] -> Int This function takes a list of Ints (eac...
Define function in Haskell using foldr Define function in Haskell using foldr fold digits haskell decimal foldr Define Haskell Define function in Haskell using foldr I'm trying to define a function in Haskell using the foldr function: This function takes a list of Ints (each on ranging from 0 to 9) and converts to a si...
[ -0.007476806640625, 0.005279541015625, -0.00872802734375, -0.0118408203125, -0.017333984375, 0.0208740234375, -0.0096435546875, 0.00970458984375, -0.020263671875, -0.043212890625, -0.00555419921875, -0.0208740234375, -0.015625, 0.02685546875, -0.00885009765625, -0.00080108642578125, ...
[ 262, 64552, 32354, 23, 20625, 142508, 17368, 18344, 7569, 42822, 153939, 1556, 32380, 2749, 31577, 61924, 51776, 5303, 360, 933, 41581, 17163, 757, 47, 77816, 96760, 11001, 18, 63134, 13204, 143726, 195625, 68330, 194583, 3714, 2046, 14537, 7...
[ 0.0887451171875, 0.2093505859375, 0.2276611328125, 0.0601806640625, 0.1197509765625, 0.23876953125, 0.0733642578125, 0.142822265625, 0.2265625, 0.1728515625, 0.134521484375, 0.11474609375, 0.107666015625, 0.06512451171875, 0.0282135009765625, 0.1744384765625, 0.09051513671875, 0.10...
embed
71814780_c0
71814780
haskell
0
Title: How to only implement part of the parameters of the MultiParamTypeClasses Problem title: How to only implement part of the parameters of the MultiParamTypeClasses Tags: gadt, typeclass, haskell Problem: How to only implement part of the parameters of the MultiParamTypeClasses How to write Haskell code like (with...
How to only implement part of the parameters of the MultiParamTypeClasses How to only implement part of the parameters of the MultiParamTypeClasses gadt typeclass haskell How MultiParamTypeClasses GADTs MyClass MyData Cons1 Cons2 How to only implement part of the parameters of the MultiParamTypeClasses How to write Has...
[ -0.0140380859375, -0.0026092529296875, 0.014404296875, 0.006103515625, -0.0126953125, 0.0079345703125, -0.00518798828125, -0.01904296875, 0.002593994140625, 0.003021240234375, -0.0026092529296875, -0.033203125, 0.006072998046875, 0.01470947265625, -0.00093841552734375, -0.031982421875,...
[ 11249, 4734, 29479, 2831, 111, 171859, 7, 19335, 55292, 39, 196707, 140803, 47, 914, 13384, 10644, 67413, 1556, 142508, 23749, 41072, 2646, 137989, 39215, 418, 304, 90, 33022, 20625, 18151, 1884, 76228, 46876, 111938, 136, 12921, 10, 18, 76...
[ 0.024200439453125, 0.15673828125, 0.218017578125, 0.1455078125, 0.034423828125, 0.2158203125, 0.098388671875, 0.1827392578125, 0.1351318359375, 0.0295562744140625, 0.20556640625, 0.19140625, 0.0170135498046875, 0.0987548828125, 0.166259765625, 0.1273193359375, 0.1239013671875, 0.15...
embed
42778550_c0
42778550
haskell
0
Title: Mapping list with function in Haskell Problem title: Mapping list with function in Haskell Tags: haskell Problem: Mapping list with function in Haskell I am new to Haskell and I'm trying to change the position of a drawn path. let redPath = Path[Point 420 750, Point 420 550] red Solid drawPicture 10 [redPath, mo...
Mapping list with function in Haskell Mapping list with function in Haskell haskell Mapping Haskell Path Point Solid Vector PictureObject Mapping list with function in Haskell I am new to Haskell and I'm trying to change the position of a drawn path. The functions movePictureObject and movePoint should change every poi...
[ -0.01434326171875, 0.003265380859375, -0.0069580078125, 0.004547119140625, -0.00003981590270996094, 0.0242919921875, -0.0036163330078125, -0.0023040771484375, -0.0042724609375, -0.02734375, -0.01446533203125, -0.00909423828125, -0.002685546875, 0.013916015625, -0.02734375, -0.011901855...
[ 911, 26783, 5303, 678, 32354, 23, 20625, 142508, 1556, 108421, 41097, 95823, 2609, 18770, 158656, 46471, 75161, 444, 3525, 47, 31577, 15549, 19069, 79442, 60875, 7, 25813, 683, 1771, 6644, 136, 147534, 5608, 11907, 6275, 111, 34475, 173, 95...
[ 0.201171875, 0.1287841796875, 0.22265625, 0.152099609375, 0.2330322265625, 0.046478271484375, 0.160400390625, 0.238037109375, 0.148681640625, 0.155517578125, 0.1514892578125, 0.1700439453125, 0.1585693359375, 0.15966796875, 0.192138671875, 0.162109375, 0.1783447265625, 0.0110778808...
embed
44202793_c2
44202793
haskell
2
(2): * SSL certificate problem: unable to get local issuer certificate * Closing connection 0 curl: (60) SSL certificate problem: unable to get local issuer certificate I am currently trying to import the missing certs into curl-ca-bundle.crt but I'm Code signals: InternalException, HttpExceptionRequest, CertificateUn...
(2): * SSL certificate problem: unable to get local issuer certificate * Closing connection 0 curl: (60) SSL certificate problem: unable to get local issuer certificate I am currently trying to import the missing certs into curl-ca-bundle.crt but I'm Code signals: InternalException, HttpExceptionRequest, CertificateUn...
[ 0.007171630859375, 0.01287841796875, 0.0084228515625, 0.0238037109375, -0.01025390625, -0.0067138671875, 0.01373291015625, -0.019287109375, -0.00982666015625, 0.021728515625, 0.0087890625, -0.033935546875, 0.0113525390625, 0.004608154296875, -0.00102996826171875, -0.00640869140625, -...
[ 1737, 103527, 163769, 2967, 51, 2886, 47, 2046, 4000, 31089, 42, 51053, 6953, 94878, 9709, 141, 88586, 31577, 24927, 132283, 35649, 7, 408, 28025, 133, 23150, 18, 28864, 26073, 106745, 63928, 3062, 75616, 83991, 14256, 69723, 40647, 527, 21...
[ 0.0374755859375, 0.221923828125, 0.217041015625, 0.15869140625, 0.07269287109375, 0.15625, 0.009674072265625, 0.1229248046875, 0.1773681640625, 0.15185546875, 0.115478515625, 0.12744140625, 0.08197021484375, 0.130615234375, 0.142822265625, 0.139892578125, 0.0938720703125, 0.0375061...
embed
30440377_c0
30440377
haskell
0
Title: Usefulness of "function arrows associate to the right"? Problem title: Usefulness of "function arrows associate to the right"? Tags: haskell Problem: Usefulness of "function arrows associate to the right"? Reading http://www.seas.upenn.edu/~cis194/spring13/lectures/04-higher-order.html it sta...
Usefulness of "function arrows associate to the right"? Usefulness of "function arrows associate to the right"? haskell Usefulness Usefulness of "function arrows associate to the right"? Reading http://www.seas.upenn.edu/~cis194/spring13/lectures/04-higher-order.html it states Function arrows associ...
[ 0.017333984375, 0.01025390625, 0.01385498046875, 0.006866455078125, -0.01092529296875, -0.002410888671875, 0.008056640625, -0.013671875, 0.0152587890625, -0.012451171875, 0.01611328125, -0.01214599609375, -0.0093994140625, -0.0033111572265625, 0.004608154296875, -0.01318359375, -0.01...
[ 36836, 7844, 7432, 137175, 118201, 7, 30699, 67, 47, 70, 7108, 1556, 142508, 104951, 184, 162, 15246, 79832, 101969, 84396, 80596, 28670, 10763, 32354, 38415, 25737, 80234, 4677, 100094, 91084, 9393, 6275, 11343, 166027, 3760 ]
[ 0.181884765625, 0.128662109375, 0.039794921875, 0.23046875, 0.2435302734375, 0.0657958984375, 0.197021484375, 0.0826416015625, 0.127197265625, 0.07879638671875, 0.2279052734375, 0.120361328125, 0.199951171875, 0.002777099609375, 0.03607177734375, 0.00775146484375, 0.005096435546875, ...
embed
31087004_c0
31087004
haskell
0
Title: Print NominalDiffTime as hours, minutes and seconds Problem title: Print NominalDiffTime as hours, minutes and seconds Tags: formatting, time, haskell Problem: Print NominalDiffTime as hours, minutes and seconds I'm surprised nobody has asked this before, but... How do I trivially print a NominalDiffTime as hour...
Print NominalDiffTime as hours, minutes and seconds Print NominalDiffTime as hours, minutes and seconds formatting time haskell Print NominalDiffTime Show FormatTime DiffTime Print NominalDiffTime as hours, minutes and seconds I'm surprised nobody has asked this before, but... How do I trivially print a NominalDiffTime...
[ -0.0016632080078125, 0.00714111328125, 0.009521484375, 0.002410888671875, -0.005859375, -0.0023345947265625, -0.00299072265625, 0.0042724609375, 0.0002384185791015625, -0.00494384765625, -0.0211181640625, -0.034423828125, -0.00787353515625, 0.0068359375, -0.0306396484375, 0.00270080566...
[ 39754, 438, 1249, 289, 397, 32920, 70059, 237, 21974, 14633, 136, 94131, 9384, 1733, 1556, 142508, 17367, 60972, 191144, 144285, 37170, 11249, 1927, 686, 28412, 144681, 13312, 2174, 96276, 4989, 110527, 3622, 171259, 4527, 9393, 17480, 171074, ...
[ 0.189453125, 0.0814208984375, 0.1343994140625, 0.08056640625, 0.086181640625, 0.19189453125, 0.2362060546875, 0.0809326171875, 0.2152099609375, 0.196044921875, 0.039306640625, 0.234619140625, 0.139404296875, 0.1522216796875, 0.0885009765625, 0.179931640625, 0.213623046875, 0.174316...
embed
55529449_c0
55529449
haskell
0
Title: Haskell - fast naming of projection functions Problem title: Haskell - fast naming of projection functions Tags: first-class-functions, function-composition, currying, haskell Problem: Haskell - fast naming of projection functions Suppose I want to define a function f in terms of some other predefined function g...
Haskell - fast naming of projection functions Haskell - fast naming of projection functions first-class-functions function-composition currying haskell Haskell Square Haskell - fast naming of projection functions Suppose I want to define a function f in terms of some other predefined function g as follows: That is, I w...
[ 0.000926971435546875, -0.0017242431640625, 0.0025482177734375, -0.00384521484375, 0.000385284423828125, 0.00145721435546875, -0.0179443359375, 0.008544921875, 0.00677490234375, -0.0047607421875, 0.0142822265625, 0.0179443359375, -0.0115966796875, -0.004791259765625, -0.01080322265625, ...
[ 20625, 142508, 4271, 147453, 13452, 1830, 32354, 5117, 67413, 137175, 277, 198555, 214, 1556, 68305, 3444, 61924, 1238, 69407, 3789, 1653, 13, 5983, 706, 28960, 54753, 454, 360, 18, 103607, 4153, 5701, 18507, 80934, 108047, 88225, 62068, 3560...
[ 0.1307373046875, 0.2413330078125, 0.130859375, 0.1688232421875, 0.196044921875, 0.119140625, 0.1934814453125, 0.0716552734375, 0.1102294921875, 0.162353515625, 0.0284423828125, 0.2249755859375, 0.1141357421875, 0.1070556640625, 0.13525390625, 0.044708251953125, 0.1727294921875, 0.1...
embed
58128081_c0
58128081
haskell
0
Title: Tail recursive way to sort and merge two lists Problem title: Tail recursive way to sort and merge two lists Tags: haskell, list Problem: Tail recursive way to sort and merge two lists I'm trying to write a tail recursive way to merge two sorted lists into a single sorted list. Here is what I have. First I have ...
Tail recursive way to sort and merge two lists Tail recursive way to sort and merge two lists haskell list Tail merge2 Ord x:xs y:ys x:accum Tail recursive way to sort and merge two lists I'm trying to write a tail recursive way to merge two sorted lists into a single sorted list. Here is what I have. First I have non ...
[ 0.013427734375, 0.0206298828125, 0.0068359375, 0.0008087158203125, 0.0196533203125, 0.0257568359375, -0.0159912109375, -0.028564453125, 0.0108642578125, 0.020263671875, 0.0189208984375, -0.004669189453125, 0.0191650390625, -0.00096893310546875, 0.0235595703125, -0.00640869140625, -0....
[ 1218, 379, 195625, 5844, 3917, 12096, 136, 42564, 6626, 5303, 47, 1556, 142508, 304, 35379, 1022, 425, 113, 4778, 10591, 31577, 33022, 46741, 17497, 71, 3934, 11001, 23972, 351, 107730, 9874, 90173, 82449, 41206, 2046, 133063, 140992, 64457, ...
[ 0.1893310546875, 0.139892578125, 0.200927734375, 0.1192626953125, 0.1302490234375, 0.210205078125, 0.0565185546875, 0.220458984375, 0.1475830078125, 0.1898193359375, 0.010528564453125, 0.1165771484375, 0.1942138671875, 0.10400390625, 0.15185546875, 0.0142822265625, 0.029815673828125,...
embed
62284247_c0
62284247
haskell
0
Title: Hiding away constraints in Haskell Problem title: Hiding away constraints in Haskell Tags: haskell Problem: Hiding away constraints in Haskell If you use some function that has a bunch of constraints f :: (C_0, ..., C_n) => .... And f is used in the definition of g , then g requires these constraints as well. Ho...
Hiding away constraints in Haskell Hiding away constraints in Haskell haskell Hiding Haskell C_0 C_n CanApplyF Hiding away constraints in Haskell If you use some function that has a bunch of constraints And f is used in the definition of g , then g requires these constraints as well. However, these constraints might re...
[ 0, 0.002838134765625, 0.008056640625, 0.007293701171875, 0.007415771484375, -0.005706787109375, -0.0096435546875, -0.00762939453125, -0.0021514892578125, -0.020263671875, -0.0230712890625, -0.0233154296875, -0.02294921875, 0.021240234375, 0.00360107421875, -0.010498046875, 0.01458740...
[ 72483, 214, 16065, 158, 2816, 4288, 20625, 142508, 1556, 313, 454, 2389, 19, 4171, 39179, 538, 919, 4527, 32354, 147306, 1238, 11814, 80934, 706, 144570, 15005, 8966, 959, 107419, 13648, 95, 4677, 29479, 82091, 1274, 6238, 37842, 8705, 2301...
[ 0.18115234375, 0.040130615234375, 0.1812744140625, 0.140625, 0.2196044921875, 0.1658935546875, 0.162841796875, 0.249755859375, 0.141357421875, 0.0859375, 0.09326171875, 0.156005859375, 0.111083984375, 0.1376953125, 0.1378173828125, 0.121826171875, 0.13427734375, 0.07855224609375, ...
embed
52134945_c0
52134945
haskell
0
Title: Could not find module 'Data.Set' Problem title: Could not find module 'Data.Set' Tags: fedora-28, haskell Problem: Could not find module 'Data.Set' I have the following RPM packages installed on my Fedora 28 system: ghc-ghc-8.2.2-66 ghc-containers-0.5.10.2-66 According to hackage the set modu...
Could not find module 'Data.Set' Could not find module 'Data.Set' fedora-28 haskell Data.Set base-4.10.1.0 Could ghc-ghc-8.2.2-66 ghc-containers-0.5.10.2-66 Perhaps Data.Int lib64 ghc-8.2.2 package.conf.d ghc-prim-0.5.1.1 integer-gmp-1.0.1.0 rts-1.0 fedora-28 Could not find module 'Data.Set' I have ...
[ 0.005523681640625, 0.0096435546875, -0.00095367431640625, 0.01025390625, -0.0014801025390625, 0.0111083984375, 0.00689697265625, -0.00469970703125, -0.0013885498046875, -0.007049560546875, -0.00982666015625, -0.02685546875, 0.013427734375, 0.005401611328125, -0.01611328125, 0.018066406...
[ 191147, 959, 7413, 88996, 3768, 137989, 5, 294, 126, 3820, 11606, 48590, 1556, 142508, 11809, 3647, 11565, 10179, 102107, 31380, 238, 9486, 17376, 70147, 14604, 98102, 73, 1314, 93645, 4153, 18, 25474, 13307, 98169, 70547, 35188, 83783, 892, ...
[ 0.079833984375, 0.09832763671875, 0.1475830078125, 0.24169921875, 0.014251708984375, 0.186279296875, 0.0684814453125, 0.1922607421875, 0.219482421875, 0.06561279296875, 0.135986328125, 0.2095947265625, 0.1119384765625, 0.197998046875, 0.14794921875, 0.14306640625, 0.058624267578125, ...
embed
70615908_c0
70615908
haskell
0
Title: Haskell stack in a project-specific location Problem title: Haskell stack in a project-specific location Tags: haskell-stack, haskell Problem: Haskell stack in a project-specific location I'm following the guide here , which tells me: The stack setup will download the compiler if necessary in an isolated locatio...
Haskell stack in a project-specific location Haskell stack in a project-specific location haskell-stack haskell Haskell Haskell stack in a project-specific location I'm following the guide here , which tells me: I'm trying to use a custom location, such as ~/myproject/myenvironment . When I use the stack path command, ...
[ -0.007293701171875, 0.022216796875, -0.002716064453125, -0.00018310546875, -0.0040283203125, -0.004547119140625, -0.0000553131103515625, 0.002777099609375, -0.00005269050598144531, 0.021728515625, -0.0181884765625, 0.005218505859375, 0.012939453125, -0.0029449462890625, -0.0025634765625,...
[ 20625, 142508, 177261, 23, 13452, 159975, 31913, 10, 1556, 590, 2594, 25632, 17997, 31577, 4527, 114122, 6780, 64, 1176, 95322, 153210, 60875, 75101, 1957, 5915, 148920, 153837, 87632, 3917, 53550, 11249, 831, 40, 944, 1515, 759, 47, 959, 1...
[ 0.16015625, 0.26171875, 0.267333984375, 0.0888671875, 0.1669921875, 0.2275390625, 0.225830078125, 0.0281524658203125, 0.1475830078125, 0.175048828125, 0.1649169921875, 0.04071044921875, 0.060821533203125, 0.04779052734375, 0.0771484375, 0.201171875, 0.056671142578125, 0.04516601562...
embed
45044244_c0
45044244
haskell
0
Title: What Time Complexity Does Haskell's "tail"-Function Have? Problem title: What Time Complexity Does Haskell's "tail"-Function Have? Tags: haskell Problem: What Time Complexity Does Haskell's "tail"-Function Have? I was reading a tutorial on Haskell when I thought to myself; what time...
What Time Complexity Does Haskell's "tail"-Function Have? What Time Complexity Does Haskell's "tail"-Function Have? haskell What Time Complexity Does Haskell Have What Time Complexity Does Haskell's "tail"-Function Have? I was reading a tutorial on Haskell when I thought to myself; what ti...
[ 0.01611328125, 0.0169677734375, 0.023681640625, 0.004150390625, 0.0113525390625, -0.006988525390625, 0.0003871917724609375, -0.033447265625, 0.00396728515625, -0.041748046875, 0.0186767578125, -0.028564453125, 0.0155029296875, -0.001190185546875, -0.00958251953125, 0.01104736328125, ...
[ 4865, 19055, 113197, 2481, 101790, 20625, 142508, 3768, 46741, 97249, 10763, 31901, 1556, 16454, 57143, 17569, 35978, 2367, 1733, 27140, 14602, 32354, 765, 15400, 35166, 209806, 57767, 100, 5303, 13267, 653, 2806, 186, 180, 132, 19, 43658, 64...
[ 0.092041015625, 0.208251953125, 0.2484130859375, 0.1298828125, 0.08154296875, 0.164306640625, 0.278076171875, 0.07623291015625, 0.29052734375, 0.1986083984375, 0.07177734375, 0.1251220703125, 0.1422119140625, 0.01251220703125, 0.0782470703125, 0.01220703125, 0.00689697265625, 0.074...
embed
58331173_c0
58331173
haskell
0
Title: Checking If a Number is Special Prime Problem title: Checking If a Number is Special Prime Tags: primes, haskell Problem: Checking If a Number is Special Prime I am trying to create a program that prints special prime numbers in Haskell isSpecialPrime :: Integer -> Bool . The function should return if a number i...
Checking If a Number is Special Prime Checking If a Number is Special Prime primes haskell Checking Number Special Prime Integer Bool n-1 Checking If a Number is Special Prime I am trying to create a program that prints special prime numbers in Haskell isSpecialPrime :: Integer -> Bool . The function should return if a...
[ -0.0281982421875, 0.0216064453125, 0.01446533203125, -0.01513671875, 0.011962890625, 0.00970458984375, 0.003570556640625, -0.01214599609375, 0.001922607421875, 0.00946044921875, -0.00286865234375, 0.00469970703125, -0.0089111328125, -0.01055908203125, -0.00244140625, 0.03173828125, 0...
[ 38679, 214, 4263, 103332, 83, 25132, 56195, 20809, 1556, 142508, 44401, 2460, 929, 653, 5759, 10, 31577, 28282, 1528, 28412, 5361, 101935, 20625, 216119, 145111, 13, 1984, 33079, 32354, 5608, 30646, 2174, 14012, 707, 959, 62, 831, 59121, 23...
[ 0.1761474609375, 0.058349609375, 0.0970458984375, 0.1962890625, 0.1370849609375, 0.2171630859375, 0.256591796875, 0.2373046875, 0.1090087890625, 0.231201171875, 0.1390380859375, 0.08184814453125, 0.185546875, 0.00823974609375, 0.1251220703125, 0.01312255859375, 0.0214996337890625, ...
embed
13528012_c0
13528012
haskell
0
Title: Create a list from data and keys Problem title: Create a list from data and keys Tags: list-comprehension, list, haskell, key Problem: Create a list from data and keys I have a question about Haskell. I want to know how I can create a list of data from two lists, one with data, an other with some key values. I'l...
Create a list from data and keys Create a list from data and keys list-comprehension list haskell key data Create Create a list from data and keys I have a question about Haskell. I want to know how I can create a list of data from two lists, one with data, an other with some key values. I'll explain it with an example...
[ -0.006683349609375, -0.01043701171875, -0.0169677734375, 0.003875732421875, 0.010009765625, 0.005523681640625, -0.004638671875, 0.024169921875, 0.007476806640625, -0.0034637451171875, -0.010986328125, -0.007171630859375, 0.0263671875, 0.0084228515625, -0.031494140625, 0.01220703125, ...
[ 151313, 5303, 1295, 2053, 136, 22799, 10, 277, 4692, 3220, 1556, 142508, 9655, 20625, 3444, 3714, 3642, 831, 28282, 6626, 1632, 678, 3789, 142424, 73342, 27781, 11, 2822, 275, 143802, 238, 99433, 15549, 17932, 104988, 34475, 5117, 32354, 30...
[ 0.190185546875, 0.251953125, 0.20849609375, 0.2093505859375, 0.1343994140625, 0.2142333984375, 0.05145263671875, 0.027313232421875, 0.114501953125, 0.1319580078125, 0.1201171875, 0.222412109375, 0.06201171875, 0.1156005859375, 0.05474853515625, 0.02728271484375, 0.051300048828125, ...
embed
59603865_c0
59603865
haskell
0
Title: Is there a type class for fallible fold? Problem title: Is there a type class for fallible fold? Tags: haskell Problem: Is there a type class for fallible fold? Let's say T is a type that is an instance of Foldable . If I need to perform a fold that can fail, I can use foldM with a function that returns a Maybe ...
Is there a type class for fallible fold? Is there a type class for fallible fold? haskell Foldable Maybe LANGUAGE TypeFamilies FoldableT Monoid Is there a type class for fallible fold? Let's say T is a type that is an instance of Foldable . If I need to perform a fold that can fail, I can use foldM with a function that...
[ -0.0084228515625, 0.004791259765625, 0.0177001953125, 0.0106201171875, -0.01123046875, 0.01275634765625, -0.017822265625, -0.01031494140625, -0.000728607177734375, -0.004119873046875, -0.006317138671875, -0.034423828125, -0.00885009765625, 0.01470947265625, 0.005462646484375, 0.0017776...
[ 2071, 2685, 10, 10644, 18507, 100, 6817, 28236, 42822, 1556, 142508, 30077, 71, 2886, 83425, 98064, 60457, 1191, 618, 77879, 532, 384, 110527, 3871, 51339, 831, 35782, 4527, 594, 32354, 30646, 14, 83259, 235529, 68034, 52895, 18344, 48141, ...
[ 0.0256805419921875, 0.053131103515625, 0.0760498046875, 0.2325439453125, 0.239013671875, 0.06427001953125, 0.187255859375, 0.2264404296875, 0.2427978515625, 0.0882568359375, 0.194580078125, 0.170166015625, 0.09674072265625, 0.2027587890625, 0.2108154296875, 0.0968017578125, 0.1121826...
embed
33792847_c0
33792847
haskell
0
Title: Comparing indexes of a list of tuples to a list of integers Problem title: Comparing indexes of a list of tuples to a list of integers Tags: haskell Problem: Comparing indexes of a list of tuples to a list of integers I am very new to functional programming and haskell. Basically, I have formed a list of tuples ...
Comparing indexes of a list of tuples to a list of integers Comparing indexes of a list of tuples to a list of integers haskell Comparing Comparing indexes of a list of tuples to a list of integers I am very new to functional programming and haskell. Basically, I have formed a list of tuples where they are ordered and ...
[ -0.01055908203125, -0.0126953125, 0.008056640625, 0.0257568359375, -0.01531982421875, -0.004425048828125, -0.00067901611328125, -0.0089111328125, 0.0159912109375, 0.01324462890625, -0.0029144287109375, -0.0027923583984375, 0.00194549560546875, 0.032470703125, -0.0118408203125, -0.01794...
[ 113307, 214, 63262, 90, 5303, 370, 99726, 47, 892, 26255, 1556, 142508, 4552, 3525, 123309, 56037, 100, 12989, 107730, 34475, 297, 1221, 38132, 3444, 3917, 32354, 28412, 1810, 107013, 124850, 92714, 841, 184, 1543, 2499, 4734, 42658, 7228, ...
[ 0.18701171875, 0.015625, 0.2103271484375, 0.0994873046875, 0.154296875, 0.1221923828125, 0.2139892578125, 0.08056640625, 0.1187744140625, 0.092529296875, 0.1268310546875, 0.20166015625, 0.009307861328125, 0.0293426513671875, 0.1090087890625, 0.078125, 0.0079345703125, 0.12243652343...
embed
25336453_c0
25336453
haskell
0
Title: case insensitive tag matching with xml-conduit? Problem title: case insensitive tag matching with xml-conduit? Tags: html, haskell, xml-conduit Problem: case insensitive tag matching with xml-conduit? What's the best way to perform case-insensitive tag and attribute name matching using xml-conduit ? For example,...
case insensitive tag matching with xml-conduit? case insensitive tag matching with xml-conduit? html haskell xml-conduit Cursor sb_count case insensitive tag matching with xml-conduit? What's the best way to perform case-insensitive tag and attribute name matching using xml-conduit ? For example, consider the findNodes...
[ -0.0107421875, 0.007080078125, 0.00311279296875, -0.0264892578125, -0.005218505859375, -0.000232696533203125, -0.005889892578125, -0.0028076171875, 0.009521484375, 0.0024566650390625, 0.006011962890625, -0.030517578125, -0.001800537109375, -0.013916015625, -0.01361083984375, -0.0004043...
[ 7225, 23, 176302, 7909, 14858, 214, 678, 131492, 2271, 112061, 13, 7693, 1556, 142508, 58148, 42, 275, 71013, 2965, 3917, 51339, 73, 136, 150380, 9351, 17368, 7413, 5021, 988, 32354, 19097, 366, 27781, 51006, 168318, 19188, 20625, 131801, 4...
[ 0.18994140625, 0.1041259765625, 0.2371826171875, 0.1954345703125, 0.1915283203125, 0.093994140625, 0.1136474609375, 0.2376708984375, 0.103271484375, 0.1978759765625, 0.0299835205078125, 0.128662109375, 0.0858154296875, 0.1666259765625, 0.10498046875, 0.0025634765625, 0.07220458984375...
embed
22123699_c0
22123699
haskell
0
Title: GHC crashes while compiling Problem title: GHC crashes while compiling Tags: haskell, ghc Problem: GHC crashes while compiling module Main where newtype Rec a b = Rec {deRec :: Rec a b -> a} fix f = (\x -> f (x <|< x)) (Rec (\x -> f (x <|< x))) factorial = fix (\f x -> if x<=1 then 1 else x*f(x-1)) main = do x <...
GHC crashes while compiling GHC crashes while compiling haskell ghc GHC Main Rec x-1 x86_64-apple-darwin Simplifier When UnfoldingDone a_sMx Total Please www.haskell.org GHC crashes while compiling GHC response: What's wrong?
[ 0.0030975341796875, -0.000400543212890625, 0.03369140625, -0.002410888671875, 0.0047607421875, -0.006988525390625, -0.0208740234375, -0.016357421875, -0.018798828125, -0.034423828125, 0.00921630859375, -0.020263671875, 0.00830078125, 0.00482177734375, 0.031494140625, -0.005462646484375...
[ 527, 73265, 150631, 90, 12960, 9969, 49725, 1556, 142508, 31380, 238, 12321, 48224, 1022, 5759, 15276, 13307, 9007, 133, 1506, 9494, 55331, 150, 74332, 14847, 992, 42822, 214, 60728, 10, 594, 425, 33867, 30607, 10557, 1478, 57553, 4865, 7, ...
[ 0.11883544921875, 0.248291015625, 0.2105712890625, 0.0258941650390625, 0.1033935546875, 0.161865234375, 0.1317138671875, 0.1285400390625, 0.2132568359375, 0.1036376953125, 0.06793212890625, 0.08441162109375, 0.1463623046875, 0.01367950439453125, 0.0924072265625, 0.1566162109375, 0.13...
embed
71590559_c1
71590559
haskell
1
error (using GHC 8.10.7): • Couldn't match expected type ‘WrapParams n (p -> f)’ with actual type ‘Wrapped p -> WrapParams (n - 1) f’ • In the expression: h In an equation for ‘extendToWrappedParams’: extendToWrappedParams g = h where h (Wrapped p) = extendToWrappedParams @(n - 1) @f (g p) In the instance declaration ...
error (using GHC 8.10.7): • Couldn't match expected type ‘WrapParams n (p -> f)’ with actual type ‘Wrapped p -> WrapParams (n - 1) f’ • In the expression: h In an equation for ‘extendToWrappedParams’: extendToWrappedParams g = h where h (Wrapped p) = extendToWrappedParams @(n - 1) @f (g p) In the instance declaration ...
[ -0.0198974609375, 0.01263427734375, 0.0037384033203125, -0.00994873046875, -0.0169677734375, 0.002593994140625, -0.025146484375, -0.0233154296875, 0.00156402587890625, 0.0023651123046875, -0.004974365234375, -0.0263671875, 0.0036163330078125, -0.006500244140625, -0.0108642578125, -0.00...
[ 18499, 527, 73265, 70885, 134926, 768, 191147, 18, 14858, 84751, 10644, 1456, 13631, 28636, 8256, 653, 254, 33079, 1238, 678, 8561, 219, 48398, 915, 601, 19, 20, 4879, 125195, 1096, 28, 5490, 3355, 510, 71, 7763, 65042, 706, 420, 110527, ...
[ 0.2174072265625, 0.0950927734375, 0.20556640625, 0.152099609375, 0.168701171875, 0.0159912109375, 0.1331787109375, 0.05706787109375, 0.1768798828125, 0.1767578125, 0.1639404296875, 0.039886474609375, 0.2430419921875, 0.2291259765625, 0.2003173828125, 0.0289154052734375, 0.06134033203...
embed
45882140_c0
45882140
haskell
0
Title: Calculating the difference between two strings Problem title: Calculating the difference between two strings Tags: list, haskell Problem: Calculating the difference between two strings I have two strings a :: [String] a = ["A1","A2","B3","C3"] and b :: [String] b = ["A1","B2","B3","D5"] And I want to calculate t...
Calculating the difference between two strings Calculating the difference between two strings list haskell Calculating x:xs y:ys Calculating the difference between two strings I have two strings and And I want to calculate the difference between two strings based on the first character and second character and combinat...
[ 0.0093994140625, 0.00201416015625, -0.01092529296875, 0.029296875, -0.013427734375, 0.003814697265625, 0.0169677734375, -0.0191650390625, 0.03955078125, 0.0283203125, 0.0086669921875, 0.0002536773681640625, 0.02978515625, 0.0096435546875, -0.0244140625, 0.00119781494140625, 0.015625,...
[ 212467, 26518, 70, 60212, 17721, 6626, 79315, 5303, 1556, 142508, 1022, 12, 425, 7, 113, 4778, 3444, 74481, 67, 35509, 5117, 62816, 17932, 162515, 124850, 80854, 5701, 237, 106, 32354, 159978, 3714, 5608, 158661, 77336, 54529, 26785, 12830, ...
[ 0.1971435546875, 0.056365966796875, 0.03656005859375, 0.239990234375, 0.15673828125, 0.1455078125, 0.2440185546875, 0.1546630859375, 0.1392822265625, 0.203369140625, 0.070556640625, 0.05511474609375, 0.07733154296875, 0.042266845703125, 0.092529296875, 0.169677734375, 0.0359497070312...
embed
65150272_c0
65150272
haskell
0
Title: Haskell - how to pattern match on backslash character? Problem title: Haskell - how to pattern match on backslash character? Tags: pattern-matching, haskell Problem: Haskell - how to pattern match on backslash character? I want to replace \n with a space in a String with a recursive function using pattern matchi...
Haskell - how to pattern match on backslash character? Haskell - how to pattern match on backslash character? pattern-matching haskell Haskell x:xs Example Haskell - how to pattern match on backslash character? I want to replace \n with a space in a String with a recursive function using pattern matching, but I can't f...
[ -0.00970458984375, 0.025146484375, 0.0152587890625, -0.01324462890625, -0.007080078125, 0.0107421875, 0.004302978515625, 0.00055694580078125, 0.01251220703125, 0.0164794921875, 0.019287109375, -0.039794921875, -0.002044677734375, -0.0218505859375, -0.015625, 0.00811767578125, 0.02319...
[ 20625, 142508, 3642, 47, 103510, 14858, 98, 4420, 7, 5544, 62816, 98753, 214, 1556, 1022, 12, 425, 89536, 3444, 91995, 41872, 19, 678, 32628, 23351, 195625, 32354, 26366, 21441, 25, 144281, 11001, 66747, 2409, 18151, 54397, 86479, 41206, 51...
[ 0.1353759765625, 0.2301025390625, 0.07574462890625, 0.0221099853515625, 0.25634765625, 0.245849609375, 0.07623291015625, 0.2122802734375, 0.06884765625, 0.211181640625, 0.1533203125, 0.231689453125, 0.06658935546875, 0.130126953125, 0.06298828125, 0.075439453125, 0.111083984375, 0....
embed
31932931_c1
31932931
haskell
1
--await data from upstream The only way that more outside data will get processed is if an upstream component yields something, but upstream will only yield if it gets data from a client, which is exactly what I'm trying to avoid. I've tried using multiple threads and TChan to solve this, but it appears that the appSo...
--await data from upstream The only way that more outside data will get processed is if an upstream component yields something, but upstream will only yield if it gets data from a client, which is exactly what I'm trying to avoid. I've tried using multiple threads and TChan to solve this, but it appears that the appSo...
[ 0.015869140625, 0.017578125, -0.00396728515625, -0.000156402587890625, -0.004608154296875, 0.00909423828125, 0.037841796875, -0.00262451171875, -0.004791259765625, -0.035888671875, -0.00054931640625, -0.006256103515625, 0.02099609375, 0.0252685546875, -0.00182342529296875, -0.005157470...
[ 7978, 217, 2053, 1295, 1257, 86429, 4734, 3917, 1286, 50782, 2046, 9433, 82761, 11180, 19388, 62163, 23282, 31577, 71864, 48716, 86997, 127008, 86869, 4027, 211235, 294, 14068, 11814, 5701, 56649, 11435, 104, 121707, 131527, 21954, 334, 10422, ...
[ 0.1982421875, 0.224609375, 0.19482421875, 0.1163330078125, 0.1524658203125, 0.27490234375, 0.043975830078125, 0.0723876953125, 0.1304931640625, 0.1871337890625, 0.012420654296875, 0.130859375, 0.1268310546875, 0.0970458984375, 0.1773681640625, 0.019866943359375, 0.1856689453125, 0....
embed
2794816_c0
2794816
haskell
0
Title: How to extract terms of specific data constructor from a list in Haskell Problem title: How to extract terms of specific data constructor from a list in Haskell Tags: pattern-matching, haskell, list Problem: How to extract terms of specific data constructor from a list in Haskell A common problem I got in Haskel...
How to extract terms of specific data constructor from a list in Haskell How to extract terms of specific data constructor from a list in Haskell pattern-matching haskell list a How Haskell Foo Bar Goo How to extract terms of specific data constructor from a list in Haskell A common problem I got in Haskell is to extra...
[ 0.008544921875, -0.0045166015625, -0.0032806396484375, 0.0157470703125, 0.01507568359375, 0.01043701171875, -0.00799560546875, 0.0233154296875, 0.00958251953125, -0.0216064453125, 0.01141357421875, -0.04736328125, 0.00933837890625, 0.00958251953125, -0.0218505859375, -0.005828857421875...
[ 11249, 125663, 69407, 29458, 2053, 64549, 748, 1295, 5303, 20625, 142508, 47, 111, 23, 103510, 98753, 1556, 9572, 31, 3253, 131257, 39210, 2967, 756, 66165, 81551, 11522, 48322, 3917, 3095, 4163, 32599, 91, 5775, 232, 56104, 1884, 3229, 147...
[ 0.0836181640625, 0.22900390625, 0.2469482421875, 0.2352294921875, 0.158935546875, 0.2042236328125, 0.13623046875, 0.096923828125, 0.2109375, 0.1455078125, 0.2218017578125, 0.001129150390625, 0.025604248046875, 0.0185394287109375, 0.16748046875, 0.157470703125, 0.1378173828125, 0.11...
embed
21340446_c1
21340446
haskell
1
-1.0.1.1 failed during the configure step. The exception was: user error (In file included from /usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/include/Rts.h:30, from /var/folders/lw/mwgzrbns2j10_p75xtydr9_r0000gn/T/ghc3806_0/ghc3806_0.c:1:0: from /var/folders/lw/mwgzrbns2j10_p75xtydr9_r0000gn/T/ghc3806_0/ghc3806_0.c:1:0: /u...
4 Threads.h:19:23 types.h Threads.h:49:0 __attribute__ Importing Haskell Libraries like System.Random So I've been searching and searching on how to fix this issue and I've had no luck finding out how. First of all I want to import System.Random into my Haskell program. Unfortunately it isn't that easy... When I execut...
[ -0.00555419921875, 0.0037384033203125, 0.0033111572265625, -0.00982666015625, 0.01068115234375, -0.03173828125, 0.00177001953125, -0.005859375, -0.004302978515625, 0.026123046875, -0.0045166015625, -0.0238037109375, -0.0101318359375, -0.00537109375, 0.0272216796875, -0.0257568359375, ...
[ 201, 136719, 52895, 127, 191145, 92966, 214, 20625, 142508, 165867, 10484, 1884, 12353, 5, 126525, 3815, 30022, 31089, 110, 3444, 24927, 3934, 1528, 185397, 23468, 71924, 31380, 318, 30646, 171259, 54, 98169, 63399, 17368, 738, 450, 14364, 55...
[ 0.001983642578125, 0.087646484375, 0.0660400390625, 0.07794189453125, 0.055816650390625, 0.2109375, 0.03656005859375, 0.1300048828125, 0.250244140625, 0.165771484375, 0.0906982421875, 0.010528564453125, 0.167236328125, 0.03973388671875, 0.1697998046875, 0.20068359375, 0.10791015625, ...
embed
9038462_c0
9038462
haskell
0
Title: The best choice for random number generator Problem title: The best choice for random number generator Tags: random, haskell Problem: The best choice for random number generator There are so many randomizers out there. Some standard ones are questionably slow. Some claim to be of high quality and speed. Some cla...
The best choice for random number generator The best choice for random number generator random haskell The best choice for random number generator There are so many randomizers out there. Some standard ones are questionably slow. Some claim to be of high quality and speed. Some claim to be of higher quality. Some claim...
[ -0.0135498046875, 0.00897216796875, 0.0184326171875, -0.0263671875, 0.01141357421875, -0.0201416015625, 0.0074462890625, -0.0303955078125, 0.003997802734375, -0.0303955078125, -0.00579833984375, 0.00439453125, 0.000751495361328125, 0.00311279296875, -0.00029754638671875, 0.002731323242...
[ 581, 2965, 44126, 100, 96759, 14012, 145823, 1556, 142508, 621, 221, 5941, 52825, 2685, 31384, 5570, 64333, 9655, 72803, 63043, 186, 111, 11192, 31897, 38352, 77546, 1286, 4271, 11522, 1284, 15824, 3714, 43879, 238, 46258, 39, 11814, 26315, ...
[ 0.05706787109375, 0.18603515625, 0.200439453125, 0.078125, 0.240966796875, 0.1900634765625, 0.29345703125, 0.14111328125, 0.226318359375, 0.005401611328125, 0.053253173828125, 0.0634765625, 0.2030029296875, 0.0743408203125, 0.0182037353515625, 0.143798828125, 0.0361328125, 0.063110...
embed
66904661_c0
66904661
haskell
0
Title: toDigits but padded with zeros Haskell Problem title: toDigits but padded with zeros Haskell Tags: haskell, integer Problem: toDigits but padded with zeros Haskell I'm new to Haskell and have the following assignment: Convert positive Integers to a list of its digits, but if the list has negative number or is 0,...
toDigits but padded with zeros Haskell toDigits but padded with zeros Haskell haskell integer Haskell Integer toDigits but padded with zeros Haskell I'm new to Haskell and have the following assignment: I've managed to write codes for padding, and for toDigits , but I'm not sure how to combine them, please help. My cod...
[ 0.0034637451171875, -0.01239013671875, -0.007354736328125, -0.007598876953125, -0.030517578125, 0.032470703125, -0.0035552978515625, 0.0040283203125, 0.004608154296875, -0.016357421875, -0.00958251953125, -0.03125, -0.00714111328125, 0.009765625, -0.006439208984375, -0.01953125, -0.0...
[ 47, 14055, 15769, 7, 1284, 249, 69819, 678, 45234, 20625, 142508, 1556, 892, 1505, 44401, 39, 3525, 25632, 95486, 272, 145755, 33022, 18151, 100, 59725, 136, 959, 9077, 3642, 70163, 2856, 22936, 4358, 89536, 99726 ]
[ 0.1968994140625, 0.1114501953125, 0.200927734375, 0.084716796875, 0.155029296875, 0.1700439453125, 0.14453125, 0.1278076171875, 0.2080078125, 0.1640625, 0.218017578125, 0.149658203125, 0.09100341796875, 0.03363037109375, 0.2008056640625, 0.000213623046875, 0.07830810546875, 0.02558...
embed
69363713_c0
69363713
haskell
0
Title: Haskell binary tree traversal Problem title: Haskell binary tree traversal Tags: haskell, traversal, binary-tree, transformation Problem: Haskell binary tree traversal I am struggling with how to recursively traverse a binary tree in Haskell It is rather clear how it's done when the return type is a list. But I ...
Haskell binary tree traversal Haskell binary tree traversal haskell traversal binary-tree transformation Haskell Tree Node Haskell binary tree traversal I am struggling with how to recursively traverse a binary tree in Haskell It is rather clear how it's done when the return type is a list. But I don't get how is it do...
[ -0.01055908203125, 0.0201416015625, 0.01287841796875, -0.006805419921875, 0.0281982421875, 0.007476806640625, -0.025390625, -0.0238037109375, 0.00555419921875, -0.028564453125, -0.0004863739013671875, -0.019287109375, -0.003936767578125, 0.010009765625, 0.006500244140625, -0.0123901367...
[ 20625, 142508, 2394, 6635, 53201, 37317, 289, 1556, 62600, 167201, 101344, 438, 237875, 3642, 195625, 5844, 13, 23, 34735, 16940, 30646, 10644, 83, 5303, 2046, 2174, 68034, 32599, 39041, 45234, 1884, 678, 3789, 101935, 903, 31089, 3714, 1221,...
[ 0.1387939453125, 0.2274169921875, 0.1878662109375, 0.13525390625, 0.2435302734375, 0.205078125, 0.05975341796875, 0.10693359375, 0.213134765625, 0.144775390625, 0.18310546875, 0.06976318359375, 0.06622314453125, 0.02618408203125, 0.194091796875, 0.14404296875, 0.0872802734375, 0.01...
embed
56655146_c0
56655146
haskell
0
Title: Why using the composition operator allows you to avoid the need to explicitly refer the initial argument? Problem title: Why using the composition operator allows you to avoid the need to explicitly refer the initial argument? Tags: haskell, functional-programming Problem: Why using the composition operator allo...
Why using the composition operator allows you to avoid the need to explicitly refer the initial argument? Why using the composition operator allows you to avoid the need to explicitly refer the initial argument? haskell functional-programming the Why Bit bin2int chop8 Why using the composition operator allows you to av...
[ -0.004638671875, -0.0029754638671875, 0.0240478515625, 0.033447265625, -0.004913330078125, 0.0233154296875, -0.0111083984375, -0.00537109375, 0.0125732421875, -0.0011749267578125, -0.010986328125, -0.0072021484375, 0.0225830078125, 0.03466796875, -0.01495361328125, -0.0245361328125, ...
[ 44084, 17368, 166577, 39933, 114864, 71864, 3871, 143726, 15005, 61475, 10750, 1556, 142508, 123309, 28966, 27774, 2394, 304, 4288, 82335, 1019, 15400, 35064, 18151, 1221, 959, 9969, 1340, 116, 2208, 32354, 5303, 4027, 22288, 80854, 181653, 277...
[ 0.1353759765625, 0.07464599609375, 0.26123046875, 0.2059326171875, 0.0823974609375, 0.1292724609375, 0.043060302734375, 0.10150146484375, 0.176513671875, 0.1126708984375, 0.195068359375, 0.0955810546875, 0.1947021484375, 0.076416015625, 0.04339599609375, 0.1104736328125, 0.1318359375...
embed
36579845_c0
36579845
haskell
0
Title: Haskell - how can I convert string to integer and pass it to created structure? Problem title: Haskell - how can I convert string to integer and pass it to created structure? Tags: haskell Problem: Haskell - how can I convert string to integer and pass it to created structure? I'm implementing CIS 194 course and...
Haskell - how can I convert string to integer and pass it to created structure? Haskell - how can I convert string to integer and pass it to created structure? haskell Haskell LogMessage TimeStamp MessageType Unknown Show timestamp:message Info Haskell - how can I convert string to integer and pass it to created struct...
[ -0.0023651123046875, 0.02587890625, -0.00250244140625, 0.0260009765625, 0.0189208984375, 0.0113525390625, -0.00408935546875, -0.0084228515625, 0.004364013671875, -0.02197265625, 0.0198974609375, -0.01336669921875, 0.003509521484375, -0.01068115234375, -0.01104736328125, -0.020263671875...
[ 20625, 142508, 3642, 831, 96760, 79315, 47, 892, 1505, 27875, 75935, 45646, 87, 1556, 13146, 594, 6011, 429, 19055, 42378, 2676, 48205, 196707, 69723, 17367, 1733, 590, 74157, 14048, 136, 442, 29479, 152113, 131192, 15411, 66211, 18, 86869, ...
[ 0.1300048828125, 0.2509765625, 0.07415771484375, 0.07330322265625, 0.1702880859375, 0.269287109375, 0.122802734375, 0.13427734375, 0.22021484375, 0.1121826171875, 0.1544189453125, 0.214599609375, 0.0288238525390625, 0.103759765625, 0.1451416015625, 0.08148193359375, 0.1383056640625, ...
embed
24278006_c1
24278006
haskell
1
:: [a] -> (a,a) tuplify2 [x,y] = (x,y) main = do list <- getLines "testdata.txt" -- [String] --list <- getLines "SCC.txt" -- [String] let list' = createGraph list return list' createGraph :: [[Int]] -> Graph1 createGraph xs = L.foldl' build Map.empty xs where build :: Graph1-> [Int] -> Graph1 build = \acc (x:y:_) -> l...
:: [a] -> (a,a) tuplify2 [x,y] = (x,y) main = do list <- getLines "testdata.txt" -- [String] --list <- getLines "SCC.txt" -- [String] let list' = createGraph list return list' createGraph :: [[Int]] -> Graph1 createGraph xs = L.foldl' build Map.empty xs where build :: Graph1-> [Int] -> Graph1 build = \acc (x:y:_) -> l...
[ -0.0059814453125, 0.01116943359375, -0.0024871826171875, 0.0244140625, -0.00531005859375, 0.00567626953125, -0.004180908203125, 0.00738525390625, 0.0234375, 0.00069427490234375, -0.005645751953125, -0.008056640625, -0.007293701171875, 0.00897216796875, 0.0086669921875, 0.02099609375, ...
[ 1984, 11, 33079, 4, 16, 370, 2424, 40383, 304, 53, 2203, 425, 5201, 54, 5303, 2046, 93232, 6954, 10135, 124326, 4210, 6562, 294, 13709, 2633, 28282, 37878, 11727, 30646, 4153, 18, 6524, 418, 1022, 339, 42822, 141, 45367, 42719, 33548, 9...
[ 0.1331787109375, 0.0699462890625, 0.0616455078125, 0.01422119140625, 0.00543212890625, 0.1712646484375, 0.183349609375, 0.254150390625, 0.16455078125, 0.06890869140625, 0.055084228515625, 0.010406494140625, 0.13427734375, 0.0869140625, 0.15869140625, 0.052337646484375, 0.102111816406...
embed
25018337_c0
25018337
haskell
0
Title: Failed to install Darcs - Ubuntu 14.04 x64 - darcs 2.8.4 - cabal 1.20.0.2 Problem title: Failed to install Darcs - Ubuntu 14.04 x64 - darcs 2.8.4 - cabal 1.20.0.2 Tags: cabal, haskell, darcs Problem: Failed to install Darcs - Ubuntu 14.04 x64 - darcs 2.8.4 - cabal 1.20.0.2 I have a problem in installing darcs $ ...
Failed to install Darcs - Ubuntu 14.04 x64 - darcs 2.8.4 - cabal 1.20.0.2 Failed to install Darcs - Ubuntu 14.04 x64 - darcs 2.8.4 - cabal 1.20.0.2 cabal haskell darcs Distribution.Simple Failed Darcs Ubuntu x64 darcs-2.8.4 darcs-2.8.4-26031 Setup.lhs:106:3 Warning Distribution.SimpleLinking Configuring Unable Error Ex...
[ -0.00015926361083984375, 0.01007080078125, 0.0172119140625, 0.0027923583984375, 0.0023956298828125, -0.0020294189453125, -0.0089111328125, -0.01202392578125, -0.01806640625, 0.034912109375, -0.005706787109375, -0.03515625, -0.0052490234375, -0.00116729736328125, -0.00872802734375, 0.00...
[ 190355, 297, 47, 20600, 2541, 4439, 116890, 6370, 7709, 13307, 1011, 787, 163883, 109524, 1549, 133684, 1556, 142508, 75571, 8859, 33209, 97544, 5016, 19943, 79366, 54100, 363, 5550, 64287, 59994, 992, 2886, 212059, 5443, 17647, 379, 5, 2967,...
[ 0.2041015625, 0.0902099609375, 0.0506591796875, 0.171630859375, 0.2333984375, 0.27880859375, 0.1741943359375, 0.1614990234375, 0.1246337890625, 0.1700439453125, 0.2047119140625, 0.0169525146484375, 0.1768798828125, 0.1943359375, 0.1094970703125, 0.12548828125, 0.0830078125, 0.16198...
embed
25718760_c0
25718760
haskell
0
Title: Ensuring that a haskell type A contains a member of type B Problem title: Ensuring that a haskell type A contains a member of type B Tags: strong-typing, uniplate, typeclass, generics, haskell Problem: Ensuring that a haskell type A contains a member of type B Let us look at the following code: transformBi (++"a...
Ensuring that a haskell type A contains a member of type B Ensuring that a haskell type A contains a member of type B strong-typing uniplate typeclass generics haskell to - transformBi Contains Ensuring Biplate Ensuring that a haskell type A contains a member of type B Let us look at the following code: Clearly, this c...
[ -0.0220947265625, 0.0057373046875, 0.007781982421875, 0.0211181640625, -0.01544189453125, 0.0028533935546875, 0.00244140625, -0.01226806640625, -0.003753662109375, -0.01080322265625, 0.000324249267578125, 0.004180908203125, -0.001953125, 0.0107421875, -0.00148773193359375, -0.011413574...
[ 357, 7, 53089, 1556, 142508, 10644, 62, 70541, 32786, 335, 37515, 46280, 19844, 92558, 67413, 189534, 47, 27198, 16882, 34749, 5425, 1843, 6713, 18151, 33720, 7464, 9969, 1340, 5885, 1884, 28282, 3525, 11389, 1221, 959, 34759, 23534, 52895, ...
[ 0.06768798828125, 0.1295166015625, 0.047882080078125, 0.1258544921875, 0.239990234375, 0.178466796875, 0.103515625, 0.1474609375, 0.1375732421875, 0.1397705078125, 0.087158203125, 0.1793212890625, 0.05401611328125, 0.246337890625, 0.176025390625, 0.139404296875, 0.0946044921875, 0....
embed
29564507_c0
29564507
haskell
0
Title: What is this error? - FAILED DURING THE BUILDING PHASE Problem title: What is this error? - FAILED DURING THE BUILDING PHASE Tags: ghc, haskell, regex, scope Problem: What is this error? - FAILED DURING THE BUILDING PHASE I got this error while building: dist/package.conf.inplace: inappropriate type FAILED DURIN...
What is this error? - FAILED DURING THE BUILDING PHASE What is this error? - FAILED DURING THE BUILDING PHASE ghc haskell regex scope Text.Regex.Posix What FAILED DURING BUILDING PHASE package.conf.inplace ExitFailure _.hs:13:5 Not _.hs:13:15 Perhaps Text.Regex What is this error? - FAILED DURING THE BUILDING PHASE I g...
[ -0.0235595703125, 0.00927734375, 0.01141357421875, 0.00396728515625, 0.0050048828125, 0.006439208984375, -0.017822265625, 0.0157470703125, -0.00011968612670898438, 0.007110595703125, 0.003753662109375, -0.009521484375, 0.007476806640625, -0.0120849609375, 0.00921630859375, 0.0014190673...
[ 4865, 83, 903, 18499, 563, 11388, 38409, 14614, 90345, 22013, 213914, 8066, 24784, 76783, 23373, 31380, 238, 1556, 142508, 6835, 3355, 70820, 24129, 54601, 4084, 98169, 70547, 23935, 5443, 217, 17647, 379, 127, 22618, 758, 11205, 12221, 18179...
[ 0.009979248046875, 0.0335693359375, 0.103271484375, 0.200439453125, 0.099853515625, 0.13818359375, 0.09716796875, 0.10150146484375, 0.0919189453125, 0.0777587890625, 0.10693359375, 0.059478759765625, 0.1331787109375, 0.093994140625, 0.003265380859375, 0.054107666015625, 0.0458984375,...
embed
71796967_c1
71796967
haskell
1
[1 of 3] Compiling Data.Poset.Internal ( Data\Poset\Internal.hs, dist\build\Data\Poset\Internal.o ) Data\Poset\Internal.hs:32:10: error: * No instance for (Semigroup PosetOrd) arising from the superclasses of an instance declaration * In the instance declaration for `Monoid PosetOrd' | 32 | instance Monoid PosetOrd wh...
[1 of 3] Compiling Data.Poset.Internal ( Data\Poset\Internal.hs, dist\build\Data\Poset\Internal.o ) Data\Poset\Internal.hs:32:10: error: * No instance for (Semigroup PosetOrd) arising from the superclasses of an instance declaration * In the instance declaration for `Monoid PosetOrd' | 32 | instance Monoid PosetOrd wh...
[ -0.025146484375, -0.0042724609375, 0.0164794921875, -0.007568359375, 0.00299072265625, 0.031005859375, -0.00213623046875, -0.02783203125, -0.00244140625, 0.01422119140625, -0.019287109375, -0.00445556640625, 0.0242919921875, 0.005859375, -0.0062255859375, 0.00023174285888671875, -0.0...
[ 15612, 49725, 11809, 7192, 3509, 44851, 6236, 127, 45, 271, 177149, 137989, 31, 29902, 15110, 18499, 438, 110527, 100, 4233, 266, 51588, 13498, 126, 143045, 187, 72219, 1295, 1601, 67413, 21635, 46674, 48899, 2789, 77879, 532, 109524, 102738,...
[ 0.1304931640625, 0.1199951171875, 0.1473388671875, 0.124755859375, 0.207275390625, 0.1734619140625, 0.139892578125, 0.0777587890625, 0.040130615234375, 0.05426025390625, 0.14990234375, 0.096923828125, 0.100830078125, 0.085205078125, 0.1165771484375, 0.1495361328125, 0.1087646484375, ...
embed
4771083_c0
4771083
haskell
0
Title: Help me find the problem with my solution to Project Euler #12 in Haskell Problem title: Help me find the problem with my solution to Project Euler #12 in Haskell Tags: algorithm, haskell, math Problem: Help me find the problem with my solution to Project Euler #12 in Haskell I'm a total newbie to Haskell, and p...
Help me find the problem with my solution to Project Euler #12 in Haskell Help me find the problem with my solution to Project Euler #12 in Haskell algorithm haskell math Help Project Euler Haskell scanl1 Help me find the problem with my solution to Project Euler #12 in Haskell I'm a total newbie to Haskell, and progra...
[ -0.01251220703125, 0.0091552734375, 0.010009765625, 0.008056640625, -0.01080322265625, 0.006439208984375, -0.0245361328125, -0.0242919921875, 0.002593994140625, -0.056640625, 0.018798828125, -0.0220947265625, -0.0098876953125, -0.009765625, -0.0174560546875, 0.01953125, 0.00564575195...
[ 39527, 163, 7413, 70, 2967, 678, 759, 29806, 47, 27331, 5177, 603, 468, 1530, 23, 20625, 142508, 234873, 1556, 48909, 44954, 141, 418, 3622, 3525, 9014, 56037, 4537, 4488, 44402, 1884, 3115, 765, 97025, 17569, 2806, 1284, 75711, 14602, 95...
[ 0.1025390625, 0.0887451171875, 0.153564453125, 0.05145263671875, 0.19091796875, 0.12109375, 0.06561279296875, 0.16357421875, 0.0204010009765625, 0.1527099609375, 0.15625, 0.181884765625, 0.0706787109375, 0.2166748046875, 0.0662841796875, 0.1409912109375, 0.206298828125, 0.146362304...
embed
3183984_c0
3183984
haskell
0
Title: Haskell rigid type? Problem title: Haskell rigid type? Tags: double, haskell, types Problem: Haskell rigid type? Possible Duplicate: Return specific type within Haskell This code: class Alpha a where half :: Real f => a -> f instance Alpha Double where half a = a/2.0 produces this error: rigid.hs:6:13: Couldn't ...
Haskell rigid type? Haskell rigid type? double haskell types Haskell Alpha Real Double rigid.hs:6:13 Couldn rigid.hs:3:17 Failed Ord Num Haskell rigid type? This code: produces this error: Why? EDIT : Figuring out the business of rigid type, I think I've arrived at a more focused question. How do I convert a Double int...
[ -0.00811767578125, -0.00360107421875, 0.033203125, -0.0022735595703125, 0.028076171875, 0.01251220703125, -0.0167236328125, -0.00098419189453125, 0.01318359375, -0.005157470703125, 0.00124359130859375, -0.03173828125, -0.0162353515625, -0.0294189453125, -0.00958251953125, -0.0064392089...
[ 20625, 142508, 128652, 10644, 41929, 1556, 52895, 76569, 5120, 107172, 127, 910, 22618, 191147, 19, 363, 22950, 190355, 297, 35379, 52782, 18151, 27489, 903, 18499, 44084, 8063, 162393, 96760, 3934, 34292, 40407, 3387, 136, 32354, 62163, 163, ...
[ 0.139404296875, 0.238525390625, 0.27587890625, 0.1947021484375, 0.1717529296875, 0.14208984375, 0.190185546875, 0.13427734375, 0.1900634765625, 0.2015380859375, 0.04132080078125, 0.035491943359375, 0.0999755859375, 0.11083984375, 0.023529052734375, 0.057037353515625, 0.11767578125, ...
embed
33587614_c0
33587614
haskell
0
Title: How to compute prime twins between two bounds? Problem title: How to compute prime twins between two bounds? Tags: haskell Problem: How to compute prime twins between two bounds? I'm trying to compute the first 20 primes that have a 2 number gap between them - E.G 3 and 5. divides :: Integer -> Integer -> Bool d...
How to compute prime twins between two bounds? How to compute prime twins between two bounds? haskell How Integer Bool n-1 primeTest3 How to compute prime twins between two bounds? I'm trying to compute the first 20 primes that have a 2 number gap between them - E.G 3 and 5. This works to a certain point, the if n = 20...
[ -0.025634765625, 0.0029449462890625, 0.0169677734375, 0.0135498046875, 0.02099609375, 0.018310546875, 0.0096435546875, -0.0260009765625, 0.02392578125, -0.006744384765625, 0.0203857421875, -0.017578125, 0.0147705078125, 0.00982666015625, -0.009765625, 0.0361328125, 0.0106201171875, ...
[ 11249, 47, 9969, 6743, 20809, 138241, 7, 17721, 6626, 99091, 1556, 142508, 44401, 2460, 929, 5759, 111337, 363, 31577, 5117, 387, 116, 14012, 43599, 241, 724, 138, 136, 1892, 43240, 2174, 653, 140992, 190, 758, 483, 361, 3569, 37076, 6380...
[ 0.0687255859375, 0.0184326171875, 0.1368408203125, 0.1337890625, 0.2259521484375, 0.279052734375, 0.123046875, 0.191650390625, 0.1217041015625, 0.19189453125, 0.0845947265625, 0.17919921875, 0.1260986328125, 0.0445556640625, 0.1275634765625, 0.10028076171875, 0.1151123046875, 0.067...
embed
26515375_c0
26515375
haskell
0
Title: Getting Aeson to deal with a mixed-type list Problem title: Getting Aeson to deal with a mixed-type list Tags: haskell, aeson Problem: Getting Aeson to deal with a mixed-type list This works: λ decode "[\"one\", \"two\"]" :: Maybe [Text] Just ["one","two"] This works: λ decode "[1, 2]" :: Maybe [Int] Just [1,2] ...
Getting Aeson to deal with a mixed-type list Getting Aeson to deal with a mixed-type list haskell aeson Getting Aeson Maybe Text Just Nothing Array Number Getting Aeson to deal with a mixed-type list This works: This works: This is perfectly-valid JSON but I can't make it work: Or even: I would like to convince the las...
[ 0.003143310546875, -0.006622314453125, -0.00897216796875, 0.03564453125, -0.0074462890625, 0.003692626953125, -0.004730224609375, -0.00160980224609375, 0.0111083984375, 0.012451171875, -0.00982666015625, -0.0296630859375, 0.00701904296875, -0.0020294189453125, -0.01544189453125, 0.0009...
[ 210732, 62, 90, 191, 35142, 678, 17664, 297, 50986, 5303, 1556, 142508, 10, 83425, 24129, 9563, 182747, 69253, 103332, 43240, 3293, 169123, 7013, 821, 58627, 831, 18, 4488, 1884, 122991, 4568, 8337, 1957, 165292, 16294, 86681, 9844, 86171, ...
[ 0.0718994140625, 0.1041259765625, 0.127197265625, 0.1888427734375, 0.11376953125, 0.0574951171875, 0.2060546875, 0.09796142578125, 0.1591796875, 0.1746826171875, 0.100830078125, 0.161865234375, 0.0635986328125, 0.07440185546875, 0.165771484375, 0.017822265625, 0.127197265625, 0.093...
embed
41522491_c0
41522491
haskell
0
Title: Is there a way to place some impure code inside pure functions? Problem title: Is there a way to place some impure code inside pure functions? Tags: monads, haskell Problem: Is there a way to place some impure code inside pure functions? IO , just like Maybe , is just an instance of Monad . On the other hand we ...
Is there a way to place some impure code inside pure functions? Is there a way to place some impure code inside pure functions? monads haskell Maybe Monad Just Nothing Reader Writer Debug.Trace.trace Is there a way to place some impure code inside pure functions? IO , just like Maybe , is just an instance of Monad . On...
[ -0.00946044921875, 0.020751953125, 0.00146484375, 0.00823974609375, -0.000949859619140625, 0.0142822265625, -0.0089111328125, -0.005889892578125, -0.00494384765625, -0.032470703125, 0.00848388671875, -0.0157470703125, -0.01611328125, -0.00909423828125, 0.0216064453125, 0.00909423828125...
[ 2071, 2685, 10, 3917, 3687, 3060, 21980, 3408, 18151, 46132, 34166, 32354, 7, 47, 2667, 712, 1556, 142508, 83425, 60331, 71, 9563, 182747, 122636, 601, 2783, 262, 85779, 28542, 329, 39989, 17780, 6, 4, 1660, 1884, 110527, 2161, 70, 3535, ...
[ 0.010162353515625, 0.0465087890625, 0.04046630859375, 0.1285400390625, 0.172119140625, 0.0810546875, 0.173583984375, 0.25634765625, 0.22802734375, 0.1890869140625, 0.26171875, 0.25390625, 0.085205078125, 0.039886474609375, 0.1121826171875, 0.1351318359375, 0.1092529296875, 0.238769...
embed
42859416_c0
42859416
haskell
0
Title: Feeding the output of two functions to another function Haskell Problem title: Feeding the output of two functions to another function Haskell Tags: function, input, composition, haskell Problem: Feeding the output of two functions to another function Haskell I have three functions. function1 :: [Person] -> [Str...
Feeding the output of two functions to another function Haskell Feeding the output of two functions to another function Haskell function input composition haskell Feeding Haskell function1 Person function2 function3 Feeding the output of two functions to another function Haskell I have three functions. I want the outpu...
[ -0.00994873046875, 0.0126953125, -0.00933837890625, 0.02880859375, -0.000553131103515625, 0.0260009765625, 0.0025177001953125, 0.01953125, -0.00518798828125, -0.0135498046875, 0.005645751953125, -0.00112152099609375, 0.0234375, 0.039306640625, -0.0098876953125, -0.007110595703125, 0....
[ 124689, 214, 140992, 6626, 32354, 47, 15700, 20625, 142508, 107730, 166577, 1556, 15270, 304, 363, 765, 17262, 3444, 136, 186, 115081, 137175, 10461, 15044, 10002, 171859, 6713, 1884, 54811, 61590, 1632, 111, 84797 ]
[ 0.209716796875, 0.05859375, 0.20751953125, 0.1630859375, 0.2108154296875, 0.134033203125, 0.1109619140625, 0.1295166015625, 0.2159423828125, 0.1103515625, 0.1929931640625, 0.12158203125, 0.1048583984375, 0.0285186767578125, 0.103759765625, 0.03192138671875, 0.105712890625, 0.096435...
embed
30293140_c1
30293140
haskell
1
-> a20 -> (a10, a20) In the first argument of ‘liftM2’, namely ‘(,)’ In the expression: liftM2 (,) (random_2p Uniform 0 0 1) (random_2p Uniform 0 0 1) unitBox.hs:5:23: Couldn't match expected type ‘(Double, a10)’ with actual type ‘Double’ In the second argument of ‘liftM2’, namely ‘(random_2p Uniform 0 0 1)’ In the ex...
-> a20 -> (a10, a20) In the first argument of ‘liftM2’, namely ‘(,)’ In the expression: liftM2 (,) (random_2p Uniform 0 0 1) (random_2p Uniform 0 0 1) unitBox.hs:5:23: Couldn't match expected type ‘(Double, a10)’ with actual type ‘Double’ In the second argument of ‘liftM2’, namely ‘(random_2p Uniform 0 0 1)’ In the ex...
[ 0.006439208984375, 0.0101318359375, -0.0179443359375, 0.00518798828125, 0.006622314453125, 0.0142822265625, -0.017333984375, -0.0157470703125, -0.00592041015625, -0.00469970703125, 0.003448486328125, -0.0026702880859375, 0.009033203125, -0.018798828125, -0.002899169921875, -0.017333984...
[ 33079, 10, 1549, 11, 963, 73419, 5117, 10750, 104501, 594, 304, 4, 125195, 60520, 46258, 254, 11789, 5037, 757, 4879, 25072, 72295, 127, 758, 24864, 191147, 18, 14858, 84751, 10644, 34, 2661, 50258, 8561, 17932, 678, 50960, 190355, 88996, ...
[ 0.043121337890625, 0.111083984375, 0.2225341796875, 0.1143798828125, 0.1907958984375, 0.2332763671875, 0.101806640625, 0.269775390625, 0.257080078125, 0.1627197265625, 0.2259521484375, 0.03985595703125, 0.2110595703125, 0.24853515625, 0.120361328125, 0.08221435546875, 0.04541015625, ...
embed
6331375_c0
6331375
haskell
0
Title: Data.Sequence vs. Data.DList for appending data to the end of the list Problem title: Data.Sequence vs. Data.DList for appending data to the end of the list Tags: append, haskell, list Problem: Data.Sequence vs. Data.DList for appending data to the end of the list I'm writing some code that needs to frequently a...
Data.Sequence vs. Data.DList for appending data to the end of the list Data.Sequence vs. Data.DList for appending data to the end of the list append haskell list Data.Sequence Data.DList Data.Sequence vs. Data.DList for appending data to the end of the list I'm writing some code that needs to frequently append to the e...
[ 0.01507568359375, 0.0172119140625, 0.000019311904907226562, 0.007354736328125, -0.00396728515625, -0.005401611328125, -0.01141357421875, 0.0177001953125, 0.00567626953125, -0.00101470947265625, 0.005523681640625, 0.0025787353515625, -0.000598907470703125, 0.01611328125, -0.01312255859375...
[ 11809, 5, 4233, 944, 3956, 20209, 27502, 1419, 1747, 96819, 2053, 47, 3564, 111, 5303, 114689, 1556, 142508, 32562, 18151, 195409, 3714, 17368, 37223, 24500, 45367, 1257, 4420, 19364, 10336, 39531, 16940, 39210, 9842, 1679, 308, 49086, 43257,...
[ 0.1661376953125, 0.080322265625, 0.12841796875, 0.150146484375, 0.1204833984375, 0.138671875, 0.107666015625, 0.2095947265625, 0.1141357421875, 0.1241455078125, 0.1649169921875, 0.1175537109375, 0.2081298828125, 0.078125, 0.1968994140625, 0.1358642578125, 0.0908203125, 0.1834716796...
embed
7421751_c0
7421751
haskell
0
Title: Haskell set datatype/datastructure Problem title: Haskell set datatype/datastructure Tags: data-structures, set, compare, haskell, equals Problem: Haskell set datatype/datastructure What i want to do is to create a type Set in Haskell to represent a generic(polymorphic) set ex. {1,'x',"aasdf",Phi} first i want t...
Haskell set datatype/datastructure Haskell set datatype/datastructure data-structures set compare haskell equals Haskell Phi Set Cons Show Ord Bool Haskell set datatype/datastructure What i want to do is to create a type Set in Haskell to represent a generic(polymorphic) set ex. {1,'x',"aasdf",Phi} first i want to clea...
[ 0.0201416015625, 0.0096435546875, 0.01007080078125, 0.01312255859375, 0.0007171630859375, 0.004302978515625, 0.0035552978515625, -0.022705078125, 0.0076904296875, -0.0021209716796875, -0.00823974609375, 0.012451171875, 0.01434326171875, -0.0172119140625, -0.0167236328125, 0.01257324218...
[ 20625, 142508, 5423, 2053, 50986, 10135, 137656, 69101, 1556, 105950, 49039, 19943, 39215, 17367, 35379, 2460, 929, 3444, 28282, 10644, 23, 33636, 189534, 135545, 178851, 425, 420, 45689, 14, 34735, 1528, 16916, 134332, 939, 10617, 756, 18151, ...
[ 0.13037109375, 0.236083984375, 0.2193603515625, 0.077392578125, 0.2115478515625, 0.05120849609375, 0.21044921875, 0.1328125, 0.1175537109375, 0.103271484375, 0.1783447265625, 0.24072265625, 0.1478271484375, 0.1080322265625, 0.1070556640625, 0.018798828125, 0.07958984375, 0.05273437...
embed
63123740_c1
63123740
haskell
1
enctype}> ^{widget} <button>Submit |] When I run this code I am given a drop down menu like I would expect and am able to to submit the form. I get a FormSuccess , and am therfore shown the CityHold variable. The problem is that this variable does not hold the associated value that is created by cityMap in the ambiguit...
enctype}> ^{widget} <button>Submit |] When I run this code I am given a drop down menu like I would expect and am able to to submit the form. I get a FormSuccess , and am therfore shown the CityHold variable. The problem is that this variable does not hold the associated value that is created by cityMap in the ambiguit...
[ -0.01422119140625, -0.0142822265625, -0.0159912109375, 0.000164031982421875, -0.02294921875, -0.0185546875, 0.012451171875, 0.01025390625, 0.00848388671875, -0.010498046875, 0.009033203125, -0.01806640625, 0.0103759765625, 0.0250244140625, -0.0042724609375, -0.01513671875, 0.01287841...
[ 50986, 32306, 3794, 8789, 1507, 96472, 4007, 11675, 18151, 36069, 7565, 8026, 41206, 19048, 137447, 3173, 15236, 14168, 238, 26531, 127887, 6406, 113251, 71, 77336, 2967, 14602, 959, 16401, 137272, 34292, 75935, 26349, 166179, 920, 12282, 2481,...
[ 0.1510009765625, 0.075439453125, 0.098388671875, 0.03204345703125, 0.0144500732421875, 0.072998046875, 0.122314453125, 0.01922607421875, 0.13037109375, 0.050994873046875, 0.068359375, 0.1016845703125, 0.013671875, 0.001251220703125, 0.1607666015625, 0.1883544921875, 0.1397705078125, ...
embed
36431489_c0
36431489
haskell
0
Title: Understanding scoping with haskell monads Problem title: Understanding scoping with haskell monads Tags: scoping, monads, haskell Problem: Understanding scoping with haskell monads I'm trying to understand how the scope works in do blocks. If I have the following code: l = [1, 2, 3] m = [1, 2] then this works fi...
Understanding scoping with haskell monads Understanding scoping with haskell monads scoping monads haskell Understanding Not Understanding scoping with haskell monads I'm trying to understand how the scope works in do blocks. If I have the following code: then this works fine And return the Cartesian product of m and l...
[ -0.01806640625, 0.0225830078125, 0.006561279296875, 0.01031494140625, 0.00433349609375, 0.0115966796875, -0.004364013671875, 0.00136566162109375, 0.004730224609375, -0.02587890625, 0.0018768310546875, -0.0169677734375, -0.01409912109375, 0.001220703125, -0.00119781494140625, -0.0125732...
[ 9626, 144057, 44679, 214, 678, 1556, 142508, 2667, 712, 11205, 7, 31577, 28219, 3642, 70820, 43240, 23, 54, 46389, 25632, 18151, 903, 5885, 30646, 106274, 39209, 12996, 111, 347, 136, 96, 434, 18781, 12921, 3173, 621, 6002, 102, 49086, 10...
[ 0.09625244140625, 0.10614013671875, 0.1927490234375, 0.115478515625, 0.0831298828125, 0.114990234375, 0.2333984375, 0.084716796875, 0.152099609375, 0.1556396484375, 0.0194244384765625, 0.0273590087890625, 0.09197998046875, 0.012237548828125, 0.24169921875, 0.1373291015625, 0.13488769...
embed
16257401_c0
16257401
haskell
0
Title: Efficient overloading in Haskell Problem title: Efficient overloading in Haskell Tags: haskell Problem: Efficient overloading in Haskell I wonder which of the two strategies below is the most efficient for overloading a function (here the function teX in my example). Using data and pattern matching: data TeX = T...
Efficient overloading in Haskell Efficient overloading in Haskell haskell Efficient Haskell TeX TeXt TeXmath Show Read Efficient overloading in Haskell I wonder which of the two strategies below is the most efficient for overloading a function (here the function teX in my example). Using data and pattern matching: Or u...
[ 0.0086669921875, -0.0031585693359375, 0.000705718994140625, -0.0074462890625, -0.0003376007080078125, -0.004638671875, 0.00015163421630859375, -0.00860595703125, -0.00064849853515625, -0.0155029296875, 0.0191650390625, -0.0225830078125, 0.01043701171875, -0.00860595703125, -0.00146484375...
[ 241, 24500, 45964, 645, 63033, 214, 20625, 142508, 23, 1556, 1413, 1542, 18, 125458, 17367, 4764, 32195, 6626, 50531, 35064, 2684, 93766, 100, 32354, 120, 27781, 345, 2053, 136, 103510, 14858, 3347, 17368, 4785, 164789, 172561, 99156, 4527, ...
[ 0.002166748046875, 0.153076171875, 0.05303955078125, 0.15234375, 0.2166748046875, 0.11279296875, 0.1397705078125, 0.2435302734375, 0.01397705078125, 0.1273193359375, 0.12744140625, 0.148681640625, 0.07208251953125, 0.140625, 0.07550048828125, 0.044891357421875, 0.07550048828125, 0....
embed
26057438_c0
26057438
haskell
0
Title: Haskell parse error on input &#x27;|&#x27; Problem title: Haskell parse error on input &#x27;|&#x27; Tags: conditional-statements, haskell, error-handling Problem: Haskell parse error on input '|' I'm getting the following error: parse error on input '|' with my code: makeMove :: Player -> Board -> Maybe Board m...
Haskell parse error on input &#x27;|&#x27; Haskell parse error on input &#x27;|&#x27; conditional-statements haskell error-handling Haskell Player Board Maybe Nothing ros2int rb2b r:rs i:is Just Haskell parse error on input '|' I'm getting the following error: with my code: However I suppose this would be caused by tab...
[ -0.00579833984375, 0.00274658203125, 0.00095367431640625, 0.0072021484375, -0.0016021728515625, 0.021728515625, -0.00714111328125, -0.007720947265625, -0.00933837890625, -0.0087890625, -0.004150390625, 0.0147705078125, 0.012451171875, -0.010009765625, 0.00186920166015625, -0.0137329101...
[ 20625, 142508, 366, 184, 18499, 98, 107730, 3768, 35431, 61340, 1556, 54885, 60560, 62554, 83425, 182747, 19429, 304, 4288, 13471, 275, 1690, 4295, 17, 164, 9563, 58745, 20949, 25632, 12, 678, 759, 18151, 139124, 143434, 20928, 193943, 3956, ...
[ 0.1431884765625, 0.2344970703125, 0.1748046875, 0.1455078125, 0.2137451171875, 0.078857421875, 0.2275390625, 0.057464599609375, 0.101318359375, 0.0782470703125, 0.1163330078125, 0.07501220703125, 0.120849609375, 0.1273193359375, 0.09197998046875, 0.1219482421875, 0.1461181640625, 0...
embed
70473553_c2
70473553
haskell
2
give me this : cabal install --lib --minimize-conflict-set parallel Resolving dependencies... cabal.exe: Could not resolve dependencies: [__0] trying: deepseq-1.4.6.1 (user goal) [__1] next goal: ghc (user goal) [__1] rejecting: ghc-9.2.1/installed-9.2.1 (conflict: deepseq==1.4.6.1, ghc => Code signals: user, cabal.ex...
give me this : cabal install --lib --minimize-conflict-set parallel Resolving dependencies... cabal.exe: Could not resolve dependencies: [__0] trying: deepseq-1.4.6.1 (user goal) [__1] next goal: ghc (user goal) [__1] rejecting: ghc-9.2.1/installed-9.2.1 (conflict: deepseq==1.4.6.1, ghc => Code signals: user, cabal.ex...
[ 0.01324462890625, -0.0012359619140625, 0.0140380859375, 0.00787353515625, 0.00201416015625, -0.0166015625, -0.017578125, -0.0135498046875, -0.0057373046875, 0.009521484375, -0.00482177734375, -0.0291748046875, 0.0146484375, 0.0235595703125, 0, 0.005401611328125, 0.025146484375, -0....
[ 8337, 163, 903, 109524, 20600, 5612, 1249, 77651, 2271, 134225, 3509, 95103, 132944, 42548, 117538, 5, 46480, 191147, 959, 103608, 31577, 53894, 184, 864, 91977, 173245, 65918, 69236, 11737, 31380, 238, 456, 75161, 15205, 68107, 80383, 28864, ...
[ 0.1376953125, 0.08984375, 0.0902099609375, 0.29345703125, 0.1800537109375, 0.1854248046875, 0.1431884765625, 0.1883544921875, 0.09722900390625, 0.249755859375, 0.13623046875, 0.2255859375, 0.1907958984375, 0.2410888671875, 0.1470947265625, 0.040008544921875, 0.19091796875, 0.219238...
embed
74844603_c0
74844603
haskell
0
Title: Syntax error using where or let in binding in Hashkell Problem title: Syntax error using where or let in binding in Hashkell Tags: haskell Problem: Syntax error using where or let in binding in Hashkell I'm newie to the Haskell world recently. And still, struggle with syntax. Both methods follow have syntax erro...
Syntax error using where or let in binding in Hashkell Syntax error using where or let in binding in Hashkell haskell where Syntax Hashkell x:xs util.hs:47:21 Syntax error using where or let in binding in Hashkell I'm newie to the Haskell world recently. And still, struggle with syntax. Both methods follow have syntax ...
[ -0.028564453125, 0.03466796875, -0.00775146484375, -0.002166748046875, -0.0078125, 0.0201416015625, -0.0185546875, -0.0078125, 0.00131988525390625, -0.023193359375, -0.00921630859375, -0.00250244140625, 0.0213623046875, -0.00921630859375, 0.011962890625, 0.006378173828125, -0.0028533...
[ 19010, 86531, 18499, 17368, 7440, 707, 2633, 23, 128239, 162087, 142508, 1556, 1022, 425, 39137, 127, 33573, 25619, 6344, 20625, 8999, 78684, 7464, 151994, 6002, 149766, 150624, 28960, 5809, 2967, 40647, 15573, 5701, 4358, 31577, 208124, 46741,...
[ 0.16064453125, 0.191650390625, 0.1947021484375, 0.104736328125, 0.2032470703125, 0.17578125, 0.2384033203125, 0.0906982421875, 0.2333984375, 0.1337890625, 0.248779296875, 0.125244140625, 0.0287628173828125, 0.05206298828125, 0.1099853515625, 0.024200439453125, 0.05389404296875, 0.0...
embed
66082521_c1
66082521
haskell
1
go 0 ks where go acum x = if M.lookup y m == Just True && y /= x then 1 else acum where y = t - x You can see I have two variables top and bot which I am trying to calculate in parallel via out = top `par` bot `pseq` (sum bot + sum top) which is what I thought other stack overflow answers are recommending. However whe...
go 0 ks where go acum x = if M.lookup y m == Just True && y /= x then 1 else acum where y = t - x You can see I have two variables top and bot which I am trying to calculate in parallel via out = top `par` bot `pseq` (sum bot + sum top) which is what I thought other stack overflow answers are recommending. However whe...
[ -0.000598907470703125, 0.0242919921875, -0.00115966796875, -0.0269775390625, 0.00640869140625, 0.003082275390625, 0.006591796875, 0.019775390625, 0.003570556640625, -0.041748046875, 0.00933837890625, 0.0174560546875, 0.01190185546875, -0.00811767578125, -0.0086669921875, -0.00025749206...
[ 738, 757, 1224, 7440, 9176, 1022, 2174, 276, 64747, 2037, 113, 347, 9563, 87599, 1230, 106, 808, 20, 1957, 6626, 77336, 2663, 136, 13820, 31577, 74481, 95103, 1829, 1810, 2500, 45616, 864, 11832, 997, 10554, 177261, 645, 118664, 67330, 99...
[ 0.14990234375, 0.203125, 0.181396484375, 0.1097412109375, 0.24951171875, 0.08392333984375, 0.03228759765625, 0.08660888671875, 0.1451416015625, 0.1512451171875, 0.1011962890625, 0.08978271484375, 0.1248779296875, 0.173095703125, 0.011138916015625, 0.035308837890625, 0.07025146484375,...
embed
66835076_c0
66835076
haskell
0
Title: Generating random values in Haskell Problem title: Generating random values in Haskell Tags: haskell Problem: Generating random values in Haskell I am using the Real World Haskell book. The statement ghci> import Test.QuickCheck ghci> generate 10 (System.Random.mkStdGen 2) arbitrary :: [Bool] results in <interac...
Generating random values in Haskell Generating random values in Haskell haskell Test.QuickCheck Generating Haskell System.Random.mkStdGen Bool Couldn StdGen Gen Generating random values in Haskell I am using the Real World Haskell book. The statement results in If I am reading the error correctly it seems that "System....
[ -0.0184326171875, 0.004058837890625, -0.010986328125, -0.01275634765625, 0.00653076171875, 0.01239013671875, -0.0022430419921875, -0.042724609375, -0.01116943359375, -0.032958984375, -0.00811767578125, 0.003265380859375, -0.01416015625, -0.0125732421875, 0.01708984375, -0.0068359375, ...
[ 155370, 96759, 142424, 20625, 142508, 1916, 23, 1556, 8647, 96010, 202567, 12353, 126525, 3815, 19201, 37455, 71, 105376, 2460, 929, 191147, 2907, 15937, 17368, 5120, 6661, 12877, 63805, 50339, 16454, 18499, 84293, 116, 5036, 12663, 2667, 712, ...
[ 0.181884765625, 0.1961669921875, 0.186279296875, 0.1265869140625, 0.234619140625, 0.088623046875, 0.021453857421875, 0.1116943359375, 0.1201171875, 0.0251922607421875, 0.1668701171875, 0.0950927734375, 0.0966796875, 0.178466796875, 0.057037353515625, 0.1151123046875, 0.04034423828125...
embed
62165481_c0
62165481
haskell
0
Title: How to set a &quot;global&quot; package flag using stack (haskell)? Problem title: How to set a &quot;global&quot; package flag using stack (haskell)? Tags: haskell-stack, haskell Problem: How to set a "global" package flag using stack (haskell)? I need to invoke stack as such on Mac OSX (other team members are ...
How to set a &quot;global&quot; package flag using stack (haskell)? How to set a &quot;global&quot; package flag using stack (haskell)? haskell-stack haskell stack How stack.yaml hlibsass:externallibsass config.yaml Warning Users Unrecognized ConfigMonoid How to set a "global" package flag using stack (haskell)? I need...
[ 0.000598907470703125, 0.01287841796875, 0.00408935546875, -0.004364013671875, -0.01123046875, -0.0103759765625, -0.016357421875, -0.0037841796875, -0.01708984375, 0.01507568359375, 0.007781982421875, 0.004974365234375, -0.0003376007080078125, -0.0030517578125, -0.006683349609375, 0.013...
[ 11249, 5423, 156566, 98169, 49938, 17368, 177261, 10557, 142508, 1556, 590, 2594, 14520, 141, 1096, 5612, 15796, 7, 31586, 153837, 5550, 53400, 992, 115558, 139403, 46674, 48899, 10, 23253, 6044, 4727, 11787, 1542, 7175, 43032, 29908, 15190, ...
[ 0.056610107421875, 0.171142578125, 0.224365234375, 0.254638671875, 0.28466796875, 0.088134765625, 0.2464599609375, 0.10540771484375, 0.2430419921875, 0.09527587890625, 0.134765625, 0.1021728515625, 0.1280517578125, 0.1363525390625, 0.005523681640625, 0.10009765625, 0.095703125, 0.0...
embed
17281556_c0
17281556
haskell
0
Title: What&#x27;s the conceptual difference between Machines and Conduits (or other similar libraries)? Problem title: What&#x27;s the conceptual difference between Machines and Conduits (or other similar libraries)? Tags: transducer-machines, haskell, conduit Problem: What's the conceptual difference between Machines...
What&#x27;s the conceptual difference between Machines and Conduits (or other similar libraries)? What&#x27;s the conceptual difference between Machines and Conduits (or other similar libraries)? transducer-machines haskell conduit What Machines Conduits Machine Step Stop Yield Await What's the conceptual difference be...
[ 0.01953125, -0.004974365234375, 0.0029144287109375, 0.021484375, -0.004180908203125, 0.004608154296875, -0.007171630859375, -0.005462646484375, 0.00157928466796875, -0.0303955078125, -0.00811767578125, -0.0172119140625, 0.00007486343383789062, -0.004486083984375, -0.007232666015625, -0...
[ 4865, 3768, 70, 228113, 60212, 17721, 68311, 7, 136, 1657, 112061, 21373, 35773, 10484, 3900, 39367, 56, 103149, 1556, 142508, 120565, 50478, 42284, 42341, 19388, 634, 217, 1884, 30698, 23755, 28219, 4527, 116491, 28960, 16098, 147, 223733, 1...
[ 0.036346435546875, 0.055023193359375, 0.059906005859375, 0.2255859375, 0.2340087890625, 0.1248779296875, 0.251708984375, 0.1357421875, 0.1326904296875, 0.1541748046875, 0.25146484375, 0.060821533203125, 0.2374267578125, 0.155029296875, 0.07586669921875, 0.1376953125, 0.0418701171875,...
embed
26069114_c0
26069114
haskell
0
Title: Haskell 2014.0.0: Two &#x27;Could not deduce&#x27; errors occur when executing simple function Problem title: Haskell 2014.0.0: Two &#x27;Could not deduce&#x27; errors occur when executing simple function Tags: haskell, function Problem: Haskell 2014.0.0: Two 'Could not deduce' errors occur when executing simple...
Haskell 2014.0.0: Two &#x27;Could not deduce&#x27; errors occur when executing simple function Haskell 2014.0.0: Two &#x27;Could not deduce&#x27; errors occur when executing simple function haskell function Haskell Two Could n-1 Haskell 2014.0.0: Two 'Could not deduce' errors occur when executing simple function I want...
[ -0.0206298828125, -0.0078125, -0.01068115234375, 0.00909423828125, 0.0191650390625, -0.014404296875, -0.01422119140625, 0.0033111572265625, 0.00113677978515625, -0.01483154296875, -0.0059814453125, -0.037353515625, 0.01953125, 0.0185546875, -0.0107421875, 0.00482177734375, 0.01306152...
[ 20625, 142508, 8432, 99929, 32964, 3768, 10625, 52366, 959, 8, 106357, 18499, 74918, 71924, 8781, 32354, 1556, 191147, 653, 5759, 3444, 1528, 331, 7, 74481, 18227, 57346, 18151, 140909, 26785, 40899, 25632, 3917, 159029, 116, 527, 73265, 14, ...
[ 0.1231689453125, 0.25048828125, 0.18994140625, 0.1768798828125, 0.196533203125, 0.0999755859375, 0.06072998046875, 0.136474609375, 0.1435546875, 0.174072265625, 0.22607421875, 0.2081298828125, 0.09759521484375, 0.131591796875, 0.149169921875, 0.195556640625, 0.09619140625, 0.127197...
embed
52665150_c0
52665150
haskell
0
Title: Is there a auto-conversion from String to ByteString? Problem title: Is there a auto-conversion from String to ByteString? Tags: haskell Problem: Is there a auto-conversion from String to ByteString? addRequestHeader (H.hContentType, "application/json") this is a example of the usage of Network.HTTP.Simple packa...
Is there a auto-conversion from String to ByteString? Is there a auto-conversion from String to ByteString? haskell String ByteString H.hContentType Network.HTTP.Types.Header.HeaderName Data.ByteString.Internal.ByteString Request Is there a auto-conversion from String to ByteString? this is a example of the usage of Ne...
[ 0.0177001953125, 0.021728515625, -0.0126953125, 0.01239013671875, -0.0242919921875, 0.02294921875, -0.01263427734375, 0.00191497802734375, -0.0111083984375, 0.022216796875, 0.0191650390625, -0.017578125, -0.01385498046875, 0.02099609375, -0.01373291015625, -0.021484375, -0.0079956054...
[ 2071, 2685, 10, 1809, 9, 2271, 46354, 1295, 23351, 214, 47, 3311, 67, 71713, 1556, 142508, 572, 127, 25352, 196707, 28997, 18544, 23658, 13025, 38970, 163612, 11809, 75358, 44851, 853, 75616, 27781, 127689, 8859, 33209, 98169, 51592, 3642, ...
[ 0.051361083984375, 0.0887451171875, 0.03125, 0.233642578125, 0.042816162109375, 0.07861328125, 0.1888427734375, 0.1019287109375, 0.2166748046875, 0.1656494140625, 0.131591796875, 0.124267578125, 0.17822265625, 0.2222900390625, 0.11474609375, 0.228271484375, 0.055389404296875, 0.049...
embed
74784231_c0
74784231
haskell
0
Title: How would I quick sort this type horse which is a 2-tuple consisting of a String (the horse’s name) and an Int (the horse’s height in centimetres) Problem title: How would I quick sort this type horse which is a 2-tuple consisting of a String (the horse’s name) and an Int (the horse’s height in centimetres) Tags...
How would I quick sort this type horse which is a 2-tuple consisting of a String (the horse’s name) and an Int (the horse’s height in centimetres) How would I quick sort this type horse which is a 2-tuple consisting of a String (the horse’s name) and an Int (the horse’s height in centimetres) haskell quicksort How Hors...
[ -0.0150146484375, 0.00994873046875, -0.002685546875, 0.00543212890625, -0.0142822265625, 0.0081787109375, -0.015869140625, -0.0184326171875, 0.0233154296875, 0.002471923828125, 0.001129150390625, -0.0019683837890625, -0.004119873046875, -0.0003662109375, -0.00970458984375, 0.0003681182...
[ 11249, 2806, 87, 63773, 12096, 903, 10644, 111649, 4720, 458, 8705, 58055, 23351, 214, 9351, 136, 360, 18, 155955, 118826, 1556, 142508, 62351, 151307, 5922, 184, 6562, 31577, 442, 82800, 12989, 12638, 27781, 764, 5303, 20800, 24658, 63652, ...
[ 0.045745849609375, 0.07122802734375, 0.03021240234375, 0.18994140625, 0.2318115234375, 0.07373046875, 0.1536865234375, 0.2110595703125, 0.1510009765625, 0.11767578125, 0.1627197265625, 0.0760498046875, 0.166015625, 0.1036376953125, 0.0853271484375, 0.02471923828125, 0.10107421875, ...
embed
42891098_c1
42891098
haskell
1
this doesn't work since I have two operations: vertical append and horizontal append and the operations aren't associative when they're mixed together. Next I thought 'Some of my operations depend on their context' so I probably have a Comonad. The version of the tree I have doesn't work as a co-monad because I don't ...
this doesn't work since I have two operations: vertical append and horizontal append and the operations aren't associative when they're mixed together. Next I thought 'Some of my operations depend on their context' so I probably have a Comonad. The version of the tree I have doesn't work as a co-monad because I don't ...
[ -0.015869140625, 0.0194091796875, -0.00604248046875, 0.0152587890625, 0.01214599609375, 0.003448486328125, -0.019287109375, -0.020263671875, 0.0137939453125, -0.03955078125, -0.0030059814453125, -0.01214599609375, -0.009033203125, 0.0203857421875, -0.02197265625, 0.01104736328125, -0...
[ 903, 22027, 18, 4488, 6626, 41018, 79259, 114689, 71, 124001, 166027, 17664, 25842, 56566, 43701, 765, 6646, 9169, 11389, 53201, 552, 3796, 712, 34292, 125663, 21110, 206, 456, 137656, 2053, 101344, 10, 438, 176774, 62731, 6496, 97249, 18770,...
[ 0.055877685546875, 0.07391357421875, 0.0926513671875, 0.1241455078125, 0.03363037109375, 0.15966796875, 0.1376953125, 0.163818359375, 0.08740234375, 0.1162109375, 0.09228515625, 0.1038818359375, 0.05242919921875, 0.03875732421875, 0.109130859375, 0.007110595703125, 0.1844482421875, ...
embed
31764967_c0
31764967
haskell
0
Title: Using regexp in haskell function guards Problem title: Using regexp in haskell function guards Tags: haskell, regex, idioms Problem: Using regexp in haskell function guards I would like to write a Haskell function that's behavior is dependent upon regex pattern matching one of the arguments. In a language like C...
Using regexp in haskell function guards Using regexp in haskell function guards haskell regex idioms Using Data.String.IsString source0 pattern1 pattern2 Using regexp in haskell function guards I would like to write a Haskell function that's behavior is dependent upon regex pattern matching one of the arguments. In a l...
[ -0.016357421875, 0.008544921875, 0.01129150390625, 0.007476806640625, 0.00787353515625, 0.0135498046875, -0.026611328125, 0.0252685546875, 0.004058837890625, -0.0296630859375, 0.02197265625, -0.01019287109375, -0.007232666015625, -0.012451171875, 0.0155029296875, 0.0027923583984375, ...
[ 345, 6835, 83613, 23, 1556, 142508, 32354, 56050, 7, 3355, 13373, 11809, 71713, 214, 29598, 31344, 2389, 103510, 418, 304, 33022, 20625, 123166, 108750, 14858, 1632, 10750, 360, 46876, 313, 50828, 15277, 141, 4527, 21334, 2174, 64, 5557, 64...
[ 0.0792236328125, 0.1798095703125, 0.274658203125, 0.00177001953125, 0.122802734375, 0.2039794921875, 0.14990234375, 0.2286376953125, 0.0718994140625, 0.177001953125, 0.09771728515625, 0.07550048828125, 0.1220703125, 0.05487060546875, 0.077880859375, 0.155517578125, 0.1015625, 0.187...
embed
57109229_c0
57109229
haskell
0
Title: Why Haskell doesn&#x27;t have split function? Problem title: Why Haskell doesn&#x27;t have split function? Tags: haskell, package Problem: Why Haskell doesn't have split function? In many languages there's a function that breaks strings into parts using specified delimiter. It's often called split . You can find...
Why Haskell doesn&#x27;t have split function? Why Haskell doesn&#x27;t have split function? haskell package Why Haskell Why Haskell doesn't have split function? In many languages there's a function that breaks strings into parts using specified delimiter. It's often called split . You can find it in Python, C#, Java, J...
[ -0.01324462890625, -0.0050048828125, 0.007232666015625, 0.00439453125, -0.02685546875, 0.0201416015625, 0.00555419921875, -0.0003147125244140625, -0.00457763671875, 0.0062255859375, 0.003875732421875, -0.02001953125, -0.00860595703125, -0.00946044921875, -0.0034027099609375, 0.00933837...
[ 44084, 20625, 142508, 22027, 3768, 18, 765, 65450, 32354, 1556, 98169, 5941, 46876, 36356, 79315, 3934, 63920, 17368, 58735, 8, 93343, 56, 27983, 35839, 7413, 145581, 4904, 41925, 17925, 8035, 32233, 90638, 7464, 21, 22824, 6044, 5570, 35773,...
[ 0.09381103515625, 0.134521484375, 0.2486572265625, 0.0667724609375, 0.053466796875, 0.1141357421875, 0.10791015625, 0.28515625, 0.217529296875, 0.124267578125, 0.1689453125, 0.095947265625, 0.1304931640625, 0.187744140625, 0.202392578125, 0.147705078125, 0.1783447265625, 0.07269287...
embed
12463474_c0
12463474
haskell
0
Title: Matching on type level Nat in GHC 7.6 Problem title: Matching on type level Nat in GHC 7.6 Tags: type-level-computation, ghc, type-families, haskell Problem: Matching on type level Nat in GHC 7.6 My question is probably easiest to explain in the form of an example: type family Take (n :: Nat) (xs :: [k]) :: [k] ...
Matching on type level Nat in GHC 7.6 Matching on type level Nat in GHC 7.6 type-level-computation ghc type-families haskell Matching Nat GHC Take Succ GHC.TypeLits Matching on type level Nat in GHC 7.6 My question is probably easiest to explain in the form of an example: The second instance here is rejected, though, b...
[ -0.00927734375, 0.005523681640625, 0.01434326171875, -0.0106201171875, -0.01531982421875, -0.0069580078125, -0.00830078125, 0.019287109375, -0.004913330078125, -0.0150146484375, 0.02294921875, -0.01177978515625, -0.0025177001953125, -0.00008678436279296875, 0.01214599609375, 0.00315856...
[ 67407, 214, 98, 10644, 17366, 68875, 527, 73265, 180347, 67919, 7077, 31380, 238, 69128, 1556, 142508, 46673, 1832, 10060, 196707, 9506, 933, 73342, 27781, 17932, 110527, 3688, 34590, 89829, 22183, 16, 14449, 68034, 831, 18, 11814, 10750, 561...
[ 0.2310791015625, 0.09857177734375, 0.0733642578125, 0.216064453125, 0.1842041015625, 0.23779296875, 0.082275390625, 0.174560546875, 0.2099609375, 0.1502685546875, 0.0194854736328125, 0.06781005859375, 0.071533203125, 0.070556640625, 0.083740234375, 0.201171875, 0.07000732421875, 0....
embed
28194340_c0
28194340
haskell
0
Title: Generically finding out whether the type of a value belongs to a type class or not Problem title: Generically finding out whether the type of a value belongs to a type class or not Tags: haskell, reflection, typeclass Problem: Generically finding out whether the type of a value belongs to a type class or not I w...
Generically finding out whether the type of a value belongs to a type class or not Generically finding out whether the type of a value belongs to a type class or not haskell reflection typeclass Generically MaybeShowable Show Showable Opaque Data Generically finding out whether the type of a value belongs to a type cla...
[ -0.00714111328125, -0.01251220703125, 0.016845703125, 0.0189208984375, -0.00579833984375, 0.0016632080078125, -0.01055908203125, -0.0157470703125, 0.00909423828125, 0.006866455078125, -0.036376953125, -0.013916015625, -0.000804901123046875, 0.00909423828125, -0.00115203857421875, -0.00...
[ 88342, 90791, 1810, 36766, 10644, 34292, 10617, 47, 18507, 959, 1556, 142508, 44961, 67413, 83425, 168660, 2886, 17367, 2331, 11, 11809, 707, 3444, 33022, 83, 32354, 2831, 18151, 7722, 110527, 2965, 11389, 43240, 75693, 24927, 88996, 61924 ]
[ 0.07879638671875, 0.1005859375, 0.09979248046875, 0.08056640625, 0.2274169921875, 0.1741943359375, 0.12451171875, 0.0311737060546875, 0.2147216796875, 0.0963134765625, 0.0780029296875, 0.1790771484375, 0.1396484375, 0.1336669921875, 0.120849609375, 0.187255859375, 0.2113037109375, ...
embed
43313441_c1
43313441
haskell
1
a,b) <- acc] | otherwise = (out,prob):acc Is a list comprehension the best way to modify the matching outcome in the accumulator? I couldn't think of anything else that would be cleaner. Also, while this seems to work in ghci when I enter Prob (foldl probFold [] (getProb flipThree )) , where flipThree has type Prob Boo...
a,b) <- acc] | otherwise = (out,prob):acc Is a list comprehension the best way to modify the matching outcome in the accumulator? I couldn't think of anything else that would be cleaner. Also, while this seems to work in ghci when I enter Prob (foldl probFold [] (getProb flipThree )) , where flipThree has type Prob Boo...
[ 0.0034942626953125, 0.0191650390625, 0.002349853515625, -0.003387451171875, -0.0225830078125, 0.025146484375, -0.017578125, 0.0123291015625, -0.00537109375, -0.0003833770751953125, 0.0177001953125, 0.001251220703125, 0.01397705078125, -0.0128173828125, -0.01165771484375, 0.002258300781...
[ 10, 275, 4426, 9, 50015, 120262, 6056, 79122, 10060, 5303, 46683, 3220, 6889, 2965, 2811, 40383, 14858, 214, 184345, 183278, 1290, 69427, 5351, 46622, 56, 4488, 31380, 318, 30957, 1250, 42822, 141, 43011, 919, 18345, 10752, 147505, 20800, 1...
[ 0.09051513671875, 0.1712646484375, 0.00250244140625, 0.01837158203125, 0.0880126953125, 0.091064453125, 0.1151123046875, 0.1768798828125, 0.05047607421875, 0.1417236328125, 0.1092529296875, 0.1224365234375, 0.04620361328125, 0.0078125, 0.1170654296875, 0.0989990234375, 0.203491210937...
embed
33115595_c1
33115595
haskell
1
-> Const (Data.Monoid.First Text) (([InstanceNetworkInterface] -> f0 [InstanceNetworkInterface]) -> Instance -> f0 Instance) Actual type: (IxValue (([InstanceNetworkInterface] -> f0 [InstanceNetworkInterface]) -> Instance -> f0 Instance) -> Const (Data.Monoid.First Text) (IxValue (([InstanceNetworkInterface] -> f0 [In...
-> Const (Data.Monoid.First Text) (([InstanceNetworkInterface] -> f0 [InstanceNetworkInterface]) -> Instance -> f0 Instance) Actual type: (IxValue (([InstanceNetworkInterface] -> f0 [InstanceNetworkInterface]) -> Instance -> f0 Instance) -> Const (Data.Monoid.First Text) (IxValue (([InstanceNetworkInterface] -> f0 [In...
[ -0.006103515625, -0.02197265625, 0.01409912109375, 0.021728515625, 0.0086669921875, -0.0001735687255859375, 0.00054168701171875, -0.0146484375, 0.00173187255859375, -0.042236328125, -0.00007534027099609375, 0.0284423828125, -0.00634765625, 0.002593994140625, 0.00909423828125, -0.015441...
[ 33079, 1657, 271, 15, 137989, 5, 46674, 48899, 207263, 24129, 16, 116071, 24447, 18244, 44851, 40404, 1238, 2389, 360, 100582, 10644, 12, 568, 425, 856, 50770, 4153, 32149, 5117, 10750, 110987, 4084, 757, 17932, 8353, 32, 485, 214813, 12779...
[ 0.121337890625, 0.197509765625, 0.272216796875, 0.0270843505859375, 0.1414794921875, 0.0985107421875, 0.134033203125, 0.2332763671875, 0.141357421875, 0.2432861328125, 0.000946044921875, 0.196044921875, 0.0379638671875, 0.022979736328125, 0.086181640625, 0.0877685546875, 0.0675048828...
embed
13461020_c0
13461020
haskell
0
Title: Creating UArray Int (Complex Double) in Haskell Problem title: Creating UArray Int (Complex Double) in Haskell Tags: complex-numbers, haskell Problem: Creating UArray Int (Complex Double) in Haskell I am attempting to have a UArray Int (Complex Double) . This signature is fine, however when I try to access a spe...
Creating UArray Int (Complex Double) in Haskell Creating UArray Int (Complex Double) in Haskell complex-numbers haskell a Creating UArray Complex Double Haskell IArray Possible Creating UArray Int (Complex Double) in Haskell I am attempting to have a UArray Int (Complex Double) . This signature is fine, however when I ...
[ -0.00054931640625, 0.0208740234375, 0.011962890625, -0.0021209716796875, 0.004669189453125, -0.003265380859375, 0.003143310546875, 0.005645751953125, 0.007354736328125, 0.0027313232421875, -0.007598876953125, -0.003173828125, 0.007781982421875, -0.00775146484375, 0.00122833251953125, -...
[ 56781, 345, 7614, 7092, 360, 18, 10770, 44974, 107172, 20625, 142508, 23, 27140, 2606, 1297, 1556, 1916, 113197, 115861, 81887, 765, 138256, 5885, 49903, 9790, 17203, 29458, 63262, 17368, 72896, 53299, 18499, 70, 18151, 4527, 3293, 79786, 100...
[ 0.1605224609375, 0.1156005859375, 0.1658935546875, 0.264404296875, 0.1405029296875, 0.1754150390625, 0.0865478515625, 0.2445068359375, 0.25439453125, 0.1365966796875, 0.2469482421875, 0.050750732421875, 0.195556640625, 0.1033935546875, 0.1024169921875, 0.114013671875, 0.0158843994140...
embed
33679852_c1
33679852
haskell
1
converts from the Lua stack. For simple types that have a direct built-in Lua representation, this is easy enough using code such as example B. For more complicated types, I'm also writing a template <typename T> struct Data to handle memory management for objects (bridging between Lua's GC and a C++ side refcount), a...
converts from the Lua stack. For simple types that have a direct built-in Lua representation, this is easy enough using code such as example B. For more complicated types, I'm also writing a template <typename T> struct Data to handle memory management for objects (bridging between Lua's GC and a C++ side refcount), a...
[ 0.0194091796875, -0.01434326171875, -0.00640869140625, -0.005645751953125, -0.01531982421875, 0.0031585693359375, -0.00555419921875, -0.01416015625, -0.01007080078125, -0.02734375, -0.00408935546875, -0.02880859375, -0.00604248046875, -0.00225830078125, 0.01171875, -0.005279541015625, ...
[ 96760, 7, 1295, 3350, 11, 177261, 8781, 52895, 8951, 88303, 18811, 23468, 20174, 18151, 27781, 335, 96704, 32562, 110934, 50986, 11627, 384, 36716, 11809, 34831, 98323, 24365, 100, 36746, 100269, 69657, 37223, 5609, 18831, 71013, 156377, 645, ...
[ 0.234619140625, 0.049530029296875, 0.1142578125, 0.1884765625, 0.170166015625, 0.2125244140625, 0.06036376953125, 0.151123046875, 0.07659912109375, 0.072998046875, 0.1524658203125, 0.082275390625, 0.00665283203125, 0.10888671875, 0.111572265625, 0.0997314453125, 0.08917236328125, 0...
embed
36532962_c0
36532962
haskell
0
Title: Understanding the ErrorT monad transformer Problem title: Understanding the ErrorT monad transformer Tags: haskell Problem: Understanding the ErrorT monad transformer newtype ErrorT e m a = ErrorT { runErrorT :: m (Either e a) } instance (Monad m, Error e) => Monad (ErrorT e m) where return a = ErrorT $ return (...
Understanding the ErrorT monad transformer Understanding the ErrorT monad transformer haskell Understanding ErrorT Either Monad Error Right Left Understanding the ErrorT monad transformer Let's consider above piece of code. It makes me trouble to understand it. How does it work in context of Monads/Transormer Monads? E...
[ 0.0009918212890625, 0.00147247314453125, 0.0164794921875, -0.00604248046875, 0.03271484375, -0.006317138671875, -0.015380859375, -0.027099609375, 0.0040283203125, -0.010009765625, 0.023193359375, -0.0118408203125, 0.00225830078125, 0.003570556640625, 0.006866455078125, -0.0018539428710...
[ 9626, 144057, 212059, 618, 2667, 712, 27198, 56, 1556, 142508, 9319, 60331, 71, 90911, 636, 2480, 16916, 36917, 18151, 63134, 28219, 11249, 14602, 4488, 43701, 6468, 62624, 748, 1991, 2967, 100094, 15400, 30646, 10, 2203, 3650, 22553, 1052, ...
[ 0.052734375, 0.04327392578125, 0.216796875, 0.1846923828125, 0.0997314453125, 0.1090087890625, 0.177001953125, 0.07342529296875, 0.07275390625, 0.1861572265625, 0.0177154541015625, 0.13427734375, 0.0662841796875, 0.1002197265625, 0.0154876708984375, 0.06756591796875, 0.02139282226562...
embed
52919638_c1
52919638
haskell
1
Rand function (that is also used to update the generator each frame), because Haskell doesn't know which type of number to use. Sample error: src\Controller.hs:45:56: error: * Ambiguous type variable `a0' arising from the literal `0.0' prevents the constraint `(Fractional a0)' from being solved. Relevant bindings inclu...
Rand function (that is also used to update the generator each frame), because Haskell doesn't know which type of number to use. Sample error: src\Controller.hs:45:56: error: * Ambiguous type variable `a0' arising from the literal `0.0' prevents the constraint `(Fractional a0)' from being solved. Relevant bindings inclu...
[ -0.01263427734375, 0.008056640625, 0.006072998046875, -0.0301513671875, 0.0157470703125, 0.0184326171875, -0.0012359619140625, -0.0191650390625, 0.0068359375, -0.021728515625, -0.025146484375, 0.005157470703125, -0.01373291015625, -0.0274658203125, 0.005828857421875, 0.0167236328125, ...
[ 39643, 32354, 86673, 11814, 28350, 145823, 12638, 123789, 247, 6637, 20625, 142508, 22027, 18, 3714, 10644, 14012, 4527, 5, 33209, 18499, 19437, 175904, 603, 127, 7, 15989, 34546, 10250, 12282, 10821, 77336, 11, 2389, 187, 72219, 15659, 99929...
[ 0.287353515625, 0.226318359375, 0.002105712890625, 0.07147216796875, 0.1322021484375, 0.256591796875, 0.06195068359375, 0.2308349609375, 0.031494140625, 0.06817626953125, 0.1651611328125, 0.313232421875, 0.01177978515625, 0.0701904296875, 0.08709716796875, 0.179931640625, 0.156005859...
embed
27816012_c1
27816012
haskell
1
adoomGUI{..} initialSectorBuilder firstVertex = do mouseClicked <- registerMouseClicked guiMap ... This certainly works - for a single mouse click. If I click on the map once, I switch into sector creation mode from the state I was just in. However, if I click again , defaultMode receives the click event and switches i...
adoomGUI{..} initialSectorBuilder firstVertex = do mouseClicked <- registerMouseClicked guiMap ... This certainly works - for a single mouse click. If I click on the map once, I switch into sector creation mode from the state I was just in. However, if I click again , defaultMode receives the click event and switches i...
[ -0.01220703125, 0.0084228515625, 0.0125732421875, -0.0002498626708984375, -0.00799560546875, -0.0029144287109375, -0.00897216796875, 0.005828857421875, 0.0277099609375, -0.0400390625, 0.0152587890625, -0.004974365234375, 0.004791259765625, 0.007781982421875, 0.006439208984375, 0.005981...
[ 1138, 306, 43578, 568, 61475, 4233, 18770, 121137, 56, 5117, 15896, 24371, 2203, 54, 114669, 181671, 68067, 51483, 297, 17086, 166179, 3293, 68782, 43240, 100, 11001, 18158, 22288, 24145, 101089, 3934, 8916, 166635, 13736, 11341, 13438, 114977,...
[ 0.169189453125, 0.1920166015625, 0.1646728515625, 0.0989990234375, 0.1221923828125, 0.10650634765625, 0.1256103515625, 0.1729736328125, 0.0704345703125, 0.109375, 0.1182861328125, 0.1826171875, 0.006561279296875, 0.0288238525390625, 0.14501953125, 0.1634521484375, 0.1907958984375, ...
embed
42215376_c0
42215376
haskell
0
Title: Yarr slice usage Problem title: Yarr slice usage Tags: arrays, repa, haskell Problem: Yarr slice usage I've been exploring the Data.Yarr Array library, as a possible replacement for some code I have in Repa. It seems fully featured, and the benchmarks - if correct suggest a performance improvement may be had. I'...
Yarr slice usage Yarr slice usage arrays repa haskell Yarr matrix2D UArray DIM2 Complex Float Yarr slice usage I've been exploring the Data.Yarr Array library, as a possible replacement for some code I have in Repa. It seems fully featured, and the benchmarks - if correct suggest a performance improvement may be had. I...
[ 0.01385498046875, 0.0133056640625, -0.000675201416015625, 0.0185546875, -0.0185546875, -0.000039577484130859375, -0.00970458984375, -0.00170135498046875, -0.003662109375, -0.015869140625, 0.0023193359375, -0.0224609375, -0.016357421875, -0.00787353515625, -0.027587890625, -0.0016708374...
[ 47935, 42, 91, 13348, 127689, 10298, 10958, 11, 1556, 142508, 50944, 397, 7614, 7092, 175546, 304, 113197, 38699, 257, 24649, 11809, 21566, 29161, 69253, 53, 35773, 1294, 7722, 91995, 18151, 33742, 60213, 240057, 23718, 136912, 60892, 26785, ...
[ 0.232421875, 0.2213134765625, 0.07318115234375, 0.24365234375, 0.167236328125, 0.077392578125, 0.11669921875, 0.1656494140625, 0.0699462890625, 0.1614990234375, 0.103515625, 0.07177734375, 0.0450439453125, 0.0933837890625, 0.0657958984375, 0.04541015625, 0.136962890625, 0.134033203...
embed
47646991_c0
47646991
haskell
0
Title: Ways to apply an applicative functor multiple times Problem title: Ways to apply an applicative functor multiple times Tags: haskell Problem: Ways to apply an applicative functor multiple times Hello fellow Haskellers. Let's say I have an applicative functor (not an instance of monad) I want to apply multiple ti...
Ways to apply an applicative functor multiple times Ways to apply an applicative functor multiple times haskell Ways Just Applicative Ways to apply an applicative functor multiple times Hello fellow Haskellers. Let's say I have an applicative functor (not an instance of monad) I want to apply multiple times to a pure i...
[ -0.00701904296875, 0.0142822265625, 0.00897216796875, 0.021484375, 0.00091552734375, 0.00159454345703125, 0.005279541015625, -0.00457763671875, 0.0201416015625, -0.050048828125, 0.0159912109375, -0.00982666015625, -0.00958251953125, 0.04345703125, 0.004180908203125, -0.01019287109375, ...
[ 42261, 7, 47, 59911, 41816, 4935, 7477, 18770, 48716, 20028, 1556, 142508, 9563, 5659, 11048, 35378, 145042, 20625, 1314, 765, 10869, 110527, 2667, 712, 3444, 34166, 61475, 34292, 4537, 20650, 2499, 14012, 148390, 86685, 831, 54, 678, 42822, ...
[ 0.1446533203125, 0.039398193359375, 0.10516357421875, 0.2442626953125, 0.1912841796875, 0.143798828125, 0.161865234375, 0.1875, 0.262451171875, 0.265625, 0.1256103515625, 0.2115478515625, 0.0318603515625, 0.116455078125, 0.154052734375, 0.00115966796875, 0.04449462890625, 0.0715332...
embed
48676140_c1
48676140
haskell
1
] , bgroup "env per every run" $ (\(i :: Int) -> bench ("10e" ++ show i) $ perRunEnv (mkVec (10 ^ i)) $ (testf (10 ^ i))) <$> [7..8] ] And results: benchmarking env per all runs/10e7 time 17.34 ms (17.20 ms .. 17.41 ms) 0.999 R² (0.998 R² .. 1.000 R²) mean 17.43 ms (17.34 ms .. 17.67 ms) std dev 321.5 μs (142.1 μs .. 5...
] , bgroup "env per every run" $ (\(i :: Int) -> bench ("10e" ++ show i) $ perRunEnv (mkVec (10 ^ i)) $ (testf (10 ^ i))) <$> [7..8] ] And results: benchmarking env per all runs/10e7 time 17.34 ms (17.20 ms .. 17.41 ms) 0.999 R² (0.998 R² .. 1.000 R²) mean 17.43 ms (17.34 ms .. 17.67 ms) std dev 321.5 μs (142.1 μs .. 5...
[ -0.0035400390625, -0.0213623046875, -0.0225830078125, 0.0029754638671875, 0.00148773193359375, 0.02392578125, -0.0302734375, -0.01226806640625, -0.0035552978515625, 0.0012969970703125, -0.004302978515625, 0.051025390625, -0.001708984375, 0.0019073486328125, -0.01153564453125, 0.0125732...
[ 10114, 4, 876, 51588, 33, 334, 117, 11907, 11675, 3650, 14, 1984, 360, 18, 33079, 1585, 206, 963, 13, 37223, 7639, 17, 16, 163321, 7768, 19201, 856, 3240, 15094, 6954, 420, 32149, 966, 1019, 3493, 50339, 240057, 214, 22, 756, 127877, ...
[ 0.040252685546875, 0.015228271484375, 0.112060546875, 0.2283935546875, 0.1624755859375, 0.2509765625, 0.1510009765625, 0.176513671875, 0.22265625, 0.08203125, 0.0357666015625, 0.025390625, 0.03326416015625, 0.048095703125, 0.00750732421875, 0.158203125, 0.1363525390625, 0.130371093...
embed
8858238_c0
8858238
haskell
0
Title: Parse elements from a List of Lists in Haskell Problem title: Parse elements from a List of Lists in Haskell Tags: haskell Problem: Parse elements from a List of Lists in Haskell I have a list of a list with 3 strings like tst3 , and I need to parse all the list and use the first and second arguments(strings) in...
Parse elements from a List of Lists in Haskell Parse elements from a List of Lists in Haskell haskell a Parse List Lists Haskell tst3 a22 fx2 fx3 Couldn Char Expected Inferred Parse elements from a List of Lists in Haskell I have a list of a list with 3 strings like tst3 , and I need to parse all the list and use the f...
[ -0.00347900390625, 0.0030364990234375, -0.0032196044921875, 0.0211181640625, -0.0018157958984375, 0.020263671875, 0.004913330078125, -0.00909423828125, 0.0050048828125, 0, 0.000579833984375, -0.0211181640625, 0.01513671875, 0.010986328125, -0.0233154296875, -0.00433349609375, 0.01043...
[ 2392, 184, 80854, 1295, 32036, 111, 7, 20625, 142508, 23, 1556, 10, 808, 271, 363, 4015, 102317, 304, 191147, 21656, 60075, 13, 2875, 2822, 5303, 138, 79315, 3871, 366, 756, 4527, 5117, 136, 17932, 10750, 91693, 32354, 22288, 18, 4488, ...
[ 0.186279296875, 0.1617431640625, 0.2169189453125, 0.1602783203125, 0.2266845703125, 0.08795166015625, 0.045135498046875, 0.1290283203125, 0.246826171875, 0.030303955078125, 0.109130859375, 0.005096435546875, 0.035675048828125, 0.0946044921875, 0.12841796875, 0.0872802734375, 0.002502...
embed
67611601_c0
67611601
haskell
0
Title: Haskell: Non-exhaustive patterns in stack Problem title: Haskell: Non-exhaustive patterns in stack Tags: functional-programming, haskell, runtime-error Problem: Haskell: Non-exhaustive patterns in stack I have the following stack class: newtype Stack my_stack = Stack [my_stack] deriving Show getSize :: Stack my_...
Haskell: Non-exhaustive patterns in stack Haskell: Non-exhaustive patterns in stack functional-programming haskell runtime-error Haskell Non-exhaustive Stack my_stack Show x:xs Haskell: Non-exhaustive patterns in stack I have the following stack class: however when I try to use the getTop function, I get the Non-exhaus...
[ -0.0107421875, 0.0223388671875, 0.00164031982421875, -0.0064697265625, -0.0078125, -0.00982666015625, -0.003631591796875, -0.0218505859375, 0.01422119140625, -0.0203857421875, 0.02880859375, -0.0036468505859375, 0.00970458984375, -0.00543212890625, 0.00885009765625, -0.0030975341796875...
[ 20625, 142508, 3775, 3355, 18391, 4935, 103510, 177261, 12, 23, 123309, 28966, 1556, 6032, 188800, 6512, 2594, 759, 590, 17367, 1022, 425, 7, 25632, 18507, 49903, 9790, 2046, 77888, 32354, 9, 18499, 11249, 159978, 3647, 7225, 41591, 201505, ...
[ 0.1292724609375, 0.2403564453125, 0.207275390625, 0.051513671875, 0.1494140625, 0.09344482421875, 0.228515625, 0.21142578125, 0.00018310546875, 0.044891357421875, 0.1142578125, 0.0528564453125, 0.125244140625, 0.08935546875, 0.158447265625, 0.1046142578125, 0.09271240234375, 0.0904...
embed
324612_c0
324612
haskell
0
Title: Understanding the type error: &quot;expected signature Int*Int-&gt;Int but got Int*Int-&gt;Int&quot; Problem title: Understanding the type error: &quot;expected signature Int*Int-&gt;Int but got Int*Int-&gt;Int&quot; Tags: haskell, ml, type-theory Problem: Understanding the type error: "expected signature Int*In...
Understanding the type error: &quot;expected signature Int*Int-&gt;Int but got Int*Int-&gt;Int&quot; Understanding the type error: &quot;expected signature Int*Int-&gt;Int but got Int*Int-&gt;Int&quot; haskell ml type-theory Understanding Understanding the type error: "expected signature Int*Int->Int but got Int*Int->I...
[ 0.01055908203125, 0.0089111328125, -0.018798828125, 0.00909423828125, -0.016845703125, 0.0137939453125, -0.02490234375, -0.0026092529296875, 0.01708984375, -0.0244140625, 0, -0.03173828125, -0.003387451171875, 0.00909423828125, 0.0234375, 0.0035247802734375, 0.0179443359375, -0.012...
[ 9626, 144057, 10644, 18499, 83613, 13, 89829, 138256, 360, 18, 4153, 5386, 1284, 4163, 1639, 1556, 142508, 7115, 2347, 24626, 41550, 11246, 23359, 10723, 8752, 74181, 75688, 76519, 46876, 6868, 27781, 32354, 80934, 6626, 11782, 27489, 7941, 8...
[ 0.055877685546875, 0.04608154296875, 0.22216796875, 0.1787109375, 0.08099365234375, 0.106689453125, 0.030731201171875, 0.1802978515625, 0.046142578125, 0.1112060546875, 0.0965576171875, 0.0745849609375, 0.10052490234375, 0.0330810546875, 0.0293426513671875, 0.069091796875, 0.19506835...
embed
19622809_c0
19622809
haskell
0
Title: Depending on a local package in cabal Problem title: Depending on a local package in cabal Tags: haskell, cabal Problem: Depending on a local package in cabal I've written a few packages containing some extra functions for dealing with common types that reflect the way I like to use them (for instance, I prefer ...
Depending on a local package in cabal Depending on a local package in cabal haskell cabal Depending Depending on a local package in cabal I've written a few packages containing some extra functions for dealing with common types that reflect the way I like to use them (for instance, I prefer to treat Bson documents as m...
[ -0.006256103515625, 0.011474609375, -0.0020904541015625, 0.00830078125, -0.00836181640625, 0.015869140625, -0.01214599609375, 0.01171875, 0.021728515625, -0.0255126953125, 0.00115203857421875, -0.01361083984375, 0.01165771484375, 0.0390625, 0.03173828125, 0.001434326171875, -0.018676...
[ 262, 96819, 98, 4000, 98169, 23, 109524, 1556, 142508, 59121, 10846, 4173, 32354, 184017, 39210, 52895, 44961, 3917, 1884, 4527, 12601, 85689, 335, 1681, 60525, 237, 22288, 5303, 44457, 13695, 31344, 14364, 3387, 52922, 4588, 65508, 42548, 11...
[ 0.09149169921875, 0.182373046875, 0.123046875, 0.16552734375, 0.2432861328125, 0.047943115234375, 0.268798828125, 0.11279296875, 0.2037353515625, 0.06085205078125, 0.00115966796875, 0.062103271484375, 0.0972900390625, 0.034393310546875, 0.066162109375, 0.115234375, 0.0833740234375, ...
embed
43215607_c1
43215607
haskell
1
.9 if delay * velocity < 100 then newDelay <- 100 else newDelay <- delay * velocity publishTimerEvent msgChan newDelay getRandomChar :: Char c () getRandomChar = do i <- randomRIO (0,9) let c = "0123456789" !! i return c -- User Thread userThread :: MVar Msg -> IO () userThread chan = forever $ do c <- getChar putMVar ...
.9 if delay * velocity < 100 then newDelay <- 100 else newDelay <- delay * velocity publishTimerEvent msgChan newDelay getRandomChar :: Char c () getRandomChar = do i <- randomRIO (0,9) let c = "0123456789" !! i return c -- User Thread userThread :: MVar Msg -> IO () userThread chan = forever $ do c <- getChar putMVar ...
[ -0.022216796875, -0.007415771484375, 0.00885009765625, -0.0018768310546875, 0.007354736328125, 0.00555419921875, 0.00750732421875, 0.000621795654296875, 0.01348876953125, -0.0299072265625, -0.000926971435546875, -0.022216796875, -0.0157470703125, 0.02099609375, 0.003875732421875, 0.010...
[ 5, 1126, 2174, 8, 5259, 191060, 939, 4426, 805, 3525, 4657, 37076, 80299, 70059, 192134, 68163, 127008, 2046, 126525, 3815, 84068, 21656, 501, 17, 96759, 92823, 6746, 3742, 121317, 153781, 6506, 30646, 53400, 136719, 38937, 39116, 66160, 147,...
[ 0.0197906494140625, 0.20068359375, 0.0280914306640625, 0.1826171875, 0.25732421875, 0.190673828125, 0.0406494140625, 0.019683837890625, 0.123779296875, 0.1060791015625, 0.1705322265625, 0.0059814453125, 0.117431640625, 0.10498046875, 0.279052734375, 0.041961669921875, 0.0806274414062...
embed
4895750_c0
4895750
haskell
0
Title: Haskell: Bizzare instance declaration in SDL bindings Problem title: Haskell: Bizzare instance declaration in SDL bindings Tags: sdl, haskell Problem: Haskell: Bizzare instance declaration in SDL bindings The Haskell SDL bindings export an enumerated type called SDLKey. The Enum instance is declared in a strange...
Haskell: Bizzare instance declaration in SDL bindings Haskell: Bizzare instance declaration in SDL bindings sdl haskell Haskell Bizzare SDL Enum SDLKey Word32 SDLK_UNKNOWN SDLK_FIRST SDLK_BACKSPACE Haskell: Bizzare instance declaration in SDL bindings The Haskell SDL bindings export an enumerated type called SDLKey. Th...
[ -0.0035247802734375, -0.0213623046875, 0.01031494140625, -0.0262451171875, -0.0159912109375, 0.018798828125, -0.01129150390625, -0.007476806640625, -0.01165771484375, 0.0157470703125, -0.00168609619140625, -0.0299072265625, 0.007354736328125, 0.00616455078125, -0.01556396484375, 0.0067...
[ 20625, 142508, 335, 58424, 110527, 21635, 159, 27502, 128239, 20469, 1556, 357, 316, 162429, 22543, 6460, 21864, 43238, 110753, 8031, 9434, 31255, 189085, 10644, 159978, 114453, 959, 2499, 171859, 3642, 903, 6002, 86531, 18499, 117729, 83, 3235...
[ 0.1075439453125, 0.2197265625, 0.08489990234375, 0.21044921875, 0.2281494140625, 0.1536865234375, 0.087646484375, 0.194091796875, 0.1920166015625, 0.11474609375, 0.0263519287109375, 0.1171875, 0.2244873046875, 0.2467041015625, 0.046112060546875, 0.1353759765625, 0.04425048828125, 0...
embed
66050529_c0
66050529
haskell
0
Title: Haskell combine the elements of 2 lists at different index&#x27;s Problem title: Haskell combine the elements of 2 lists at different index&#x27;s Tags: functional-programming, haskell, list, combinations Problem: Haskell combine the elements of 2 lists at different index's Apologies for the awful title, I'm not...
Haskell combine the elements of 2 lists at different index&#x27;s Haskell combine the elements of 2 lists at different index&#x27;s functional-programming haskell list combinations Haskell Haskell combine the elements of 2 lists at different index's Apologies for the awful title, I'm not too sure how to describe it in ...
[ 0.00007534027099609375, 0.0308837890625, -0.01544189453125, 0.0107421875, -0.02001953125, 0.02685546875, -0.0262451171875, -0.00982666015625, 0.0118408203125, -0.018798828125, 0.010009765625, -0.005157470703125, 0.01055908203125, 0.008056640625, -0.0234375, 0.0140380859375, -0.000075...
[ 20625, 142508, 70163, 80854, 116, 5303, 99, 12921, 63262, 3768, 123309, 28966, 1556, 162515, 111, 5787, 18709, 434, 7844, 44759, 98363, 34153, 29459, 113860, 121691, 8364, 1902, 105950, 140909, 3444, 28282, 179769, 100, 11907, 12830, 5117, 5442...
[ 0.14599609375, 0.2406005859375, 0.2291259765625, 0.1893310546875, 0.1719970703125, 0.2244873046875, 0.091552734375, 0.177490234375, 0.2041015625, 0.05731201171875, 0.1292724609375, 0.09307861328125, 0.130615234375, 0.201416015625, 0.0143280029296875, 0.005615234375, 0.03497314453125,...
embed
67540442_c0
67540442
haskell
0
Title: Create data with Curly Braces in Haskell Problem title: Create data with Curly Braces in Haskell Tags: curly-braces, haskell, pretty-print, compiler-construction, abstract-syntax-tree Problem: Create data with Curly Braces in Haskell I am trying to create an AST and pretty print it. I am parsing parts of the C l...
Create data with Curly Braces in Haskell Create data with Curly Braces in Haskell curly-braces haskell pretty-print compiler-construction abstract-syntax-tree Create Curly Braces Haskell SScope Stmt Create data with Curly Braces in Haskell I am trying to create an AST and pretty print it. I am parsing parts of the C la...
[ 0.0159912109375, -0.00506591796875, 0.004058837890625, -0.00390625, 0.00665283203125, 0.0018768310546875, 0.00384521484375, -0.000041484832763671875, 0.00909423828125, 0.00469970703125, 0.0096435546875, -0.0224609375, -0.00341796875, 0.0042724609375, 0.021728515625, 0.01165771484375, ...
[ 151313, 2053, 678, 17065, 538, 6163, 5170, 20625, 142508, 23, 9709, 2844, 1556, 28875, 35662, 9969, 34759, 238478, 164789, 86531, 62600, 29581, 587, 1081, 31577, 28282, 48963, 28412, 366, 313, 46876, 33636, 201505, 63805, 64557, 179933, 19048, ...
[ 0.111083984375, 0.15673828125, 0.09716796875, 0.1971435546875, 0.1890869140625, 0.223876953125, 0.1312255859375, 0.155517578125, 0.24169921875, 0.045196533203125, 0.1708984375, 0.1895751953125, 0.1180419921875, 0.260498046875, 0.237060546875, 0.059539794921875, 0.080810546875, 0.05...
embed
3766299_c0
3766299
haskell
0
Title: Graceful exit for multithreaded haskell Problem title: Graceful exit for multithreaded haskell Tags: multithreading, haskell, concurrency Problem: Graceful exit for multithreaded haskell This is entirely theoretical at this point, but I've been trying to wrap my head around this problem. Let's take a client for ...
Graceful exit for multithreaded haskell Graceful exit for multithreaded haskell multithreading haskell concurrency Graceful Graceful exit for multithreaded haskell This is entirely theoretical at this point, but I've been trying to wrap my head around this problem. Let's take a client for an example. There are forkIOd ...
[ -0.0012054443359375, 0.0074462890625, -0.00156402587890625, 0.01263427734375, -0.0157470703125, 0.0125732421875, -0.023681640625, -0.0027618408203125, -0.000865936279296875, -0.019287109375, -0.00836181640625, 0.0026397705078125, -0.0162353515625, 0.012939453125, -0.007171630859375, 0....
[ 102809, 7844, 82230, 100, 3869, 65847, 712, 1556, 142508, 11, 108636, 982, 2967, 23282, 27781, 92, 17780, 71, 86997, 11907, 94878, 1632, 86171, 47, 569, 64194, 1528, 248, 13, 23399, 2806, 4677, 175648, 3789, 35431, 16454, 1295, 46389, 214, ...
[ 0.182373046875, 0.1517333984375, 0.25927734375, 0.09814453125, 0.162109375, 0.155517578125, 0.0745849609375, 0.1533203125, 0.254638671875, 0.049774169921875, 0.1361083984375, 0.0704345703125, 0.066650390625, 0.15380859375, 0.05120849609375, 0.060516357421875, 0.1185302734375, 0.099...
embed
39564607_c1
39564607
haskell
1
ts-7.0/8.0.1/pkgdb /tmp/shuffle-0.1.3.3/Setup.hs -o /tmp/shuffle-0.1.3.3/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/setup Process exited with code: ExitFailure 1 I'm using the following stack.yaml file: resolver: lts-7.0 # Local packages, usually specified by relative directory name packages: - '.' extra-deps: ...
ts-7.0/8.0.1/pkgdb /tmp/shuffle-0.1.3.3/Setup.hs -o /tmp/shuffle-0.1.3.3/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/setup Process exited with code: ExitFailure 1 I'm using the following stack.yaml file: resolver: lts-7.0 # Local packages, usually specified by relative directory name packages: - '.' extra-deps: ...
[ -0.00897216796875, 0.00555419921875, 0.0185546875, -0.009765625, -0.01470947265625, -0.01019287109375, -0.031494140625, -0.026123046875, -0.00762939453125, 0.020751953125, -0.0162353515625, 0.00604248046875, 0.00982666015625, 0.01226806640625, 0.0096435546875, 0.01116943359375, 0.013...
[ 61636, 129884, 23538, 102014, 8517, 48073, 2676, 1495, 21493, 133, 134693, 294, 126, 2037, 127, 31, 590, 2594, 18244, 46295, 15276, 13307, 2397, 6077, 20370, 3571, 5759, 20682, 99929, 3509, 123996, 82230, 18151, 5443, 217, 17647, 379, 3408, ...
[ 0.2037353515625, 0.197509765625, 0.10791015625, 0.1402587890625, 0.1016845703125, 0.1556396484375, 0.11865234375, 0.092529296875, 0.2205810546875, 0.1756591796875, 0.1746826171875, 0.0154266357421875, 0.0645751953125, 0.09033203125, 0.0986328125, 0.001800537109375, 0.03875732421875, ...
embed
26781852_c0
26781852
haskell
0
Title: Haskell syntax error in where Problem title: Haskell syntax error in where Tags: haskell, syntax Problem: Haskell syntax error in where I'm trying to make a function that takes a ByteString of 4 bytes and returns an Int from those 4 bytes I get the syntax error main.hs:6:25: parse error on input '=' but I can't ...
Haskell syntax error in where Haskell syntax error in where haskell syntax Haskell main.hs:6:25 bs2int B.ByteString Maybe B.length Just Nothing B.unpack Haskell syntax error in where I'm trying to make a function that takes a ByteString of 4 bytes and returns an Int from those 4 bytes I get the syntax error main.hs:6:2...
[ -0.01165771484375, 0.01416015625, -0.0196533203125, 0.0003566741943359375, -0.009521484375, 0.0242919921875, -0.0225830078125, -0.0086669921875, 0.001983642578125, -0.00099945068359375, -0.005706787109375, -0.0098876953125, 0.0191650390625, -0.0128173828125, 0.01544189453125, -0.004150...
[ 20625, 142508, 6002, 86531, 18499, 23, 7440, 1556, 5201, 127, 7, 910, 21224, 876, 304, 4288, 335, 75358, 67, 71713, 83425, 23986, 9563, 182747, 309, 29102, 31577, 3249, 32354, 51776, 3311, 214, 201, 390, 1636, 30646, 142, 360, 18, 1295, ...
[ 0.1474609375, 0.2352294921875, 0.167236328125, 0.198486328125, 0.2044677734375, 0.0587158203125, 0.199951171875, 0.15478515625, 0.1119384765625, 0.102294921875, 0.0638427734375, 0.08880615234375, 0.266845703125, 0.0312347412109375, 0.1483154296875, 0.18115234375, 0.0882568359375, 0...
embed
27160427_c0
27160427
haskell
0
Title: Kind mismatch in YesodPersist instance declaration Problem title: Kind mismatch in YesodPersist instance declaration Tags: yesod, persist, haskell Problem: Kind mismatch in YesodPersist instance declaration Here is my project (original source is on FP Haskell Center, but I don't know how to make it publically av...
Kind mismatch in YesodPersist instance declaration Kind mismatch in YesodPersist instance declaration yesod persist haskell Kind YesodPersist App YesodPersistBackend SqlBackend Foundation.hs Expected Kind mismatch in YesodPersist instance declaration Here is my project (original source is on FP Haskell Center, but I do...
[ 0.005767822265625, 0.04150390625, -0.0026397705078125, -0.007659912109375, -0.0179443359375, 0.01806640625, -0.00762939453125, -0.0152587890625, 0.00439453125, 0.01043701171875, 0.000843048095703125, -0.027099609375, -0.0076904296875, -0.011962890625, -0.0159912109375, -0.0157470703125...
[ 27435, 1239, 98753, 32635, 2199, 15277, 57702, 110527, 21635, 2422, 23722, 70560, 1556, 142508, 5659, 152470, 3611, 99247, 32807, 127, 60075, 13, 13452, 124524, 31344, 51006, 20625, 11588, 3835, 19882, 15769, 32102, 68080, 16474, 37631, 31580, ...
[ 0.2198486328125, 0.144775390625, 0.264892578125, 0.1585693359375, 0.2208251953125, 0.135986328125, 0.198486328125, 0.207275390625, 0.168701171875, 0.128173828125, 0.1982421875, 0.21484375, 0.093017578125, 0.187744140625, 0.1455078125, 0.09381103515625, 0.1326904296875, 0.0949707031...
embed
45245481_c0
45245481
haskell
0
Title: How can I use generics to extract all values of a particular type? Problem title: How can I use generics to extract all values of a particular type? Tags: generic-programming, haskell Problem: How can I use generics to extract all values of a particular type? I have a data type like this: data MyType = Foo Bool ...
How can I use generics to extract all values of a particular type? How can I use generics to extract all values of a particular type? generic-programming haskell How MyType Foo Bool Bar Baz Maybe Quux Generic HasDatatypeInfo All2 Proxy DatatypeInfo How can I use generics to extract all values of a particular type? I ha...
[ 0.006011962890625, 0.00836181640625, -0.006744384765625, 0.00141143798828125, -0.00933837890625, 0.007568359375, 0.000209808349609375, -0.001983642578125, 0.015869140625, -0.033935546875, -0.01458740234375, -0.0252685546875, -0.0162353515625, -0.0022430419921875, -0.009765625, 0.008789...
[ 11249, 831, 4527, 189534, 7, 47, 125663, 756, 142424, 17311, 10644, 111, 28966, 1556, 142508, 2646, 196707, 9572, 31, 2460, 929, 3253, 36490, 6077, 88342, 20625, 50986, 93147, 3164, 304, 1250, 50878, 11809, 87, 2053, 1884, 4171, 33022, 3235...
[ 0.033416748046875, 0.0533447265625, 0.1116943359375, 0.282470703125, 0.1697998046875, 0.0238037109375, 0.2142333984375, 0.1309814453125, 0.178955078125, 0.1473388671875, 0.2216796875, 0.02490234375, 0.075439453125, 0.04388427734375, 0.177001953125, 0.089111328125, 0.267822265625, 0...
embed
8003281_c0
8003281
haskell
0
Title: Haskell trie functions - Inserting values and searching Problem title: Haskell trie functions - Inserting values and searching Tags: prefix, search, trie, haskell Problem: Haskell trie functions - Inserting values and searching The type of the trie is data Trie a = TrieNode (Maybe a) [(Char, Trie a)] deriving Sh...
Haskell trie functions - Inserting values and searching Haskell trie functions - Inserting values and searching prefix search trie haskell Haskell Inserting Trie TrieNode Maybe Char Show Nothing Just Haskell trie functions - Inserting values and searching The type of the trie is I want to write a function that takes in...
[ -0.006317138671875, 0.002532958984375, -0.004638671875, -0.004058837890625, -0.016357421875, -0.0068359375, -0.006805419921875, -0.0224609375, 0.000385284423828125, -0.0021209716796875, 0.01611328125, 0.006256103515625, 0.005035400390625, 0.0218505859375, 0.0032806396484375, 0.03637695...
[ 20625, 142508, 1927, 13, 32354, 360, 2189, 142424, 157318, 183114, 33938, 1556, 4699, 5021, 83425, 21656, 17367, 182747, 10644, 3444, 33022, 51776, 23, 22799, 27494, 80836, 136, 30646, 26582, 23180, 99201, 21771, 32316, 3525, 34292, 91995, 1904...
[ 0.134033203125, 0.228271484375, 0.2139892578125, 0.16259765625, 0.1636962890625, 0.025054931640625, 0.1353759765625, 0.1434326171875, 0.1453857421875, 0.1966552734375, 0.1436767578125, 0.1126708984375, 0.2183837890625, 0.0989990234375, 0.059417724609375, 0.10565185546875, 0.141479492...
embed
5517620_c0
5517620
haskell
0
Title: Haskell Binary Parsing Problem title: Haskell Binary Parsing Tags: protocols, haskell, custom-protocol, binary Problem: Haskell Binary Parsing I've been trying to implement a protocol parser in haskell and I'm pretty new to the language, especially when it comes to monads. I've been using binary-0.5.0.2 and have...
Haskell Binary Parsing Haskell Binary Parsing protocols haskell custom-protocol binary Haskell Binary Parsing Haskell Binary Parsing I've been trying to implement a protocol parser in haskell and I'm pretty new to the language, especially when it comes to monads. I've been using binary-0.5.0.2 and have described the he...
[ 0.0024871826171875, 0.01171875, -0.0019378662109375, 0.046875, 0.00015544891357421875, 0.01409912109375, -0.0267333984375, -0.020263671875, -0.00179290771484375, -0.02734375, 0.00146484375, -0.041259765625, -0.009521484375, 0.00628662109375, 0.00182342529296875, 0.01953125, -0.009094...
[ 20625, 142508, 54092, 1294, 2392, 6953, 91363, 1556, 114122, 18606, 31, 8447, 2394, 6635, 31577, 29479, 366, 2189, 3525, 46876, 2667, 712, 17368, 93645, 133684, 151552, 10336, 56, 8783, 63033, 89914, 1884, 184, 6713, 25632, 997, 21284, 62, ...
[ 0.1317138671875, 0.22802734375, 0.17822265625, 0.095947265625, 0.1534423828125, 0.06170654296875, 0.1795654296875, 0.1375732421875, 0.15087890625, 0.064697265625, 0.1197509765625, 0.0904541015625, 0.15087890625, 0.13720703125, 0.0177001953125, 0.03887939453125, 0.151123046875, 0.11...
embed
57020471_c0
57020471
haskell
0
Title: Constructing foldl using foldr Problem title: Constructing foldl using foldr Tags: haskell Problem: Constructing foldl using foldr I am trying to create foldl using foldr (a good exercise to learn haskell, and the other SO answers seem to complex). My solutions is this: myFoldl :: (b -> a -> b) -> [a] -> (b -> b...
Constructing foldl using foldr Constructing foldl using foldr haskell foldr Constructing Couldn Expected Actual Constructing foldl using foldr I am trying to create foldl using foldr (a good exercise to learn haskell, and the other SO answers seem to complex). My solutions is this: but it does not work. I get an error ...
[ -0.016845703125, -0.011962890625, 0.000732421875, 0.00186920166015625, -0.00872802734375, 0.008056640625, -0.0194091796875, -0.00567626953125, -0.025146484375, -0.012451171875, 0.0172119140625, -0.017822265625, 0.0086669921875, 0.006805419921875, -0.01007080078125, -0.01416015625, -0...
[ 1657, 36716, 18344, 20469, 17368, 7569, 214, 1556, 142508, 191147, 19, 60075, 13, 100582, 31577, 28282, 4127, 81979, 30698, 35166, 27140, 51347, 903, 1284, 442, 14602, 959, 4488, 18499, 54433, 33342, 163, 759, 919, 18345, 141, 51776, 32354, ...
[ 0.045501708984375, 0.156982421875, 0.1729736328125, 0.231689453125, 0.09912109375, 0.230224609375, 0.0219573974609375, 0.1163330078125, 0.194580078125, 0.0977783203125, 0.05035400390625, 0.0926513671875, 0.10400390625, 0.130126953125, 0.0716552734375, 0.144775390625, 0.19189453125, ...
embed
62691016_c1
62691016
haskell
1
-> RIO env () at src/Persistence/DbInspect.hs:13:1-51 • In the first argument of ‘($$)’, namely ‘PSQL.rawQuery query []’ In the expression: PSQL.rawQuery query [] $$ CL.mapM_ (logInfo . displayShow) In the expression: let query = "select * from " <> tableName in PSQL.rawQuery query [] $$ CL.mapM_ (logInfo . displaySho...
-> RIO env () at src/Persistence/DbInspect.hs:13:1-51 • In the first argument of ‘($$)’, namely ‘PSQL.rawQuery query []’ In the expression: PSQL.rawQuery query [] $$ CL.mapM_ (logInfo . displayShow) In the expression: let query = "select * from " <> tableName in PSQL.rawQuery query [] $$ CL.mapM_ (logInfo . displaySho...
[ -0.004425048828125, 0.02490234375, -0.0186767578125, 0.0198974609375, -0.0020294189453125, 0.0291748046875, -0.00970458984375, -0.018798828125, 0.00494384765625, -0.0208740234375, 0.009521484375, -0.0123291015625, 0.0026092529296875, -0.009033203125, -0.019287109375, 0.0150146484375, ...
[ 33079, 92823, 22, 334, 19437, 15277, 57702, 6620, 275, 4153, 16711, 18, 127, 7, 22618, 19721, 11703, 768, 5117, 10750, 4369, 683, 158897, 81456, 41732, 1294, 41, 125195, 436, 46323, 62346, 594, 454, 4867, 93147, 44116, 168660, 2633, 100184,...
[ 0.041259765625, 0.3056640625, 0.06585693359375, 0.1815185546875, 0.11181640625, 0.05108642578125, 0.17919921875, 0.06414794921875, 0.071044921875, 0.031097412109375, 0.2340087890625, 0.0289154052734375, 0.0643310546875, 0.013580322265625, 0.0924072265625, 0.039703369140625, 0.1633300...
embed
36317847_c0
36317847
haskell
0
Title: Remove pair duplicates Haskell Problem title: Remove pair duplicates Haskell Tags: haskell Problem: Remove pair duplicates Haskell Giving a list of pairs, for example [(1, 2), (1, 3), (1, 4), (2, 1), (3, 1), (4, 1)] So, I am trying to remove the pair duplicates, I consider a pair to be duplicate if (x, y) == (y,...
Remove pair duplicates Haskell Remove pair duplicates Haskell haskell Remove Haskell MyList Remove pair duplicates Haskell Giving a list of pairs, for example So, I am trying to remove the pair duplicates, I consider a pair to be duplicate if (x, y) == (y, x), for example: (1, 2) with (3, 1) I am generating the list wi...
[ -0.0294189453125, 0.0166015625, 0.00055694580078125, -0.00177764892578125, -0.0201416015625, 0.013916015625, -0.00799560546875, 0.01416015625, 0.00177001953125, -0.023681640625, -0.01483154296875, 0.0079345703125, 0.02197265625, 0.0025787353515625, -0.01483154296875, 0.0137939453125, ...
[ 181139, 80836, 171763, 1636, 20625, 142508, 1556, 2646, 154663, 5174, 5303, 27781, 31577, 47, 87388, 70, 16916, 186, 67, 2174, 425, 113, 69112, 53, 1022, 2858, 4958, 678, 6896, 4879, 12663, 46683, 3220, 16406, 1632, 11001, 3444, 53383, 1409...
[ 0.2025146484375, 0.286376953125, 0.293212890625, 0.1805419921875, 0.1885986328125, 0.248046875, 0.16748046875, 0.10198974609375, 0.2169189453125, 0.0328369140625, 0.1634521484375, 0.14111328125, 0.06134033203125, 0.033966064453125, 0.1925048828125, 0.03857421875, 0.1131591796875, 0...
embed
53165315_c0
53165315
haskell
0
Title: haskell checking String length - Non-exhaustive patterns exception Problem title: haskell checking String length - Non-exhaustive patterns exception Tags: haskell Problem: haskell checking String length - Non-exhaustive patterns exception Why does length function work well when checking for Strings that are >1 a...
haskell checking String length - Non-exhaustive patterns exception haskell checking String length - Non-exhaustive patterns exception haskell Non-exhaustive x:x2:xs Exception untitled.hs x:xs haskell checking String length - Non-exhaustive patterns exception Why does length function work well when checking for Strings ...
[ -0.021240234375, 0.0172119140625, -0.0087890625, 0.015869140625, 0.01251220703125, 0.0033111572265625, 0.0186767578125, 0.003814697265625, 0.03173828125, 0.0054931640625, 0.0194091796875, -0.0130615234375, 0.03125, 0.003448486328125, 0.009765625, 0.0008392333984375, 0.0242919921875, ...
[ 1556, 142508, 175199, 23351, 140909, 3775, 3355, 18391, 4935, 103510, 131527, 1022, 425, 304, 5443, 63928, 5440, 71, 127, 7, 44084, 14602, 32354, 4488, 5299, 100, 5180, 977, 418, 76199, 18499, 64333, 1119, 257, 538, 106, 18151, 89536, 8705,...
[ 0.1224365234375, 0.19189453125, 0.17822265625, 0.18212890625, 0.2408447265625, 0.14111328125, 0.045379638671875, 0.15576171875, 0.077392578125, 0.1611328125, 0.127685546875, 0.05523681640625, 0.0633544921875, 0.08587646484375, 0.024688720703125, 0.149658203125, 0.119140625, 0.01960...
embed
53271314_c0
53271314
haskell
0
Title: Haskell laziness and seq Problem title: Haskell laziness and seq Tags: haskell, lazy-evaluation Problem: Haskell laziness and seq I am trying to understand laziness and seq in Haskell: in (1), is it correct that no evaluation of v occurs until the print in the base case requires v ? in (2), is it correct that v'...
Haskell laziness and seq Haskell laziness and seq haskell lazy-evaluation Haskell x:xs Haskell laziness and seq I am trying to understand laziness and seq in Haskell: in (1), is it correct that no evaluation of v occurs until the print in the base case requires v ? in (2), is it correct that v' is evaluated before each...
[ -0.021484375, 0.01171875, 0.00946044921875, -0.005889892578125, 0.017822265625, 0.00262451171875, -0.00885009765625, 0.0118408203125, 0.01611328125, -0.00022411346435546875, 0.009521484375, 0.00830078125, 0.007080078125, 0.020751953125, -0.006500244140625, 0.00927734375, 0.0022277832...
[ 20625, 142508, 21, 708, 7432, 136, 40, 864, 1556, 3285, 159258, 425, 28219, 26785, 110, 219836, 81, 74918, 24189, 28412, 23, 3647, 7225, 144570, 25, 151575, 8108, 12638, 195625, 11782, 111, 44841, 29479, 81113, 9468, 214, 72977, 39563, 2684...
[ 0.1424560546875, 0.25341796875, 0.160400390625, 0.1865234375, 0.1363525390625, 0.072509765625, 0.135986328125, 0.207763671875, 0.12353515625, 0.19921875, 0.1656494140625, 0.0278472900390625, 0.05517578125, 0.126953125, 0.09906005859375, 0.211181640625, 0.1611328125, 0.0971069335937...
embed
7370029_c0
7370029
haskell
0
Title: Any example of a custom PreProcessor in Haskell? Problem title: Any example of a custom PreProcessor in Haskell? Tags: haskell Problem: Any example of a custom PreProcessor in Haskell? I've walked through the cabal Distribution.Simple* packages to know that the PreProcessor data type can be used to defined custo...
Any example of a custom PreProcessor in Haskell? Any example of a custom PreProcessor in Haskell? haskell Any PreProcessor Haskell Distribution.Simple Setup.hs Any example of a custom PreProcessor in Haskell? I've walked through the cabal Distribution.Simple* packages to know that the PreProcessor data type can be used...
[ 0.0029144287109375, -0.00012302398681640625, 0.01019287109375, 0.02197265625, -0.019775390625, 0.0005035400390625, -0.00433349609375, -0.002960205078125, 0.00982666015625, -0.0263671875, -0.0130615234375, 0.00115203857421875, 0.0035552978515625, -0.01177978515625, 0.0030670166015625, 0...
[ 27781, 114122, 1914, 10752, 26531, 748, 23, 20625, 142508, 28541, 1556, 75571, 8859, 33209, 19943, 2037, 127, 172458, 109524, 1639, 98169, 2053, 10644, 11814, 61924, 479, 63923, 25251, 80234, 3714, 3642, 23253, 10002, 9, 7, 11435, 60213, 6562...
[ 0.162109375, 0.194091796875, 0.16943359375, 0.1353759765625, 0.162109375, 0.1466064453125, 0.062255859375, 0.130126953125, 0.23388671875, 0.035614013671875, 0.103759765625, 0.110107421875, 0.0557861328125, 0.1435546875, 0.0791015625, 0.059844970703125, 0.087890625, 0.02232360839843...
embed
795397_c1
795397
haskell
1
a list and BillingInfo as arguments, and then return a list? -- EDIT 2 -- well, based on all the answers I'm getting and the lack of being able to pass an object by reference and mutate variables (such as I'm used to)... I think that I have just asked this question prematurely and that I really need to delve further i...
a list and BillingInfo as arguments, and then return a list? -- EDIT 2 -- well, based on all the answers I'm getting and the lack of being able to pass an object by reference and mutate variables (such as I'm used to)... I think that I have just asked this question prematurely and that I really need to delve further i...
[ 0.0096435546875, 0.0050048828125, 0.010009765625, -0.0101318359375, 0.01287841796875, 0.00830078125, -0.037109375, -0.000255584716796875, 0.031494140625, -0.00274658203125, 0.011962890625, -0.01324462890625, 0.00927734375, 0.000568389892578125, 0.00531005859375, -0.0028839111328125, ...
[ 5303, 136, 19893, 214, 93147, 237, 10750, 7, 30646, 172864, 35166, 92635, 27875, 36746, 91067, 31158, 77336, 11814, 123309, 214709, 28219, 16487, 100, 3642, 33022, 32354, 9844, 35971, 35735, 1379, 5701, 9351, 5809, 35839, 1286, 3501, 24145, 1...
[ 0.227294921875, 0.08392333984375, 0.177978515625, 0.121826171875, 0.269775390625, 0.038848876953125, 0.233642578125, 0.03753662109375, 0.185546875, 0.029144287109375, 0.009765625, 0.054962158203125, 0.100830078125, 0.1607666015625, 0.1513671875, 0.112548828125, 0.12646484375, 0.015...
embed
56065204_c0
56065204
haskell
0
Title: implementing mapTree function Problem title: implementing mapTree function Tags: haskell, binary-tree, dictionary Problem: implementing mapTree function i am asket to Define the function: treeMap :: (a -> b) -> BinaryTree a -> BinaryTree b Which takes a function and a binary tree, and produces a binary tree in w...
implementing mapTree function implementing mapTree function haskell binary-tree dictionary BinaryTree Nil BNode Not implementing mapTree function i am asket to Define the function: Which takes a function and a binary tree, and produces a binary tree in which all nodes are the result of applying the function on the give...
[ 0.01397705078125, 0.00775146484375, 0.00099945068359375, -0.0064697265625, 0.0067138671875, 0.0019683837890625, -0.01220703125, 0.00077056884765625, -0.01025390625, -0.0299072265625, -0.00933837890625, -0.0198974609375, 0.00909423828125, 0.015869140625, 0.0224609375, 0.01019287109375, ...
[ 29479, 214, 22288, 62731, 13, 32354, 1556, 142508, 2394, 6635, 62600, 45, 10763, 54092, 77175, 30262, 31, 112, 11205, 3473, 64552, 70, 51776, 136, 53201, 27489, 756, 110, 988, 16750, 59911, 98, 34475, 83, 18151, 22027, 18, 9969, 6387, 184...
[ 0.2279052734375, 0.0411376953125, 0.1895751953125, 0.2841796875, 0.1011962890625, 0.184814453125, 0.1085205078125, 0.202880859375, 0.156005859375, 0.1063232421875, 0.1927490234375, 0.016082763671875, 0.0721435546875, 0.1431884765625, 0.176513671875, 0.001800537109375, 0.105712890625,...
embed
26016766_c0
26016766
haskell
0
Title: haskell minimax / nested conditions and wheres Problem title: haskell minimax / nested conditions and wheres Tags: minimax, nested, haskell Problem: haskell minimax / nested conditions and wheres For an assignment I need to write a Minimax function on a Gametree provided to the function (as a tree of boards; Ros...
haskell minimax / nested conditions and wheres haskell minimax / nested conditions and wheres minimax nested haskell Player Rose Board Ints haskell minimax / nested conditions and wheres For an assignment I need to write a Minimax function on a Gametree provided to the function (as a tree of boards; Rose Board) and a p...
[ 0.00408935546875, 0.0027923583984375, 0.0030517578125, 0.0146484375, 0.01141357421875, 0.0255126953125, -0.010498046875, -0.0137939453125, 0.01708984375, -0.00157928466796875, -0.00140380859375, -0.01446533203125, 0.023681640625, -0.00848388671875, -0.0115966796875, -0.00872802734375, ...
[ 1556, 142508, 83818, 425, 248, 8512, 71, 27289, 136, 7440, 60560, 24009, 62554, 360, 933, 95486, 674, 3871, 33022, 13468, 24084, 32354, 98, 13547, 62600, 62952, 53201, 111, 45443, 58585, 15504, 83, 903, 18499, 366, 184, 107730, 58745, 63805...
[ 0.1373291015625, 0.2086181640625, 0.208740234375, 0.1417236328125, 0.00469970703125, 0.20849609375, 0.080078125, 0.21337890625, 0.050811767578125, 0.1605224609375, 0.1107177734375, 0.1502685546875, 0.182861328125, 0.037506103515625, 0.0216522216796875, 0.1019287109375, 0.024871826171...
embed
40201126_c1
40201126
haskell
1
NaturalP $ read $ args!!0; let (offset ::Integer ) = 0; -- 'dc' is a structure capturing the Dice Configuration. let dc = NumSidesPlus numDice numFaces offset outcomeInteger <- roll dc putStrLn("Dice configuration: " ++ (show dc)) putStrLn("Outcome: " ++ (show outcomeInteger)) This doesn't work of course because case p...
NaturalP $ read $ args!!0; let (offset ::Integer ) = 0; -- 'dc' is a structure capturing the Dice Configuration. let dc = NumSidesPlus numDice numFaces offset outcomeInteger <- roll dc putStrLn("Dice configuration: " ++ (show dc)) putStrLn("Outcome: " ++ (show outcomeInteger)) This doesn't work of course because case p...
[ -0.01116943359375, -0.005462646484375, -0.01129150390625, -0.00909423828125, 0.01055908203125, 0.0322265625, 0.01190185546875, -0.01953125, 0.0198974609375, -0.009521484375, 0.006195068359375, 0.00164031982421875, -0.0174560546875, -0.002410888671875, 0.006378173828125, -0.003143310546...
[ 24955, 683, 3650, 12301, 79459, 1146, 2389, 2633, 16713, 3509, 1984, 67, 1505, 757, 71, 238, 83, 45646, 3540, 109561, 803, 329, 1657, 59994, 104, 52782, 294, 17996, 88225, 13269, 397, 2980, 135518, 5773, 184345, 21972, 3884, 71713, 19, 18...
[ 0.212158203125, 0.181396484375, 0.0908203125, 0.172119140625, 0.1463623046875, 0.0869140625, 0.0928955078125, 0.2020263671875, 0.160888671875, 0.135498046875, 0.03125, 0.114501953125, 0.09027099609375, 0.1114501953125, 0.090087890625, 0.1722412109375, 0.0177001953125, 0.18054199218...
embed
40730196_c0
40730196
haskell
0
Title: Kind Demotion (as opposed to Kind Promotion) Problem title: Kind Demotion (as opposed to Kind Promotion) Tags: higher-kinded-types, data-kinds, haskell Problem: Kind Demotion (as opposed to Kind Promotion) The DataKinds extension promotes "values" (i.e. constructors) into types. For example True and False become...
Kind Demotion (as opposed to Kind Promotion) Kind Demotion (as opposed to Kind Promotion) higher-kinded-types data-kinds haskell Kind Demotion Promotion Bool Proxy DemoteBool Kind Demotion (as opposed to Kind Promotion) The DataKinds extension promotes "values" (i.e. constructors) into types. For example True and False...
[ 0.0057373046875, 0.0150146484375, 0.003936767578125, -0.00567626953125, -0.00167083740234375, 0.002777099609375, -0.0079345703125, -0.00738525390625, 0.008056640625, 0.01953125, -0.00885009765625, -0.007110595703125, 0.012451171875, -0.000362396240234375, -0.0003108978271484375, -0.011...
[ 27435, 262, 105401, 144429, 170369, 233, 77546, 68347, 297, 50986, 2053, 1556, 142508, 2460, 929, 1250, 50878, 42506, 67, 12647, 11809, 605, 7250, 7, 111938, 125568, 27494, 64549, 25251, 3934, 52895, 87599, 136, 22225, 24209, 117781, 8562, 18...
[ 0.2132568359375, 0.17138671875, 0.21533203125, 0.012939453125, 0.225830078125, 0.02349853515625, 0.09503173828125, 0.1611328125, 0.01116943359375, 0.14697265625, 0.089111328125, 0.0745849609375, 0.1954345703125, 0.0789794921875, 0.173828125, 0.0994873046875, 0.1553955078125, 0.1669...
embed
22080072_c0
22080072
haskell
0
Title: Haskell list comprehension, adding a string between two strings Problem title: Haskell list comprehension, adding a string between two strings Tags: haskell, list, list-comprehension, string Problem: Haskell list comprehension, adding a string between two strings I am having trouble with a couple list problems. ...
Haskell list comprehension, adding a string between two strings Haskell list comprehension, adding a string between two strings haskell list list-comprehension string Haskell x:xs y:ys Haskell list comprehension, adding a string between two strings I am having trouble with a couple list problems. The first is supposed ...
[ -0.0076904296875, -0.00616455078125, 0.004791259765625, 0.025390625, -0.01104736328125, 0.025634765625, -0.01422119140625, -0.01239013671875, 0.01708984375, 0.0205078125, 0.0177001953125, -0.0184326171875, 0.015869140625, -0.005096435546875, -0.0096435546875, 0.010986328125, 0.006072...
[ 20625, 142508, 5303, 46683, 3220, 6889, 154107, 79315, 17721, 6626, 1556, 277, 4692, 1022, 12, 425, 7, 113, 4778, 63134, 24941, 44402, 134598, 183540, 4989, 5701, 140909, 85, 991, 297, 238, 432, 133, 2806, 30646, 87594, 2060, 10644, 18499, ...
[ 0.123291015625, 0.2039794921875, 0.2176513671875, 0.154296875, 0.1495361328125, 0.028656005859375, 0.1690673828125, 0.2230224609375, 0.194580078125, 0.119384765625, 0.115478515625, 0.04302978515625, 0.117919921875, 0.0243988037109375, 0.032135009765625, 0.0660400390625, 0.01734924316...
embed
66403963_c0
66403963
haskell
0
Title: Haskell Data Structure not loading Problem title: Haskell Data Structure not loading Tags: types, haskell, data-structures Problem: Haskell Data Structure not loading I am trying to set up a data structure that is an extension of lambda calculus to allow addition and subtraction. I am trying to create a structur...
Haskell Data Structure not loading Haskell Data Structure not loading types haskell data-structures Haskell Data Structure Language GADTs Lit Add Sub Show Maybe Just Haskell Data Structure not loading I am trying to set up a data structure that is an extension of lambda calculus to allow addition and subtraction. I am ...
[ 0.005706787109375, 0.0203857421875, 0.004913330078125, -0.003875732421875, -0.00360107421875, 0.00005745887756347656, 0.0238037109375, 0.000705718994140625, -0.01275634765625, -0.01043701171875, 0.0126953125, -0.031494140625, 0.0107421875, -0.0011138916015625, 0.00262451171875, 0.00340...
[ 20625, 142508, 11809, 63667, 238, 6644, 959, 72367, 214, 52895, 1556, 2053, 137656, 83658, 23749, 41072, 27668, 29117, 8273, 17367, 83425, 31577, 5423, 45646, 111938, 6492, 85, 44805, 223, 63769, 66044, 1614, 117474, 28282, 74585, 831, 237, 6...
[ 0.1441650390625, 0.2318115234375, 0.123046875, 0.19873046875, 0.1468505859375, 0.04681396484375, 0.1131591796875, 0.194580078125, 0.06805419921875, 0.225341796875, 0.1302490234375, 0.1087646484375, 0.19677734375, 0.114013671875, 0.045928955078125, 0.111083984375, 0.1883544921875, 0...
embed
62647571_c0
62647571
haskell
0
Title: Haskell and Data.Array.//: why is this type correct? Problem title: Haskell and Data.Array.//: why is this type correct? Tags: haskell Problem: Haskell and Data.Array.//: why is this type correct? Creating a two-dimensional array: import Data.Array arr = listArray ((1, 1), (10, 10)) [1..] -- :: (Ix i, Num i, Num...
Haskell and Data.Array.//: why is this type correct? Haskell and Data.Array.//: why is this type correct? haskell Data.Array Haskell Num Enum Array arr2 Haskell and Data.Array.//: why is this type correct? Creating a two-dimensional array: // can be used to update a value. You need to provide a list of tuples with an i...
[ -0.00189971923828125, 0.00099945068359375, 0.004425048828125, 0.01239013671875, 0.0081787109375, 0.0159912109375, -0.02294921875, 0.007568359375, 0.020263671875, 0.01458740234375, 0.01220703125, -0.006561279296875, 0.01544189453125, -0.004608154296875, -0.01080322265625, -0.01904296875...
[ 20625, 142508, 136, 11809, 7614, 7092, 20767, 15400, 83, 903, 10644, 26785, 12, 1556, 52782, 357, 316, 69253, 187, 42, 304, 56781, 6626, 157955, 10298, 53, 4666, 831, 11814, 47, 28350, 34292, 22691, 5303, 370, 99726, 678, 63262, 2446, 458...
[ 0.146728515625, 0.2471923828125, 0.0953369140625, 0.1422119140625, 0.1151123046875, 0.21728515625, 0.154541015625, 0.181396484375, 0.115234375, 0.134033203125, 0.2496337890625, 0.243896484375, 0.003875732421875, 0.1307373046875, 0.07177734375, 0.0076904296875, 0.0975341796875, 0.10...
embed