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
28517053_c0
28517053
haskell
0
Title: Is it possible to implement MaybeT with Applicative only? Problem title: Is it possible to implement MaybeT with Applicative only? Tags: haskell Problem: Is it possible to implement MaybeT with Applicative only? After revisiting my MaybeT excercise I got warning that I should also have Applicative instance. I tr...
Is it possible to implement MaybeT with Applicative only? Is it possible to implement MaybeT with Applicative only? haskell MaybeT Applicative Monad Maybe Functor Just Nothing Is it possible to implement MaybeT with Applicative only? After revisiting my MaybeT excercise I got warning that I should also have Applicative...
[ -0.00775146484375, 0.01611328125, 0.0242919921875, 0.01611328125, 0.00830078125, 0.015869140625, 0.0079345703125, -0.0081787109375, 0.00102996826171875, -0.019287109375, 0.007293701171875, -0.0011749267578125, -0.0103759765625, 0.02001953125, -0.004638671875, -0.0125732421875, -0.008...
[ 2071, 442, 7722, 29479, 83425, 618, 678, 5659, 11048, 4935, 4734, 47, 1556, 142508, 60331, 71, 28670, 18770, 9563, 182747, 15226, 3443, 318, 1631, 592, 5608, 2843, 110527, 179933, 87, 53418, 59911, 347, 1022, 1238, 3871 ]
[ 0.032012939453125, 0.0173492431640625, 0.177978515625, 0.2158203125, 0.2376708984375, 0.2469482421875, 0.1214599609375, 0.154296875, 0.188720703125, 0.180419921875, 0.1297607421875, 0.0631103515625, 0.1358642578125, 0.2193603515625, 0.1427001953125, 0.10546875, 0.1058349609375, 0.0...
embed
46743523_c0
46743523
haskell
0
Title: why it shows this error: Couldn't match expected type `[a]' with actual type `a'? Problem title: why it shows this error: Couldn't match expected type `[a]' with actual type `a'? Tags: haskell Problem: why it shows this error: Couldn't match expected type `[a]' with actual type `a'?...
why it shows this error: Couldn't match expected type `[a]' with actual type `a'? why it shows this error: Couldn't match expected type `[a]' with actual type `a'? haskell Couldn agrupa::Eq h:ts why it shows this error: Couldn't match expected type `[a]' with actual type `a'? Error: it say...
[ 0.00799560546875, 0.0002689361572265625, -0.0130615234375, 0.0106201171875, 0.005340576171875, -0.01513671875, -0.015380859375, 0.01324462890625, 0.033203125, 0.00019359588623046875, 0.0087890625, 0.003997802734375, 0.025146484375, 0.009765625, -0.0274658203125, -0.0018463134765625, ...
[ 15400, 45831, 903, 18499, 191147, 54764, 3768, 18, 14858, 84751, 10644, 11, 678, 8561, 19, 1556, 142508, 119218, 12, 864, 1096, 933, 1065, 212059, 17378, 661, 10, 10336, 61636, 13319, 2046, 764, 66596, 83, 3229, 6863, 959, 127, 31251, 370...
[ 0.09637451171875, 0.082275390625, 0.05841064453125, 0.1771240234375, 0.137451171875, 0.010894775390625, 0.1331787109375, 0.10101318359375, 0.201416015625, 0.1826171875, 0.1705322265625, 0.1182861328125, 0.1187744140625, 0.15234375, 0.06976318359375, 0.13671875, 0.196533203125, 0.18...
embed
7909395_c0
7909395
haskell
0
Title: Calling Haskell FFI Function Ptrs from C Problem title: Calling Haskell FFI Function Ptrs from C Tags: haskell, ffi, c Problem: Calling Haskell FFI Function Ptrs from C I am trying to get the following code to work: sample_hs :: CInt -> (CInt -> CInt) sample_hs x = (x+) foreign export ccall sample_hs :: CInt -> ...
Calling Haskell FFI Function Ptrs from C Calling Haskell FFI Function Ptrs from C haskell ffi c C Calling Haskell FFI Ptrs sample_hs CInt Should Calling Haskell FFI Function Ptrs from C I am trying to get the following code to work: I would like to be able to do something like this in c: When I try to do this, however,...
[ 0.0093994140625, 0.0277099609375, -0.010986328125, 0.01519775390625, 0.0034942626953125, -0.0062255859375, -0.0000400543212890625, -0.0079345703125, 0.000911712646484375, -0.033203125, -0.00002968311309814453, -0.041015625, -0.01251220703125, 0.01275634765625, 0.013916015625, -0.015747...
[ 26265, 214, 20625, 142508, 563, 22724, 28670, 436, 4448, 7, 1295, 313, 1556, 24500, 501, 121413, 127, 660, 151117, 10763, 31577, 25632, 18151, 4488, 2806, 1884, 19048, 54, 903, 23, 9790, 18499, 26008, 57767, 101758, 17721, 46876, 56112, 18,...
[ 0.1343994140625, 0.05426025390625, 0.134033203125, 0.230712890625, 0.078125, 0.243896484375, 0.149658203125, 0.05841064453125, 0.193359375, 0.054443359375, 0.1358642578125, 0.1754150390625, 0.1341552734375, 0.1292724609375, 0.12890625, 0.1710205078125, 0.0946044921875, 0.0433959960...
embed
55777414_c0
55777414
haskell
0
Title: How to create default values for data structures in haskell Problem title: How to create default values for data structures in haskell Tags: haskell Problem: How to create default values for data structures in haskell I have a data structure like so data Sample = Sample { a :: String , b :: String } and a functi...
How to create default values for data structures in haskell How to create default values for data structures in haskell haskell How Sample How to create default values for data structures in haskell I have a data structure like so and a function I would like to provide some default values for a ,b in case the calling f...
[ 0.021728515625, 0.01153564453125, -0.0079345703125, 0.026123046875, 0.0155029296875, -0.0167236328125, -0.01275634765625, -0.030517578125, 0.01025390625, 0.00872802734375, -0.00775146484375, -0.01171875, 0.0419921875, 0.0186767578125, -0.009033203125, 0.003509521484375, 0.00952148437...
[ 11249, 47, 28282, 114977, 142424, 100, 2053, 45646, 7, 23, 1556, 142508, 947, 33209, 1884, 221, 32354, 22691, 3060, 10, 275, 7225, 159029, 959, 13319, 7413, 29806, 27650, 30700, 19201, 5464, 876, 10644, 2806, 5701 ]
[ 0.0648193359375, 0.02374267578125, 0.210205078125, 0.28564453125, 0.2376708984375, 0.0794677734375, 0.12451171875, 0.2310791015625, 0.053436279296875, 0.0335693359375, 0.154541015625, 0.23046875, 0.09771728515625, 0.216064453125, 0.049835205078125, 0.0621337890625, 0.1185302734375, ...
embed
64184805_c0
64184805
haskell
0
Title: A reverse function with Monoid type class in haskell Problem title: A reverse function with Monoid type class in haskell Tags: list, haskell, monoids, reverse Problem: A reverse function with Monoid type class in haskell I try to write a list-corresponding reverse function under Monoid typeclass like this: rever...
A reverse function with Monoid type class in haskell A reverse function with Monoid type class in haskell list haskell monoids reverse Monoid a:b Foldable Applicative Occurs A reverse function with Monoid type class in haskell I try to write a list-corresponding reverse function under Monoid typeclass like this: and my...
[ -0.0247802734375, 0.00811767578125, 0.0223388671875, 0.03369140625, -0.009033203125, 0.0174560546875, 0.00909423828125, 0.021240234375, 0.0059814453125, -0.0203857421875, -0.00148773193359375, -0.01165771484375, 0.01531982421875, 0.00323486328125, 0.0052490234375, -0.006500244140625, ...
[ 62, 39531, 184, 32354, 678, 77879, 532, 10644, 18507, 1556, 142508, 23, 5303, 22460, 30185, 10, 12, 275, 30077, 71, 2886, 5659, 11048, 4935, 180, 238, 48650, 9790, 33022, 32399, 18908, 1379, 67413, 1884, 903, 81887, 75204, 18499, 26008, 1...
[ 0.014404296875, 0.2052001953125, 0.1680908203125, 0.183349609375, 0.08575439453125, 0.1793212890625, 0.18359375, 0.1243896484375, 0.175537109375, 0.1248779296875, 0.21923828125, 0.007537841796875, 0.1439208984375, 0.1251220703125, 0.143310546875, 0.056915283203125, 0.0235137939453125...
embed
16265333_c0
16265333
haskell
0
Title: Example of "True Polymorphism"? (Preferably, using Haskell) Problem title: Example of "True Polymorphism"? (Preferably, using Haskell) Tags: haskell, parametric-polymorphism, c%2B%2B, polymorphism Problem: Example of "True Polymorphism"? (Preferably, using Haskell) I've seen lots of partial d...
Example of "True Polymorphism"? (Preferably, using Haskell) Example of "True Polymorphism"? (Preferably, using Haskell) haskell parametric-polymorphism c%2B%2B polymorphism Haskell Example Polymorphism Preferably Example of "True Polymorphism"? (Preferably, using Haskell) I've seen lots of partial d...
[ 0.019287109375, 0.0089111328125, 0.022705078125, 0.012451171875, -0.0118408203125, 0.0296630859375, 0.0169677734375, 0.0029754638671875, 0.0023040771484375, -0.006072998046875, 0.013427734375, -0.04443359375, -0.004547119140625, 0.01904296875, -0.010986328125, -0.0115966796875, -0.00...
[ 89536, 8705, 41502, 618, 882, 13, 63306, 178851, 8780, 2875, 17368, 20625, 142508, 1556, 121, 186518, 135545, 501, 571, 167218, 35874, 176005, 2878, 80934, 27781, 34735, 60212, 6626, 122776, 28219, 645, 63033, 214, 997, 39933, 3173, 29479, 12...
[ 0.1759033203125, 0.10272216796875, 0.0210418701171875, 0.0303955078125, 0.1693115234375, 0.0887451171875, 0.249755859375, 0.256591796875, 0.1513671875, 0.0150909423828125, 0.07843017578125, 0.1595458984375, 0.2435302734375, 0.1263427734375, 0.05419921875, 0.1497802734375, 0.214721679...
embed
25091562_c0
25091562
haskell
0
Title: How can I organize local haskell package documents? Problem title: How can I organize local haskell package documents? Tags: haddock, haskell, hoogle Problem: How can I organize local haskell package documents? I have many haskell packages and I have enabled some flag to allow them generate haddock documents. No...
How can I organize local haskell package documents? How can I organize local haskell package documents? haddock haskell hoogle How How can I organize local haskell package documents? I have many haskell packages and I have enabled some flag to allow them generate haddock documents. Now these documents are under directo...
[ -0.007080078125, -0.006744384765625, 0.004852294921875, 0.007598876953125, -0.009765625, 0.022216796875, -0.013427734375, -0.01458740234375, -0.004974365234375, -0.006072998046875, -0.005584716796875, -0.0208740234375, 0.0068359375, 0.00567626953125, -0.005828857421875, -0.019165039062...
[ 11249, 831, 87, 5808, 13, 4000, 1556, 142508, 98169, 60525, 1902, 138414, 28994, 133, 765, 5941, 225081, 49938, 63769, 139392, 1379, 14364, 248, 223, 67886, 29713, 29102, 11627, 46354, 7693, 55516, 2856, 3444, 756, 9351, 85526, 4588, 22317, ...
[ 0.1005859375, 0.0703125, 0.035247802734375, 0.255859375, 0.1168212890625, 0.1998291015625, 0.170166015625, 0.26025390625, 0.242431640625, 0.2362060546875, 0.137451171875, 0.228515625, 0.172119140625, 0.208984375, 0.00250244140625, 0.0601806640625, 0.0999755859375, 0.1505126953125, ...
embed
38679589_c0
38679589
haskell
0
Title: Was the reason that Haskell had single-argument functions to be like lambda calculus? Problem title: Was the reason that Haskell had single-argument functions to be like lambda calculus? Tags: arguments, lambda-calculus, haskell, currying Problem: Was the reason that Haskell had single-argument functions to be l...
Was the reason that Haskell had single-argument functions to be like lambda calculus? Was the reason that Haskell had single-argument functions to be like lambda calculus? arguments lambda-calculus haskell currying Was Haskell Was the reason that Haskell had single-argument functions to be like lambda calculus? In LYAH...
[ 0.0111083984375, -0.01068115234375, -0.004547119140625, 0.002349853515625, -0.00933837890625, 0.0023956298828125, 0.01373291015625, 0.00009965896606445312, 0.01171875, -0.02099609375, -0.0029296875, -0.048095703125, -0.0184326171875, -0.00054931640625, -0.010498046875, -0.0103759765625...
[ 5282, 31635, 20625, 142508, 11001, 155937, 32354, 1884, 21, 6492, 85, 44805, 223, 10750, 6827, 94739, 1556, 198555, 214, 1902, 192583, 46754, 122930, 212467, 32153, 134381, 678 ]
[ 0.0740966796875, 0.1243896484375, 0.1436767578125, 0.29150390625, 0.1806640625, 0.25732421875, 0.17041015625, 0.1156005859375, 0.03314208984375, 0.1737060546875, 0.10650634765625, 0.1995849609375, 0.104248046875, 0.1505126953125, 0.087890625, 0.08782958984375, 0.09320068359375, 0.1...
embed
50253569_c0
50253569
haskell
0
Title: How to make Either into a functor in second type Problem title: How to make Either into a functor in second type Tags: either, functor, haskell Problem: How to make Either into a functor in second type I have been reading "Learn You A Haskell For Great Good!" and right now I am on "The Functor Typeclass" section...
How to make Either into a functor in second type How to make Either into a functor in second type either functor haskell How Either Functor Right Left How to make Either into a functor in second type I have been reading "Learn You A Haskell For Great Good!" and right now I am on "The Functor Typeclass" section. Here th...
[ 0.0084228515625, -0.01300048828125, 0.0093994140625, -0.00188446044921875, 0.01068115234375, 0.00921630859375, -0.0211181640625, -0.01007080078125, 0.01123046875, -0.012451171875, -0.013427734375, -0.0224609375, -0.005340576171875, 0.000194549560546875, 0.003875732421875, -0.0074157714...
[ 11249, 47, 3249, 4565, 9319, 3934, 10, 7477, 18770, 23, 17932, 10644, 40101, 1556, 142508, 28670, 90911, 636, 2480, 147, 20625, 18621, 60457, 67413, 30022, 5117, 3642, 5809, 64457, 80934, 1238, 62346 ]
[ 0.05902099609375, 0.018280029296875, 0.08868408203125, 0.1346435546875, 0.2398681640625, 0.1231689453125, 0.038909912109375, 0.183837890625, 0.211669921875, 0.05328369140625, 0.204833984375, 0.1768798828125, 0.0675048828125, 0.0865478515625, 0.1806640625, 0.169921875, 0.07373046875, ...
embed
21568275_c0
21568275
haskell
0
Title: Calculating product by addition Problem title: Calculating product by addition Tags: algorithm, haskell Problem: Calculating product by addition This is an algorithm question that I've been struggling with. I figured I could get some insight here. I need to make the following function in Haskell: Declare the typ...
Calculating product by addition Calculating product by addition algorithm haskell Calculating Calculating product by addition This is an algorithm question that I've been struggling with. I figured I could get some insight here. I need to make the following function in Haskell: My problem is that this is basically just...
[ -0.01519775390625, 0.0272216796875, -0.0125732421875, 0.01806640625, -0.0194091796875, 0.0086669921875, -0.0208740234375, -0.00213623046875, 0.012939453125, -0.031494140625, 0.000331878662109375, -0.023681640625, -0.02734375, 0.0024871826171875, -0.00848388671875, -0.0172119140625, 0...
[ 212467, 26518, 12996, 390, 66044, 234873, 1556, 142508, 9655, 237875, 149201, 3871, 3249, 25632, 32354, 23, 20625, 2967, 903, 198343, 1660, 6024, 62479, 214, 6626, 101935, 25842, 1284, 17378, 450, 54, 442, 678, 35672, 29786, 3642, 47, 3293, ...
[ 0.1998291015625, 0.1036376953125, 0.251953125, 0.1507568359375, 0.256591796875, 0.2249755859375, 0.1666259765625, 0.253662109375, 0.021881103515625, 0.10211181640625, 0.09124755859375, 0.1204833984375, 0.07537841796875, 0.094970703125, 0.16845703125, 0.057891845703125, 0.17431640625,...
embed
22696442_c1
22696442
haskell
1
function for episodes, i.e. I replace each function func1 :: Episode -> Something where I would need the above podcast function with func1 :: Podcast -> Episode -> Something It would be just great, to write as little code as possible and not to have the necessity to carry the Podcast entity everywhere around. Maybe I ...
function for episodes, i.e. I replace each function func1 :: Episode -> Something where I would need the above podcast function with func1 :: Podcast -> Episode -> Something It would be just great, to write as little code as possible and not to have the necessity to carry the Podcast entity everywhere around. Maybe I ...
[ 0.00045013427734375, 0.01513671875, 0.00555419921875, 0.0211181640625, 0.0145263671875, 0.019287109375, 0.02001953125, -0.0052490234375, 0.007598876953125, -0.032958984375, -0.044189453125, -0.006134033203125, -0.01171875, 0.021728515625, -0.0017547607421875, -0.00994873046875, -0.01...
[ 32354, 100, 50094, 7, 91995, 12638, 7477, 418, 1984, 53379, 33079, 200905, 3871, 36917, 99653, 238, 135078, 2806, 6782, 33022, 10176, 18151, 85358, 77630, 15549, 112668, 68403, 61924, 2053, 17164, 15490, 44457, 11249, 831, 29479, 96853, 16916, ...
[ 0.2054443359375, 0.0533447265625, 0.2509765625, 0.0867919921875, 0.1317138671875, 0.027984619140625, 0.1143798828125, 0.06396484375, 0.0911865234375, 0.265869140625, 0.0946044921875, 0.1151123046875, 0.02838134765625, 0.00567626953125, 0.2491455078125, 0.025390625, 0.25439453125, 0...
embed
57744404_c0
57744404
haskell
0
Title: Implementation of `first` in Arrow library Problem title: Implementation of `first` in Arrow library Tags: infinite-recursion, arrow-abstraction, default-implementation, haskell, mutual-recursion Problem: Implementation of `first` in Arrow library I don't understand the implementation of first in the library. fi...
Implementation of `first` in Arrow library Implementation of `first` in Arrow library infinite-recursion arrow-abstraction default-implementation haskell mutual-recursion Implementation Arrow Implementation of `first` in Arrow library I don't understand the implementation of first in the library. first seems to be defi...
[ 0.004425048828125, -0.01312255859375, 0.0262451171875, 0.03125, -0.0062255859375, -0.011962890625, -0.005615234375, 0.0038299560546875, -0.00830078125, -0.001373291015625, 0.0101318359375, 0.0157470703125, -0.00628662109375, 0.026123046875, 0.032470703125, -0.010009765625, -0.0059509...
[ 153941, 13448, 271, 23, 1172, 15555, 35773, 1294, 54241, 107, 48650, 1830, 118201, 2055, 117474, 114977, 197648, 1556, 142508, 199849, 2301, 18, 28219, 208124, 111, 5117, 37202, 61924, 195625, 5844, 678, 24428, 1957, 3229, 35299, 3564, 1238, ...
[ 0.209716796875, 0.1966552734375, 0.2032470703125, 0.0662841796875, 0.1156005859375, 0.25927734375, 0.199462890625, 0.09075927734375, 0.10089111328125, 0.020172119140625, 0.1483154296875, 0.100830078125, 0.221435546875, 0.0572509765625, 0.1256103515625, 0.1917724609375, 0.157958984375...
embed
10115623_c0
10115623
haskell
0
Title: Accessing members of a custom data type in Haskell Problem title: Accessing members of a custom data type in Haskell Tags: haskell Problem: Accessing members of a custom data type in Haskell Say I have the following custom data type and function in Haskell: data Person = Person { first_name :: String, last_name ...
Accessing members of a custom data type in Haskell Accessing members of a custom data type in Haskell haskell Accessing Haskell Person first_name last_name Ord Show print_age John Smith Accessing members of a custom data type in Haskell Say I have the following custom data type and function in Haskell: If I want to cre...
[ 0, 0.01446533203125, 0.0205078125, 0.0196533203125, -0.0087890625, 0.0291748046875, -0.0240478515625, 0.0159912109375, -0.00872802734375, -0.0283203125, 0.0032806396484375, -0.0260009765625, 0.01080322265625, -0.00750732421875, -0.0087890625, -0.0277099609375, -0.0023345947265625, ...
[ 40266, 43032, 114122, 2053, 10644, 20625, 142508, 23, 1556, 15270, 5117, 11627, 4568, 35379, 17367, 28412, 4588, 4939, 37700, 25632, 32354, 3444, 28282, 454, 32070, 1884, 221, 160054, 98385, 266, 927, 952, 3642, 33022, 17203, 171859, 39, 1345...
[ 0.1865234375, 0.2047119140625, 0.22412109375, 0.1324462890625, 0.223876953125, 0.1583251953125, 0.259521484375, 0.0246734619140625, 0.14013671875, 0.1885986328125, 0.0504150390625, 0.067138671875, 0.0958251953125, 0.1549072265625, 0.1219482421875, 0.195556640625, 0.2213134765625, 0...
embed
51131848_c0
51131848
haskell
0
Title: How to adapt the many' to return Left in attoparsec of Haskel Problem title: How to adapt the many' to return Left in attoparsec of Haskel Tags: attoparsec, haskell Problem: How to adapt the many' to return Left in attoparsec of Haskel For example parseTest :: Parser Int parseTest = char '(' *> return ...
How to adapt the many' to return Left in attoparsec of Haskel How to adapt the many' to return Left in attoparsec of Haskel attoparsec haskell How Left Haskel Parser ParseIni.parseTest ParseIni.parseTests Right How to adapt the many' to return Left in attoparsec of Haskel For example How can I make the second...
[ -0.006561279296875, 0.00537109375, -0.016357421875, 0.003753662109375, 0.0103759765625, 0.027099609375, -0.00153350830078125, -0.021240234375, 0.019287109375, -0.01953125, 0.0028839111328125, -0.01904296875, 0.01165771484375, 0.01531982421875, -0.004791259765625, 0.00074005126953125, ...
[ 11249, 39908, 5941, 3768, 30646, 636, 2480, 243, 31, 2500, 39797, 20625, 2590, 47, 70, 54764, 23, 1556, 142508, 2392, 2189, 184, 114683, 111337, 90911, 25, 3249, 17932, 678, 72856, 3444, 366, 7225, 201505, 79315, 35166 ]
[ 0.06500244140625, 0.2274169921875, 0.243408203125, 0.126953125, 0.16064453125, 0.1082763671875, 0.207275390625, 0.134521484375, 0.095947265625, 0.09619140625, 0.1451416015625, 0.144775390625, 0.220703125, 0.0219573974609375, 0.05096435546875, 0.03204345703125, 0.0120849609375, 0.11...
embed
29180798_c0
29180798
haskell
0
Title: Using a type of a parameterized data type in a Haskell function Problem title: Using a type of a parameterized data type in a Haskell function Tags: algebraic-data-types, haskell Problem: Using a type of a parameterized data type in a Haskell function Let's say I have some algebraic data type in Haskell: data Fo...
Using a type of a parameterized data type in a Haskell function Using a type of a parameterized data type in a Haskell function algebraic-data-types haskell Using Haskell Foo Bounded Using a type of a parameterized data type in a Haskell function Let's say I have some algebraic data type in Haskell: I'd like to have a ...
[ -0.00762939453125, 0.00026702880859375, 0.007171630859375, 0.0181884765625, 0.00299072265625, 0.00982666015625, -0.00982666015625, 0.00067138671875, 0.00421142578125, -0.037109375, -0.013671875, -0.048095703125, -0.0203857421875, 0.01165771484375, 0.010009765625, -0.03515625, 0.00360...
[ 345, 6953, 10644, 171859, 29367, 2053, 23, 20625, 142508, 32354, 111, 429, 2844, 10135, 50986, 1556, 9572, 31, 335, 167457, 1771, 1884, 765, 5809, 112779, 15390, 903, 10, 9844, 66596, 40407, 24233, 27289, 3871, 179140, 127689, 28960, 110, 2...
[ 0.1207275390625, 0.0193328857421875, 0.2227783203125, 0.2099609375, 0.1231689453125, 0.1302490234375, 0.0655517578125, 0.142578125, 0.2459716796875, 0.1910400390625, 0.037445068359375, 0.04595947265625, 0.0970458984375, 0.0933837890625, 0.1878662109375, 0.1077880859375, 0.13024902343...
embed
49503033_c0
49503033
haskell
0
Title: parsing in Haskell Problem title: parsing in Haskell Tags: parsing, haskell Problem: parsing in Haskell No matter what I try I keep getting parsing errors and it is extremely frustrating. Any idea what I can do to fix this? (This is a function of a tic tac toe program) play' :: Grid -> Player -> IO () play' g p ...
parsing in Haskell parsing in Haskell parsing haskell Haskell Grid Player ERROR Invalid parsing in Haskell No matter what I try I keep getting parsing errors and it is extremely frustrating. Any idea what I can do to fix this? (This is a function of a tic tac toe program)
[ -0.028076171875, 0.0299072265625, 0.0159912109375, 0.0205078125, 0.020263671875, 0.0257568359375, 0.000293731689453125, -0.0169677734375, 0.00433349609375, 0.00014495849609375, 0.015380859375, 0.000278472900390625, -0.0013580322265625, -0.0145263671875, -0.0203857421875, -0.00430297851...
[ 366, 6953, 23, 20625, 142508, 1556, 31945, 71, 60560, 151206, 24638, 360, 7013, 26866, 2367, 9790, 13695, 20949, 18499, 111531, 57357, 1916, 6528, 30022, 32354, 96212, 36322, 4375, 1528 ]
[ 0.179931640625, 0.12744140625, 0.07257080078125, 0.1407470703125, 0.2437744140625, 0.1385498046875, 0.144287109375, 0.0703125, 0.199462890625, 0.13037109375, 0.07733154296875, 0.0272979736328125, 0.14111328125, 0.051513671875, 0.00888824462890625, 0.06036376953125, 0.07733154296875, ...
embed
67165419_c1
67165419
haskell
1
-newer also does nothing. I tried, with no success: cabal update cabal install Cabal cabal-install cabal new-install codeworld-api cabal new-build codeworld-api also doesn't show up in ghc-pkg list . I have no idea what's happening... Platform info Ubuntu 20.04 cabal-install version 2.4.0.0 Cabal library version 2.4.0....
-newer also does nothing. I tried, with no success: cabal update cabal install Cabal cabal-install cabal new-install codeworld-api cabal new-build codeworld-api also doesn't show up in ghc-pkg list . I have no idea what's happening... Platform info Ubuntu 20.04 cabal-install version 2.4.0.0 Cabal library version 2.4.0....
[ -0.0078125, 0.003692626953125, 0.033935546875, 0.01312255859375, -0.004180908203125, 0.0155029296875, -0.001129150390625, -0.01708984375, -0.0019989013671875, 0.03662109375, -0.01043701171875, -0.052490234375, -0.0005340576171875, -0.005340576171875, 0.01025390625, -0.0048828125, 0.0...
[ 20, 86, 6488, 2843, 14602, 33720, 37842, 110, 36272, 109524, 28350, 20600, 30438, 289, 80383, 3525, 18151, 32554, 40897, 177149, 22027, 18, 7639, 23, 31380, 238, 8517, 5303, 6528, 123087, 70968, 116890, 7085, 7709, 66207, 99929, 35773, 102014...
[ 0.07196044921875, 0.1595458984375, 0.2398681640625, 0.0782470703125, 0.07220458984375, 0.1439208984375, 0.07208251953125, 0.06982421875, 0.07879638671875, 0.267822265625, 0.1329345703125, 0.16015625, 0.195556640625, 0.2027587890625, 0.151123046875, 0.1248779296875, 0.1334228515625, ...
embed
59701410_c0
59701410
haskell
0
Title: Haskell ways to filter out a list comprehensions Problem title: Haskell ways to filter out a list comprehensions Tags: haskell Problem: Haskell ways to filter out a list comprehensions I am new to Haskell and its functions are a little confusing. The goal is to take a list comprehensions and obtain digits that i...
Haskell ways to filter out a list comprehensions Haskell ways to filter out a list comprehensions haskell Haskell isPalindromeThatStartsWithDigit3 Haskell ways to filter out a list comprehensions I am new to Haskell and its functions are a little confusing. The goal is to take a list comprehensions and obtain digits th...
[ -0.0072021484375, 0.003875732421875, -0.0167236328125, -0.0111083984375, 0.005126953125, 0.0125732421875, 0.02978515625, 0.00579833984375, 0.01141357421875, -0.019287109375, 0.00140380859375, 0.01019287109375, -0.0030517578125, 0.01153564453125, -0.02001953125, -0.02294921875, 0.0164...
[ 20625, 142508, 48322, 46312, 1810, 5303, 46683, 3220, 63239, 1556, 83, 81841, 73, 102851, 115743, 126597, 194583, 14055, 15769, 363, 3525, 32354, 10176, 55681, 69236, 113054, 153939, 17923, 19, 4034, 1031, 65771, 72856, 450, 14602, 959, 678, ...
[ 0.1466064453125, 0.2279052734375, 0.116455078125, 0.2325439453125, 0.1561279296875, 0.189453125, 0.1583251953125, 0.167724609375, 0.105712890625, 0.1263427734375, 0.0079345703125, 0.099853515625, 0.08203125, 0.1883544921875, 0.006561279296875, 0.084228515625, 0.040435791015625, 0.0...
embed
53457521_c0
53457521
haskell
0
Title: deriving (Show, Eq) with function in data types Problem title: deriving (Show, Eq) with function in data types Tags: haskell Problem: deriving (Show, Eq) with function in data types I have some data types which as one argument I have functions data Event = BasketCreated{basket:: Basket} | ProductAdded{ basket::B...
deriving (Show, Eq) with function in data types deriving (Show, Eq) with function in data types haskell Show Event BasketCreated Basket ProductAdded basket::Basket DiscountAdded deriving (Show, Eq) with function in data types I have some data types which as one argument I have functions unfortunately since my data type...
[ 0.003662109375, 0.00799560546875, 0.0011749267578125, 0.01141357421875, 0.0034332275390625, -0.006866455078125, 0.005584716796875, 0.0194091796875, 0.0019073486328125, -0.01434326171875, -0.016845703125, 0.003265380859375, 0.00677490234375, 0.0230712890625, -0.023193359375, -0.00463867...
[ 16406, 6496, 168660, 241, 864, 678, 32354, 23, 2053, 52895, 1556, 142508, 17367, 36943, 152327, 63784, 73111, 69819, 149241, 63473, 3473, 6206, 71013, 10750, 765, 104272, 10644, 70541, 959, 9969, 49725, 6528, 831, 16, 19048, 28412 ]
[ 0.16845703125, 0.160888671875, 0.265869140625, 0.04083251953125, 0.173828125, 0.1680908203125, 0.2235107421875, 0.019866943359375, 0.1292724609375, 0.22802734375, 0.123046875, 0.2069091796875, 0.19775390625, 0.1475830078125, 0.1787109375, 0.06689453125, 0.0948486328125, 0.091064453...
embed
29287413_c0
29287413
haskell
0
Title: What is Haskell way to generate list of symbols from Start character to Finish character? Problem title: What is Haskell way to generate list of symbols from Start character to Finish character? Tags: haskell, linked-list Problem: What is Haskell way to generate list of symbols from Start character to Finish cha...
What is Haskell way to generate list of symbols from Start character to Finish character? What is Haskell way to generate list of symbols from Start character to Finish character? haskell linked-list Start What Haskell Finish Nothing Just Main What is Haskell way to generate list of symbols from Start character to Fini...
[ -0.00823974609375, 0.004058837890625, -0.005462646484375, 0.0184326171875, -0.00299072265625, 0.006195068359375, -0.002655029296875, -0.006256103515625, 0.00189971923828125, -0.0111083984375, 0.006866455078125, -0.016845703125, 0.0235595703125, 0.036376953125, -0.0250244140625, -0.0035...
[ 4865, 83, 20625, 142508, 3917, 139392, 5303, 26582, 7, 1295, 13794, 62816, 47, 13316, 4745, 1556, 3126, 297, 6562, 182747, 9563, 12321, 3444, 756, 175457, 229231, 124850, 876, 97, 39531, 12989, 29806, 7108 ]
[ 0.055908203125, 0.0270843505859375, 0.1497802734375, 0.2529296875, 0.1072998046875, 0.1988525390625, 0.1827392578125, 0.2431640625, 0.0386962890625, 0.0947265625, 0.203125, 0.1729736328125, 0.096923828125, 0.1636962890625, 0.1776123046875, 0.1248779296875, 0.0814208984375, 0.026092...
embed
7304020_c0
7304020
haskell
0
Title: Haskell tail recursion predictability Problem title: Haskell tail recursion predictability Tags: haskell, optimization Problem: Haskell tail recursion predictability One of the biggest issues I have with haskell is to be able to (correctly) predict the performance of haskell code. While I have some more difficul...
Haskell tail recursion predictability Haskell tail recursion predictability haskell optimization Haskell x:xs Haskell tail recursion predictability One of the biggest issues I have with haskell is to be able to (correctly) predict the performance of haskell code. While I have some more difficult problems, I realize I h...
[ 0.01953125, 0.00921630859375, 0.0029449462890625, 0.007598876953125, 0.00341796875, -0.0029144287109375, -0.01416015625, -0.0284423828125, 0.0213623046875, -0.0211181640625, 0.0162353515625, -0.0240478515625, 0.0224609375, 0.0054931640625, 0.019287109375, 0.0096435546875, 0.005310058...
[ 20625, 142508, 46741, 195625, 1830, 92054, 41159, 1556, 87235, 425, 129058, 37348, 765, 678, 19048, 47, 32399, 23718, 18151, 34844, 44402, 92154, 110, 100094, 8781, 28219, 81113, 11782, 5608, 3871, 13695, 106, 177261, 16487, 80934, 831, 31635, ...
[ 0.134765625, 0.2103271484375, 0.227294921875, 0.1781005859375, 0.0207672119140625, 0.21142578125, 0.1094970703125, 0.1246337890625, 0.126708984375, 0.052093505859375, 0.08367919921875, 0.14501953125, 0.06280517578125, 0.0282440185546875, 0.060791015625, 0.014312744140625, 0.023818969...
embed
75665997_c0
75665997
haskell
0
Title: How to config the behavior of 'stack new' so a certain lts can be used every time? Problem title: How to config the behavior of 'stack new' so a certain lts can be used every time? Tags: haskell-stack, haskell Problem: How to config the behavior of 'stack new' so a certain lts can be used eve...
How to config the behavior of 'stack new' so a certain lts can be used every time? How to config the behavior of 'stack new' so a certain lts can be used every time? haskell-stack haskell How How to config the behavior of 'stack new' so a certain lts can be used every time? I want to setup the defau...
[ -0.019287109375, 0.0036773681640625, -0.01031494140625, -0.0198974609375, -0.01025390625, -0.02978515625, -0.00823974609375, -0.004913330078125, 0.00154876708984375, 0.00311279296875, -0.023193359375, -0.0118408203125, 0, -0.0034942626953125, 0.004638671875, 0.005035400390625, 0.0066...
[ 11249, 47, 153837, 123166, 3768, 590, 2594, 3525, 221, 24233, 96, 933, 11814, 11907, 1733, 1556, 142508, 831, 3444, 169581, 114977, 11389, 7085, 1662, 26866, 756, 67330, 55300, 12937, 10557, 22819, 14520, 141, 86918, 10957, 72697, 124962, 535...
[ 0.056732177734375, 0.03253173828125, 0.261474609375, 0.187744140625, 0.0457763671875, 0.176513671875, 0.1787109375, 0.243896484375, 0.024932861328125, 0.0660400390625, 0.097412109375, 0.1705322265625, 0.15380859375, 0.177734375, 0.1820068359375, 0.11669921875, 0.2066650390625, 0.02...
embed
29781618_c1
29781618
haskell
1
ensures they are specialized at the appropriate numeric types. Are these indications also applicable to the rest of the numerical calculations or only to array computations? or is there a more general guide to decide when a function should be inline? Notice that this post: Is there any reason not to use the INLINABLE ...
ensures they are specialized at the appropriate numeric types. Are these indications also applicable to the rest of the numerical calculations or only to array computations? or is there a more general guide to decide when a function should be inline? Notice that this post: Is there any reason not to use the INLINABLE ...
[ -0.0012969970703125, 0.00096893310546875, 0.01055908203125, -0.030517578125, 0.000972747802734375, 0.0166015625, -0.021240234375, -0.0228271484375, 0.01513671875, 0.04052734375, -0.0108642578125, -0.021240234375, 0.00174713134765625, -0.0230712890625, 0.00665283203125, 0.00121307373046...
[ 63284, 1836, 621, 5361, 29367, 99, 95307, 54744, 52895, 14585, 5256, 152431, 10588, 6827, 74481, 10298, 53, 181135, 4537, 17997, 28288, 3229, 32354, 5608, 186, 23, 2256, 31635, 959, 4527, 5881, 46610, 183057, 58827, 192, 5122, 933, 62952, 7...
[ 0.1561279296875, 0.039581298828125, 0.019683837890625, 0.174560546875, 0.14013671875, 0.0743408203125, 0.1181640625, 0.1480712890625, 0.172119140625, 0.1591796875, 0.061798095703125, 0.06787109375, 0.00653076171875, 0.0204620361328125, 0.1510009765625, 0.1409912109375, 0.055816650390...
embed
28232105_c0
28232105
haskell
0
Title: How can I use mathematic symbols (function name) in the ghci? Problem title: How can I use mathematic symbols (function name) in the ghci? Tags: ghci, haskell, windows Problem: How can I use mathematic symbols (function name) in the ghci? I'm learning Haskell. I see an author uses some mathematic unicode chars i...
How can I use mathematic symbols (function name) in the ghci? How can I use mathematic symbols (function name) in the ghci? ghci haskell windows How x:xs How can I use mathematic symbols (function name) in the ghci? I'm learning Haskell. I see an author uses some mathematic unicode chars in the code here ( ∀ for exampl...
[ -0.01263427734375, -0.00701904296875, -0.00176239013671875, 0.0003204345703125, -0.0191650390625, 0.006591796875, 0.0184326171875, 0.0263671875, 0.0220947265625, -0.01300048828125, 0.0164794921875, -0.032470703125, 0.021240234375, -0.0184326171875, 0.000583648681640625, 0.016357421875,...
[ 11249, 831, 87, 4527, 48909, 13, 47148, 26582, 7, 137175, 9351, 23, 70, 31380, 318, 1556, 142508, 54825, 1022, 425, 52080, 20625, 42179, 60347, 112, 21441, 18151, 165304, 9790, 72367, 26531, 11782, 32354, 71099, 3934, 130250, 34196, 24351, ...
[ 0.07403564453125, 0.0836181640625, 0.034027099609375, 0.1519775390625, 0.1336669921875, 0.1253662109375, 0.18212890625, 0.23291015625, 0.0643310546875, 0.214599609375, 0.1236572265625, 0.0706787109375, 0.0318603515625, 0.13525390625, 0.1805419921875, 0.0716552734375, 0.2049560546875,...
embed
48601573_c0
48601573
haskell
0
Title: How would you define these types in Haskell? Problem title: How would you define these types in Haskell? Tags: function, haskell, types Problem: How would you define these types in Haskell? I'm in the process of learning Haskell, but am finding it really difficult to understand what seems to be the most basic of...
How would you define these types in Haskell? How would you define these types in Haskell? function haskell types How Haskell How would you define these types in Haskell? I'm in the process of learning Haskell, but am finding it really difficult to understand what seems to be the most basic of things! For one, understan...
[ 0.00165557861328125, 0.015380859375, 0.0021514892578125, -0.000606536865234375, -0.003997802734375, 0.005859375, -0.01611328125, -0.00933837890625, 0.0081787109375, -0.0086669921875, 0.005218505859375, -0.0191650390625, -0.0007476806640625, 0.0111083984375, -0.01611328125, 0.0094604492...
[ 11249, 2806, 61924, 6097, 52895, 23, 20625, 142508, 32354, 1556, 52080, 6183, 34844, 28219, 37202, 2684, 62822, 111, 8966, 100094, 154559, 18, 162738, 1022, 136, 17262, 70141, 186, 10644, 892, 1505, 5646, 142424, 59911, 41018, 16487, 4568 ]
[ 0.0806884765625, 0.0712890625, 0.1976318359375, 0.0980224609375, 0.26806640625, 0.0887451171875, 0.1409912109375, 0.2435302734375, 0.1700439453125, 0.14404296875, 0.014923095703125, 0.012969970703125, 0.039459228515625, 0.09228515625, 0.0281219482421875, 0.059600830078125, 0.15039062...
embed
48612909_c1
48612909
haskell
1
xs abs xs = map P.abs xs signum xs = map P.signum xs fromInteger x = P.error "Not implemented yet" --constStream x Functions * , - , * work as I want, but functions negate , abs and signum don't exist. GHCi, version 8.2.2: http://www.haskell.org/ghc/ :? for help Prelude> :l Stream [1 of 1] Compiling Stream ( Stream.hs...
xs abs xs = map P.abs xs signum xs = map P.signum xs fromInteger x = P.error "Not implemented yet" --constStream x Functions * , - , * work as I want, but functions negate , abs and signum don't exist. GHCi, version 8.2.2: http://www.haskell.org/ghc/ :? for help Prelude> :l Stream [1 of 1] Compiling Stream ( Stream.hs...
[ -0.01422119140625, 0.01336669921875, 0.00634765625, -0.0025787353515625, 0.000782012939453125, 0.00994873046875, 0.0185546875, -0.00634765625, 0.004547119140625, -0.00390625, -0.01287841796875, -0.0062255859375, 0.00408935546875, -0.000675201416015625, -0.007415771484375, 0.00357055664...
[ 1022, 7, 43719, 2203, 22288, 436, 5, 2055, 1144, 2606, 31304, 316, 1295, 67, 188800, 122116, 29479, 297, 14373, 25553, 18, 115061, 28670, 10763, 20, 4488, 237, 3444, 1284, 32354, 90584, 13, 136, 2301, 32316, 527, 73265, 14, 11389, 3217, ...
[ 0.1759033203125, 0.1524658203125, 0.2529296875, 0.072265625, 0.1553955078125, 0.0841064453125, 0.0302886962890625, 0.14453125, 0.140380859375, 0.211669921875, 0.11328125, 0.07098388671875, 0.0816650390625, 0.17724609375, 0.185302734375, 0.06280517578125, 0.1693115234375, 0.00256347...
embed
5450394_c0
5450394
haskell
0
Title: Haskell: Converting between ByteStrings and different text encodings Problem title: Haskell: Converting between ByteStrings and different text encodings Tags: haskell, text, encoding Problem: Haskell: Converting between ByteStrings and different text encodings I'd like to translate between Strings and ByteString...
Haskell: Converting between ByteStrings and different text encodings Haskell: Converting between ByteStrings and different text encodings haskell text encoding Haskell Converting ByteStrings Haskell: Converting between ByteStrings and different text encodings I'd like to translate between Strings and ByteStrings using ...
[ 0.031005859375, -0.0096435546875, 0.006011962890625, 0.0107421875, -0.005340576171875, 0.004058837890625, -0.00213623046875, 0.0042724609375, -0.003692626953125, 0.04052734375, -0.003021240234375, -0.022216796875, -0.000759124755859375, 0.025146484375, -0.0133056640625, 0.0049133300781...
[ 20625, 142508, 1657, 814, 1916, 17721, 3311, 67, 71713, 5180, 136, 12921, 7986, 22, 587, 6238, 12, 1556, 1884, 3900, 19309, 23351, 17368, 67842, 486, 420, 1019, 91693, 98169, 34831, 345, 30992, 5915, 3789, 151552, 12353, 17780, 11809, 5, ...
[ 0.1351318359375, 0.2666015625, 0.03521728515625, 0.1650390625, 0.0426025390625, 0.128662109375, 0.113037109375, 0.1773681640625, 0.211669921875, 0.186767578125, 0.114013671875, 0.154296875, 0.148193359375, 0.0726318359375, 0.166015625, 0.1304931640625, 0.007080078125, 0.11840820312...
embed
55073455_c0
55073455
haskell
0
Title: How can I have ghc invoke the linker differently than its default configuration? Problem title: How can I have ghc invoke the linker differently than its default configuration? Tags: ghc, linker, haskell Problem: How can I have ghc invoke the linker differently than its default configuration? I can pass options ...
How can I have ghc invoke the linker differently than its default configuration? How can I have ghc invoke the linker differently than its default configuration? ghc linker haskell How How can I have ghc invoke the linker differently than its default configuration? I can pass options to the linker using cc with the -Wl...
[ -0.003326416015625, 0.00927734375, 0.0026397705078125, -0.016357421875, -0.018798828125, -0.0169677734375, -0.01507568359375, 0.0032806396484375, -0.0079345703125, -0.0201416015625, -0.0225830078125, -0.01220703125, 0.000080108642578125, -0.0084228515625, -0.013671875, 0.01324462890625...
[ 11249, 831, 765, 31380, 238, 23, 23253, 13, 3126, 56, 12921, 3501, 6863, 114977, 180346, 1556, 142508, 70, 27875, 50717, 47, 17368, 10060, 678, 20, 1456, 141, 35829, 128405, 223, 42, 98908, 5612, 8951, 4527, 222495, 7568, 7344, 3642, 1419...
[ 0.061187744140625, 0.062408447265625, 0.082275390625, 0.1640625, 0.1922607421875, 0.04034423828125, 0.1693115234375, 0.05706787109375, 0.201416015625, 0.21484375, 0.1556396484375, 0.0775146484375, 0.04736328125, 0.2017822265625, 0.1990966796875, 0.115234375, 0.205078125, 0.02276611...
embed
35853647_c0
35853647
haskell
0
Title: Haskell - lazy function for finding positions of character in text Problem title: Haskell - lazy function for finding positions of character in text Tags: haskell Problem: Haskell - lazy function for finding positions of character in text It is correct proposition. positions :: Char -> String -> [Int] positions ...
Haskell - lazy function for finding positions of character in text Haskell - lazy function for finding positions of character in text haskell Haskell Char Haskell - lazy function for finding positions of character in text It is correct proposition. It seems to be elegant and in haskell style. However, I consider is it ...
[ 0.0106201171875, -0.0004863739013671875, 0.014404296875, 0.008056640625, 0.0081787109375, 0.0032196044921875, 0.027099609375, 0.0201416015625, -0.0093994140625, -0.01806640625, -0.004608154296875, -0.00341796875, -0.0052490234375, 0.00836181640625, -0.00177764892578125, 0.0220947265625...
[ 20625, 142508, 21, 3285, 32354, 90791, 19069, 7, 111, 62816, 7986, 100, 1556, 21656, 23, 26785, 89261, 37202, 27650, 20623, 16916, 7722, 29479, 903, 54241, 53, 5303, 2843, 43240, 29806, 40956, 214, 6637, 140909, 959, 54529, 191147, 4358 ]
[ 0.1326904296875, 0.235107421875, 0.1580810546875, 0.2142333984375, 0.1820068359375, 0.12158203125, 0.197265625, 0.02398681640625, 0.0142974853515625, 0.180419921875, 0.173095703125, 0.04425048828125, 0.1104736328125, 0.155029296875, 0.02740478515625, 0.05572509765625, 0.1619873046875...
embed
18702652_c0
18702652
haskell
0
Title: Size of fay generated file Problem title: Size of fay generated file Tags: haskell, fay Problem: Size of fay generated file I tried fay-jquery and the included sample test.hs file results in whooping 150 kb of js file. Even with closure compiling it is still 20 kb. I understand that it must carry a runtime, stdl...
Size of fay generated file Size of fay generated file haskell fay Size Size of fay generated file I tried fay-jquery and the included sample test.hs file results in whooping 150 kb of js file. Even with closure compiling it is still 20 kb. I understand that it must carry a runtime, stdlib and jquery wrappers with it. I...
[ 0.01177978515625, -0.009765625, 0.01104736328125, -0.0123291015625, -0.0322265625, -0.005035400390625, -0.0004863739013671875, 0.0252685546875, 0.0135498046875, -0.006622314453125, -0.0081787109375, -0.032958984375, -0.0137939453125, 0.0196533203125, 0.01165771484375, -0.00089263916015...
[ 80378, 111, 1071, 53, 139392, 11435, 71, 1556, 142508, 37842, 170, 944, 1294, 99201, 121413, 3034, 127, 7, 10366, 3252, 51882, 1647, 170224, 9969, 7464, 387, 8110, 85358, 11675, 6032, 6138, 5612, 137565, 21777, 14192, 959, 271, 157, 5425, ...
[ 0.1800537109375, 0.0263214111328125, 0.2022705078125, 0.222412109375, 0.188720703125, 0.1873779296875, 0.015594482421875, 0.12890625, 0.1768798828125, 0.0221099853515625, 0.008544921875, 0.09527587890625, 0.04296875, 0.031219482421875, 0.156005859375, 0.1463623046875, 0.1177978515625...
embed
26593237_c0
26593237
haskell
0
Title: What would the type of a list of cascading functions be? Problem title: What would the type of a list of cascading functions be? Tags: type-systems, types, dependent-type, haskell Problem: What would the type of a list of cascading functions be? In Haskell syntax, we can have a (abstract) type like [a -> b] , wh...
What would the type of a list of cascading functions be? What would the type of a list of cascading functions be? type-systems types dependent-type haskell What What would the type of a list of cascading functions be? In Haskell syntax, we can have a (abstract) type like [a -> b] , which is a list of functions a to b. ...
[ 0.006561279296875, 0.006011962890625, -0.005096435546875, 0.006439208984375, -0.0042724609375, 0.01513671875, -0.00946044921875, 0.0079345703125, -0.0014495849609375, -0.006591796875, -0.01129150390625, -0.0306396484375, 0.002197265625, 0.007476806640625, -0.0101318359375, 0.0062866210...
[ 2806, 10644, 111, 5303, 130391, 6238, 32354, 7, 186, 4865, 16751, 52895, 108750, 50986, 1556, 142508, 10, 20625, 6002, 86531, 831, 765, 2816, 1884, 33079, 876, 47, 122776, 4153, 18, 360, 22288, 80019, 963, 2071, 7722, 23, 501, 104, 11651,...
[ 0.10205078125, 0.228515625, 0.08074951171875, 0.2166748046875, 0.236328125, 0.1629638671875, 0.2213134765625, 0.0894775390625, 0.045135498046875, 0.011322021484375, 0.1141357421875, 0.205078125, 0.221435546875, 0.167724609375, 0.1253662109375, 0.2196044921875, 0.04034423828125, 0.1...
embed
74994339_c1
74994339
haskell
1
’, namely ‘rechnen (Add1 a1 a2)’ In the expression: rechnen (Add1 a1 a2) Aufgabe.== rechnen (Add1 b1 b2) In an equation for ‘Aufgabe.==’: (Add1 a1 a2) Aufgabe.== (Add1 b1 b2) = rechnen (Add1 a1 a2) Aufgabe.== rechnen (Add1 b1 b2) • Could not deduce (Aufgabe.Eq Double) arising from a use of ‘Aufgabe.==’ from the context...
’, namely ‘rechnen (Add1 a1 a2)’ In the expression: rechnen (Add1 a1 a2) Aufgabe.== rechnen (Add1 b1 b2) In an equation for ‘Aufgabe.==’: (Add1 a1 a2) Aufgabe.== (Add1 b1 b2) = rechnen (Add1 a1 a2) Aufgabe.== rechnen (Add1 b1 b2) • Could not deduce (Aufgabe.Eq Double) arising from a use of ‘Aufgabe.==’ from the context...
[ -0.01611328125, -0.000263214111328125, -0.001983642578125, 0.0228271484375, -0.0032501220703125, -0.004486083984375, -0.0096435546875, -0.00775146484375, 0.000720977783203125, 0.00860595703125, -0.00518798828125, 0.0000820159912109375, -0.010009765625, 0.0135498046875, -0.00811767578125,...
[ 26, 110987, 204, 126329, 284, 4028, 418, 10, 10461, 360, 125195, 12, 15, 99211, 69112, 876, 28, 5490, 166206, 18018, 5, 2203, 191147, 959, 8, 106357, 864, 107172, 187, 4527, 43701, 1914, 822, 112, 647, 99091, 110527, 21635, 102522, 59557,...
[ 0.1180419921875, 0.10693359375, 0.0191802978515625, 0.305419921875, 0.04119873046875, 0.2012939453125, 0.0859375, 0.1180419921875, 0.1868896484375, 0.03131103515625, 0.2479248046875, 0.00677490234375, 0.00701904296875, 0.277587890625, 0.2418212890625, 0.04815673828125, 0.053283691406...
embed
75968589_c0
75968589
haskell
0
Title: Installing a haskell module and importing it in GHCI repl Problem title: Installing a haskell module and importing it in GHCI repl Tags: haskell Problem: Installing a haskell module and importing it in GHCI repl On a Mac, I ran "cabal install MissingH". It seemed to install fine. How do I import and use the func...
Installing a haskell module and importing it in GHCI repl Installing a haskell module and importing it in GHCI repl haskell Installing GHCI Installing a haskell module and importing it in GHCI repl On a Mac, I ran "cabal install MissingH". It seemed to install fine. How do I import and use the functions in MissingH How...
[ -0.002899169921875, -0.0111083984375, -0.004638671875, 0.0390625, -0.00897216796875, 0.01458740234375, 0.0205078125, 0.00104522705078125, -0.005584716796875, 0.005859375, -0.00897216796875, -0.056396484375, -0.00250244140625, -0.01531982421875, 0.0098876953125, -0.006622314453125, -0...
[ 107951, 1556, 142508, 88996, 24927, 41877, 17304, 456, 2424, 4727, 13028, 408, 3571, 20600, 16771, 214, 841, 115058, 5885, 136, 4527, 32354, 23, 1957, 765, 221, 2060, 135261, 2831, 137989, 71713, 959, 127887, 65998, 77336, 58735, 98169, 436, ...
[ 0.15234375, 0.1256103515625, 0.27587890625, 0.194091796875, 0.2069091796875, 0.11181640625, 0.1572265625, 0.03143310546875, 0.1357421875, 0.119384765625, 0.0292205810546875, 0.06341552734375, 0.162109375, 0.1844482421875, 0.1331787109375, 0.1414794921875, 0.2176513671875, 0.0100097...
embed
69514394_c0
69514394
haskell
0
Title: Function to find the most frequent element Problem title: Function to find the most frequent element Tags: list, haskell, map-function Problem: Function to find the most frequent element I am trying to code a function that returns the element that appears the most in a list. So far I have the following task :: E...
Function to find the most frequent element Function to find the most frequent element list haskell map-function x:xs Function to find the most frequent element I am trying to code a function that returns the element that appears the most in a list. So far I have the following occur is a function that takes a list and r...
[ 0.01055908203125, 0.012939453125, -0.007598876953125, -0.0213623046875, -0.004150390625, 0.002716064453125, -0.00016117095947265625, -0.0118408203125, 0.01519775390625, -0.030517578125, 0.0146484375, 0.005615234375, 0.0128173828125, 0.0125732421875, 0.003082275390625, -0.01446533203125...
[ 28670, 10763, 47, 7413, 70, 2684, 103351, 12830, 5303, 1556, 142508, 22288, 137175, 1022, 12, 425, 7, 31577, 18151, 32354, 30646, 135179, 23, 2060, 25632, 74918, 51776, 80836, 678, 80854, 107730, 41170, 20028, 108975, 27781, 133063, 363, 9638...
[ 0.154541015625, 0.049072265625, 0.057708740234375, 0.1781005859375, 0.08282470703125, 0.200439453125, 0.3095703125, 0.24609375, 0.1907958984375, 0.1463623046875, 0.2239990234375, 0.18603515625, 0.1668701171875, 0.033111572265625, 0.0198974609375, 0.0941162109375, 0.01239013671875, ...
embed
29653287_c0
29653287
haskell
0
Title: Why is there no type class for monoids on functors in Haskell? Problem title: Why is there no type class for monoids on functors in Haskell? Tags: monoids, typeclass, haskell, functor, alternative-functor Problem: Why is there no type class for monoids on functors in Haskell? I admit that this question is a bit ...
Why is there no type class for monoids on functors in Haskell? Why is there no type class for monoids on functors in Haskell? monoids typeclass haskell functor alternative-functor Why Haskell Functor Applicative Alternative Monad MonadPlus Why is there no type class for monoids on functors in Haskell? I admit that this...
[ -0.0059814453125, 0.0004215240478515625, -0.004974365234375, 0.01458740234375, -0.00445556640625, 0.00457763671875, 0.00157928466796875, -0.0164794921875, -0.0120849609375, -0.01513671875, -0.0042724609375, -0.025390625, -0.006103515625, -0.00244140625, -0.01025390625, -0.0115356445312...
[ 44084, 110, 10644, 18507, 22460, 30185, 7477, 18770, 20625, 142508, 2685, 100, 23, 67413, 1556, 30700, 16498, 28670, 11048, 103905, 60331, 71, 88225, 159975, 15400, 8306, 40099, 18025, 112199, 3334, 116287, 33342, 4785, 70270, 15490, 2663, 7108...
[ 0.0789794921875, 0.110595703125, 0.219482421875, 0.2283935546875, 0.1846923828125, 0.181884765625, 0.1485595703125, 0.134033203125, 0.123291015625, 0.2269287109375, 0.0126953125, 0.002532958984375, 0.0107421875, 0.1639404296875, 0.099853515625, 0.0953369140625, 0.060302734375, 0.09...
embed
32712084_c0
32712084
haskell
0
Title: Could I make Stack use my patched Cabal library? Problem title: Could I make Stack use my patched Cabal library? Tags: haskell-stack, haskell Problem: Could I make Stack use my patched Cabal library? Does anyone know if there exists an easy way to make Stack use specific patched version of Cabal library from my ...
Could I make Stack use my patched Cabal library? Could I make Stack use my patched Cabal library? haskell-stack haskell Could Stack Cabal stack.yaml Could I make Stack use my patched Cabal library? Does anyone know if there exists an easy way to make Stack use specific patched version of Cabal library from my GitHub re...
[ -0.006591796875, 0.006683349609375, 0.01055908203125, 0.0010986328125, -0.00031280517578125, 0.0096435546875, -0.014892578125, 0.0164794921875, 0.005279541015625, -0.00634765625, -0.002044677734375, -0.036376953125, -0.002838134765625, -0.00445556640625, 0.006378173828125, -0.010009765...
[ 191147, 87, 3249, 6512, 2594, 4527, 759, 110912, 297, 30438, 289, 35773, 1294, 1556, 142508, 590, 177261, 14520, 141, 23468, 3917, 29458, 11389, 527, 217, 140505, 64722, 31667, 174849, 831, 100, 12225, 3789, 98169, 40059, 4488, 678, 40140, ...
[ 0.109375, 0.006683349609375, 0.0714111328125, 0.2127685546875, 0.204345703125, 0.136474609375, 0.01287841796875, 0.191162109375, 0.057861328125, 0.2091064453125, 0.2119140625, 0.18505859375, 0.1107177734375, 0.0982666015625, 0.1910400390625, 0.16357421875, 0.2242431640625, 0.148925...
embed
55491659_c0
55491659
haskell
0
Title: How to reason about partially applied method chaining Problem title: How to reason about partially applied method chaining Tags: haskell, partial-application Problem: How to reason about partially applied method chaining I am trying to understand how to reason about the types for partial applied method chaining ...
How to reason about partially applied method chaining How to reason about partially applied method chaining haskell partial-application How How to reason about partially applied method chaining I am trying to understand how to reason about the types for partial applied method chaining . I do not understand why : :t (+)...
[ -0.00726318359375, 0.01190185546875, -0.00634765625, 0.0284423828125, 0.004913330078125, 0.01446533203125, -0.0224609375, -0.01153564453125, 0.0059814453125, -0.030029296875, 0.001190185546875, -0.054443359375, 0.004669189453125, 0.0189208984375, -0.01165771484375, -0.0155029296875, ...
[ 11249, 47, 31635, 1672, 2878, 25958, 190659, 55300, 1608, 14653, 1556, 142508, 289, 101687, 31577, 28219, 3642, 52895, 959, 15400, 152, 18, 22183, 51421, 54651, 83, 103607, 102817, 11, 5117, 27781, 16487, 3871, 6713, 27117, 10, 8108, 10461, ...
[ 0.084228515625, 0.045928955078125, 0.2342529296875, 0.0543212890625, 0.180908203125, 0.07958984375, 0.17138671875, 0.1759033203125, 0.143310546875, 0.1407470703125, 0.1209716796875, 0.22021484375, 0.07635498046875, 0.1722412109375, 0.007781982421875, 0.089111328125, 0.036773681640625...
embed
34146190_c0
34146190
haskell
0
Title: Is it possible to use template haskell to get the name of the current file? Problem title: Is it possible to use template haskell to get the name of the current file? Tags: haskell, template-haskell Problem: Is it possible to use template haskell to get the name of the current file? The closest I can see is usin...
Is it possible to use template haskell to get the name of the current file? Is it possible to use template haskell to get the name of the current file? haskell template-haskell Language.Haskell.TH Language.Haskell.TH.Syntax LANGUAGE TemplateHaskell LitE StringL Module PkgName ModName Main Is it possible to use template...
[ 0.0037994384765625, 0.0021514892578125, 0.0079345703125, 0.0257568359375, -0.0174560546875, 0.01275634765625, 0.0191650390625, 0.00518798828125, -0.01611328125, -0.058349609375, 0.00238037109375, -0.009521484375, -0.0150146484375, 0.002410888671875, -0.003997802734375, 0.0274658203125,...
[ 2071, 442, 7722, 4527, 110934, 1556, 142508, 47, 2046, 70, 9351, 111, 43581, 11435, 10557, 83658, 6495, 7, 23415, 86531, 98064, 196631, 27668, 647, 23351, 214, 866, 63014, 8517, 163612, 16269, 12321, 20903, 271, 831, 1957, 17368, 456, 40383...
[ 0.03118896484375, 0.0438232421875, 0.1898193359375, 0.137939453125, 0.314697265625, 0.1668701171875, 0.251708984375, 0.0526123046875, 0.13330078125, 0.08245849609375, 0.1781005859375, 0.1024169921875, 0.19384765625, 0.2086181640625, 0.09710693359375, 0.1112060546875, 0.083984375, 0...
embed
9863451_c0
9863451
haskell
0
Title: Is there a monadic version of Arbitrary to use with QuickCheck? Problem title: Is there a monadic version of Arbitrary to use with QuickCheck? Tags: testing, monads, quickcheck, haskell, functional-programming Problem: Is there a monadic version of Arbitrary to use with QuickCheck? When I want to test pure code ...
Is there a monadic version of Arbitrary to use with QuickCheck? Is there a monadic version of Arbitrary to use with QuickCheck? testing monads quickcheck haskell functional-programming Arbitrary QuickCheck Test.QuickCheck.Monadic Is there a monadic version of Arbitrary to use with QuickCheck? When I want to test pure c...
[ -0.0198974609375, 0.00445556640625, 0.0021209716796875, 0.00078582763671875, 0, 0.021484375, 0.003662109375, -0.0118408203125, -0.002899169921875, -0.0267333984375, 0.000713348388671875, 0.0023193359375, -0.00469970703125, -0.00823974609375, 0.014892578125, -0.0164794921875, -0.02307...
[ 2667, 11, 18403, 11389, 242522, 1294, 4527, 678, 89038, 202567, 134234, 712, 63773, 78292, 1556, 142508, 123309, 28966, 8647, 96010, 46674, 2685, 10, 3034, 34166, 18151, 17368, 27983, 33022, 110527, 2594, 74413, 139392, 2053, 56566, 43701, 1266...
[ 0.12353515625, 0.0989990234375, 0.1322021484375, 0.143310546875, 0.2171630859375, 0.1881103515625, 0.1158447265625, 0.088623046875, 0.162109375, 0.29296875, 0.1468505859375, 0.1075439453125, 0.094482421875, 0.239501953125, 0.07122802734375, 0.1636962890625, 0.09136962890625, 0.0604...
embed
68245450_c0
68245450
haskell
0
Title: trying to combine 'e' as a char and 'x' as string, after combining remove all the letters that are repeated Problem title: trying to combine 'e' as a char and 'x' as string, after combining remove all the letters that are repeated Tags: haskell Problem: trying to combine '...
trying to combine 'e' as a char and 'x' as string, after combining remove all the letters that are repeated trying to combine 'e' as a char and 'x' as string, after combining remove all the letters that are repeated haskell h:t trying to combine 'e' as a char and 'x' as string, a...
[ 0.0125732421875, 0.01171875, -0.0047607421875, 0.0201416015625, 0.000804901123046875, 0.01708984375, 0.008056640625, 0.0025634765625, 0.01470947265625, 0.005889892578125, 0.00897216796875, -0.00958251953125, 0.023193359375, -0.003814697265625, -0.023193359375, 0.0218505859375, 0.0111...
[ 31577, 70163, 3768, 13, 237, 21441, 425, 79315, 7103, 375, 964, 87388, 756, 120820, 119140, 297, 136, 1556, 142508, 1096, 18, 450, 621, 2673, 51484, 9014, 3688, 1543, 3714, 44691, 18151, 62816, 678, 12765, 2174, 31330, 111, 127, 23, 46741...
[ 0.149658203125, 0.2093505859375, 0.118896484375, 0.14453125, 0.050018310546875, 0.148681640625, 0.1285400390625, 0.2047119140625, 0.0777587890625, 0.09197998046875, 0.152099609375, 0.141845703125, 0.04156494140625, 0.1619873046875, 0.2178955078125, 0.00335693359375, 0.04718017578125,...
embed
32104971_c0
32104971
haskell
0
Title: Haskell - How to get the system OS directory? Problem title: Haskell - How to get the system OS directory? Tags: haskell Problem: Haskell - How to get the system OS directory? The directory library contains many helper methods for getting certain reserved directories. However, as of the latest version (1.2.3.1),...
Haskell - How to get the system OS directory? Haskell - How to get the system OS directory? haskell Haskell How Haskell - How to get the system OS directory? The directory library contains many helper methods for getting certain reserved directories. However, as of the latest version (1.2.3.1), there does not appear to...
[ 0.007049560546875, 0.01104736328125, -0.0024871826171875, 0.007293701171875, -0.01116943359375, 0.01068115234375, -0.0093994140625, -0.005645751953125, -0.0145263671875, -0.0260009765625, 0.00017547607421875, 0.01251220703125, -0.0152587890625, -0.0015716552734375, -0.0220947265625, -0...
[ 20625, 142508, 11249, 2046, 70, 5426, 11787, 14364, 53, 47, 1556, 35773, 1294, 70541, 5941, 4358, 56, 150624, 20949, 24233, 70488, 3387, 42850, 11389, 48400, 97109, 959, 108975, 32354, 831, 441, 12, 41872, 43342, 41206, 84293, 184911, 30675, ...
[ 0.147216796875, 0.260009765625, 0.0755615234375, 0.1475830078125, 0.05126953125, 0.20947265625, 0.273193359375, 0.19775390625, 0.15283203125, 0.033660888671875, 0.10662841796875, 0.144775390625, 0.042144775390625, 0.00384521484375, 0.006561279296875, 0.1209716796875, 0.05056762695312...
embed
57809322_c0
57809322
haskell
0
Title: How to fix "error: parse error on input ‘=’" in Haskell Problem title: How to fix "error: parse error on input ‘=’" in Haskell Tags: haskell Problem: How to fix "error: parse error on input ‘=’" in Haskell I'm just trying to see if WinGHCi works for Haskell programming, and I don't know the r...
How to fix "error: parse error on input ‘=’" in Haskell How to fix "error: parse error on input ‘=’" in Haskell haskell How Haskell x:xs Perhaps e.g How to fix "error: parse error on input ‘=’" in Haskell I'm just trying to see if WinGHCi works for Haskell programming, and I don't know the reason wh...
[ -0.009765625, 0.00799560546875, 0.00122833251953125, -0.01806640625, 0.01019287109375, 0.006866455078125, -0.005340576171875, -0.00909423828125, 0.00091552734375, -0.0087890625, 0.0052490234375, -0.0159912109375, 0.018310546875, 0.01031494140625, 0.01226806640625, -0.005126953125, -0...
[ 11249, 47, 30022, 188800, 366, 184, 18499, 98, 107730, 1369, 41502, 20625, 142508, 23, 1556, 12, 425, 7, 181799, 17686, 41877, 40658, 43240, 100, 56037, 3714, 31635, 45831, 36917, 7108, 38415, 4488, 831, 77947 ]
[ 0.06268310546875, 0.027984619140625, 0.1617431640625, 0.1824951171875, 0.164794921875, 0.177978515625, 0.219970703125, 0.09490966796875, 0.2149658203125, 0.1993408203125, 0.06317138671875, 0.1353759765625, 0.2445068359375, 0.052459716796875, 0.115234375, 0.008209228515625, 0.07629394...
embed
59993793_c0
59993793
haskell
0
Title: Repeatedly append to string haskell Problem title: Repeatedly append to string haskell Tags: haskell Problem: Repeatedly append to string haskell Hi i'm new to haskell and am unsure how to approach it. I have the following code so far ask :: String -> IO () ask prompt = do putStrLn prompt line <- getLine if line...
Repeatedly append to string haskell Repeatedly append to string haskell haskell Repeatedly Repeatedly append to string haskell Hi i'm new to haskell and am unsure how to approach it. I have the following code so far i'm trying to make it so that when someone presses enter without typing anything, the repeated prompt wi...
[ -0.02734375, 0.008056640625, -0.02099609375, 0.021484375, -0.00665283203125, 0.011962890625, 0.0272216796875, 0.0091552734375, 0.0113525390625, 0.0032501220703125, 0.01080322265625, -0.02294921875, -0.01171875, 0.0299072265625, -0.002105712890625, 0.006866455078125, 0.01153564453125,...
[ 33742, 13, 27686, 538, 114689, 71, 47, 79315, 1556, 142508, 2673, 3525, 51646, 3642, 51515, 25632, 18151, 2060, 31577, 3249, 221, 3229, 22008, 30501, 30957, 15490, 11417, 23937, 119140, 297, 105876, 765, 4173, 52, 2398, 3564, 11907, 1733, 7...
[ 0.195556640625, 0.1641845703125, 0.1397705078125, 0.0218963623046875, 0.22021484375, 0.10693359375, 0.1068115234375, 0.21826171875, 0.170166015625, 0.2244873046875, 0.003631591796875, 0.047088623046875, 0.0426025390625, 0.000091552734375, 0.099609375, 0.05712890625, 0.149169921875, ...
embed
61794525_c1
61794525
haskell
1
I can imagine two generic solutions: Higher order functions: The function U.placeOrder takes an additional function argument, say U.OrderDto -> U.PersistenceResult . This function is implemented in the persistence ( P ) module, but it depends on types of the U module, whereas the U module does not need to declare a de...
I can imagine two generic solutions: Higher order functions: The function U.placeOrder takes an additional function argument, say U.OrderDto -> U.PersistenceResult . This function is implemented in the persistence ( P ) module, but it depends on types of the U module, whereas the U module does not need to declare a de...
[ -0.0023040771484375, 0.01055908203125, -0.0027618408203125, -0.01043701171875, -0.002197265625, 0.015625, 0.0064697265625, -0.01031494140625, 0.0213623046875, -0.006561279296875, 0.002716064453125, -0.01129150390625, 0.01123046875, -0.01031494140625, -0.0169677734375, -0.0081787109375,...
[ 831, 28987, 6626, 189534, 51347, 12, 19694, 56, 12989, 32354, 345, 5, 23935, 143045, 51776, 78301, 10750, 397, 188, 33079, 15277, 57702, 6620, 4332, 7, 7136, 6, 29479, 70560, 436, 88996, 56566, 52895, 70, 159978, 42548, 27771, 60457, 61112,...
[ 0.046478271484375, 0.1260986328125, 0.155029296875, 0.173828125, 0.2130126953125, 0.017974853515625, 0.07330322265625, 0.1572265625, 0.193359375, 0.2178955078125, 0.18798828125, 0.04833984375, 0.210205078125, 0.269775390625, 0.08123779296875, 0.106201171875, 0.22119140625, 0.007629...
embed
10268052_c0
10268052
haskell
0
Title: Generating code for another language in Haskell Problem title: Generating code for another language in Haskell Tags: code-generation, haskell, installscript Problem: Generating code for another language in Haskell I want to generate code for another language in Haskell, but I'm puzzled on how to approach this pr...
Generating code for another language in Haskell Generating code for another language in Haskell code-generation haskell installscript Generating Haskell Generating code for another language in Haskell I want to generate code for another language in Haskell, but I'm puzzled on how to approach this problem. I'm looking f...
[ 0.019287109375, 0.017578125, 0.01416015625, 0.017333984375, -0.0184326171875, -0.0021209716796875, -0.01397705078125, -0.02392578125, -0.003936767578125, -0.025390625, -0.005950927734375, -0.0145263671875, -0.0159912109375, 0.01226806640625, -0.0140380859375, -0.0034027099609375, 0.0...
[ 155370, 1916, 18151, 100, 15700, 46876, 23, 20625, 142508, 48281, 1556, 20600, 32032, 3444, 139392, 104192, 51515, 2967, 164789, 27650, 18811, 80234, 58093, 107951, 147845, 91067, 17997, 5122, 27781, 141621, 64549, 212423, 52895, 46517 ]
[ 0.166748046875, 0.021453857421875, 0.2117919921875, 0.1048583984375, 0.1324462890625, 0.205078125, 0.0179901123046875, 0.136962890625, 0.2110595703125, 0.1439208984375, 0.125, 0.1607666015625, 0.1883544921875, 0.025482177734375, 0.1746826171875, 0.0201263427734375, 0.0350341796875, ...
embed
34234517_c0
34234517
haskell
0
Title: How to map a function over a specific range of a Vector in Haskell Problem title: How to map a function over a specific range of a Vector in Haskell Tags: vector, haskell Problem: How to map a function over a specific range of a Vector in Haskell I have a very large Vector a and I want to map a function over a s...
How to map a function over a specific range of a Vector in Haskell How to map a function over a specific range of a Vector in Haskell vector haskell How Vector Haskell How to map a function over a specific range of a Vector in Haskell I have a very large Vector a and I want to map a function over a small range. For exa...
[ -0.028076171875, 0.015625, 0.0017852783203125, 0.0081787109375, -0.0107421875, 0.000492095947265625, -0.0223388671875, -0.00994873046875, 0.00115966796875, -0.0004367828369140625, -0.00885009765625, 0.01141357421875, -0.00433349609375, 0.01318359375, 0.0177001953125, -0.00811767578125,...
[ 11249, 47, 22288, 32354, 645, 29458, 37457, 2609, 18770, 23, 20625, 142508, 173, 1556, 10, 765, 4552, 21334, 3444, 19336, 13267, 4382, 1238, 142424, 136044, 805, 80260, 30646, 64194, 150011, 2965, 3917, 54, 903, 9803, 2053, 45646, 12601, 84...
[ 0.1119384765625, 0.056488037109375, 0.235107421875, 0.2398681640625, 0.1666259765625, 0.193603515625, 0.20556640625, 0.19580078125, 0.1961669921875, 0.05352783203125, 0.15576171875, 0.256591796875, 0.15771484375, 0.14111328125, 0.07537841796875, 0.0147705078125, 0.046417236328125, ...
embed
17122695_c0
17122695
haskell
0
Title: Create arbitrarily nested list structure in Haskell Problem title: Create arbitrarily nested list structure in Haskell Tags: haskell Problem: Create arbitrarily nested list structure in Haskell given the problem from: http://arunrocks.com/treeify_-_converting_tree_data_structures/ For a hobby project, I was face...
Create arbitrarily nested list structure in Haskell Create arbitrarily nested list structure in Haskell haskell Create Haskell Create arbitrarily nested list structure in Haskell given the problem from: http://arunrocks.com/treeify_-_converting_tree_data_structures/ For a hobby project, I was faced with an interesting ...
[ 0.0025177001953125, 0.0228271484375, -0.002899169921875, 0.01007080078125, 0.0238037109375, 0.0322265625, -0.0103759765625, -0.01531982421875, 0.004547119140625, 0.00026702880859375, -0.006072998046875, -0.05517578125, 0.013916015625, 0.0390625, -0.00144195556640625, 0.00213623046875, ...
[ 151313, 61799, 416, 538, 8512, 71, 5303, 45646, 20625, 142508, 23, 1556, 2967, 32491, 62600, 40383, 2271, 814, 10135, 137656, 63645, 13452, 2577, 49041, 96760, 49878, 18811, 53201, 3934, 2053, 33342, 1884, 903, 757, 116, 138, 106, 98423, 14...
[ 0.1380615234375, 0.1575927734375, 0.1153564453125, 0.050537109375, 0.26025390625, 0.1259765625, 0.2330322265625, 0.259521484375, 0.1558837890625, 0.2418212890625, 0.0298309326171875, 0.13427734375, 0.0833740234375, 0.05548095703125, 0.1593017578125, 0.1815185546875, 0.009918212890625...
embed
50349892_c0
50349892
haskell
0
Title: Override just a few cases of data in Eq instance implementation Problem title: Override just a few cases of data in Eq instance implementation Tags: haskell Problem: Override just a few cases of data in Eq instance implementation I have a data type data MyType = Any | A | B | C ... and the semantics of "Any" is ...
Override just a few cases of data in Eq instance implementation Override just a few cases of data in Eq instance implementation haskell Override MyType Any Override just a few cases of data in Eq instance implementation I have a data type and the semantics of "Any" is that it should be equivalent to all other cases. I ...
[ -0.0027313232421875, 0.0030059814453125, 0.01361083984375, 0.0257568359375, 0.0118408203125, -0.0087890625, 0.025634765625, -0.0007171630859375, 0.0264892578125, 0.025146484375, -0.01153564453125, 0.00128936767578125, 0.024658203125, 0.0128173828125, -0.0107421875, 0.0108642578125, 0...
[ 9578, 416, 112, 1660, 10846, 50218, 2053, 241, 864, 110527, 208124, 1556, 142508, 2646, 196707, 28541, 111, 765, 10644, 484, 109109, 284, 299, 5608, 183234, 756, 3789, 17569, 2684, 27650, 3917, 29479, 10002, 72134, 1957, 71864, 57346, 78, 1...
[ 0.1026611328125, 0.2001953125, 0.044952392578125, 0.04229736328125, 0.12646484375, 0.1678466796875, 0.148193359375, 0.06207275390625, 0.214111328125, 0.241455078125, 0.15283203125, 0.1341552734375, 0.2117919921875, 0.11328125, 0.238037109375, 0.13232421875, 0.018218994140625, 0.006...
embed
28308930_c0
28308930
haskell
0
Title: Couldn&#x27;t match expected type `()&#x27; with actual type `Int&#x27; Problem title: Couldn&#x27;t match expected type `()&#x27; with actual type `Int&#x27; Tags: ghc, haskell, gtk2hs Problem: Couldn't match expected type `()' with actual type `Int' I have a strange error with Haskell and Gtk2Hs. I try to set ...
Couldn&#x27;t match expected type `()&#x27; with actual type `Int&#x27; Couldn&#x27;t match expected type `()&#x27; with actual type `Int&#x27; ghc haskell gtk2hs Couldn EntryClass ReadAttr gtk2hs Couldn't match expected type `()' with actual type `Int' I have a strange error with Haskell and Gtk2Hs. I try to set the c...
[ 0.00007724761962890625, 0.0242919921875, 0.00848388671875, -0.00494384765625, -0.00250244140625, -0.000553131103515625, -0.025146484375, 0.00909423828125, -0.003936767578125, 0.0031585693359375, 0.0245361328125, -0.031982421875, 0.003204345703125, 0.000560760498046875, 0.0003013610839843...
[ 191147, 3768, 18, 14858, 84751, 10644, 132, 678, 8561, 4153, 31380, 238, 1556, 142508, 706, 31472, 304, 127, 19, 357, 15123, 140803, 4764, 28848, 4448, 7, 114453, 18499, 20625, 136, 527, 841, 9790, 5423, 70, 13810, 42, 19069, 23, 7986, ...
[ 0.07208251953125, 0.12939453125, 0.107177734375, 0.1907958984375, 0.1666259765625, 0.1805419921875, 0.084716796875, 0.0931396484375, 0.1187744140625, 0.07952880859375, 0.055267333984375, 0.0640869140625, 0.120361328125, 0.2403564453125, 0.0064697265625, 0.14990234375, 0.1221923828125...
embed
44130958_c0
44130958
haskell
0
Title: Understanding currying and HOFs Problem title: Understanding currying and HOFs Tags: haskell, higher-order-functions, functional-programming, currying Problem: Understanding currying and HOFs I am currently studying functional programming and it's most important feature : Higher Order Functions. It's not as crys...
Understanding currying and HOFs Understanding currying and HOFs haskell higher-order-functions functional-programming currying Understanding HOFs Curried Num Understanding currying and HOFs I am currently studying functional programming and it's most important feature : Higher Order Functions. It's not as crystal clear...
[ 0.016845703125, -0.0034027099609375, 0.006256103515625, 0.01806640625, 0.013916015625, 0.0106201171875, 0.002716064453125, -0.0400390625, 0.0096435546875, -0.0224609375, 0.011474609375, -0.044921875, -0.01287841796875, 0.00028228759765625, -0.00408935546875, -0.032958984375, 0.000356...
[ 9626, 144057, 198555, 214, 136, 21997, 919, 7, 1556, 142508, 77546, 80596, 137175, 123309, 28966, 17065, 46572, 52782, 82424, 35187, 56037, 449, 2684, 5526, 60213, 19694, 56, 81206, 28670, 10763, 224128, 34735, 28219, 169123, 3642, 4488, 137399...
[ 0.111083984375, 0.112060546875, 0.2352294921875, 0.1729736328125, 0.08758544921875, 0.179931640625, 0.2025146484375, 0.1058349609375, 0.111328125, 0.23583984375, 0.09344482421875, 0.170654296875, 0.1798095703125, 0.1473388671875, 0.134521484375, 0.1510009765625, 0.209716796875, 0.2...
embed
46086821_c0
46086821
haskell
0
Title: Conditionally Enabling Nix within a Stack Project Depending on Whether You&#x27;re Running NixOS Problem title: Conditionally Enabling Nix within a Stack Project Depending on Whether You&#x27;re Running NixOS Tags: haskell-stack, nix, haskell Problem: Conditionally Enabling Nix within a Stack Project Depending o...
Conditionally Enabling Nix within a Stack Project Depending on Whether You&#x27;re Running NixOS Conditionally Enabling Nix within a Stack Project Depending on Whether You&#x27;re Running NixOS haskell-stack nix haskell Conditionally Enabling Nix Stack Project Depending Whether You Running NixOS stack.yaml Conditionall...
[ -0.00506591796875, 0.007415771484375, 0.006439208984375, -0.01318359375, 0.001861572265625, -0.00034332275390625, 0.00147247314453125, -0.01031494140625, -0.0279541015625, 0.01104736328125, 0.007110595703125, -0.004364013671875, 0.00183868408203125, 0.0093994140625, -0.0026092529296875, ...
[ 46347, 43315, 357, 11, 79298, 1520, 425, 28032, 6512, 2594, 27331, 96819, 156458, 3768, 28398, 592, 7285, 1556, 142508, 590, 300, 177261, 14520, 141, 51042, 98, 26367, 64209, 23, 759, 5, 442, 4488, 15649, 14847, 11675, 13452, 351, 839, 40...
[ 0.160400390625, 0.1075439453125, 0.0738525390625, 0.1204833984375, 0.0222930908203125, 0.2027587890625, 0.2186279296875, 0.1654052734375, 0.171630859375, 0.146728515625, 0.1429443359375, 0.052154541015625, 0.0228118896484375, 0.06072998046875, 0.0975341796875, 0.0225677490234375, 0.1...
embed
46853074_c1
46853074
haskell
1
(queryTable ModelB.table) (\(ma, mb) -> foreignA ma .== primB mb) But this does not work. I've also tried multiple variants, in particular I replaced the type signature in query to explicitly state the nullability of the columns at the right: query :: Query (ModelAColumn, (Column (Nullable PGUuid), Column (Nullable PG...
(queryTable ModelB.table) (\(ma, mb) -> foreignA ma .== primB mb) But this does not work. I've also tried multiple variants, in particular I replaced the type signature in query to explicitly state the nullability of the columns at the right: query :: Query (ModelAColumn, (Column (Nullable PGUuid), Column (Nullable PG...
[ -0.00180816650390625, 0.0067138671875, -0.00848388671875, 0.0213623046875, -0.007293701171875, 0.0098876953125, -0.00001043081283569336, -0.031494140625, 0.0166015625, -0.006866455078125, -0.01275634765625, 0.018798828125, -0.00592041015625, 0.0169677734375, -0.029296875, -0.0077819824...
[ 944, 1294, 618, 2886, 13293, 571, 22819, 192, 39369, 33079, 110613, 284, 291, 69112, 29810, 4966, 903, 14602, 959, 4488, 37842, 48716, 20117, 91995, 10644, 138256, 41, 143726, 11341, 9229, 83259, 3365, 316, 1779, 99, 7108, 58836, 53, 140290...
[ 0.0950927734375, 0.1622314453125, 0.1435546875, 0.156005859375, 0.197021484375, 0.1790771484375, 0.2109375, 0.1099853515625, 0.1551513671875, 0.00732421875, 0.2120361328125, 0.1400146484375, 0.1417236328125, 0.034576416015625, 0.099365234375, 0.007720947265625, 0.098388671875, 0.04...
embed
30611319_c0
30611319
haskell
0
Title: Leksah / Haskell : search for functions that operate on a given type (say [a], [Char]) Problem title: Leksah / Haskell : search for functions that operate on a given type (say [a], [Char]) Tags: leksah, ide, haskell Problem: Leksah / Haskell : search for functions that operate on a given type (say [a], [Char]) I...
Leksah / Haskell : search for functions that operate on a given type (say [a], [Char]) Leksah / Haskell : search for functions that operate on a given type (say [a], [Char]) leksah ide haskell Leksah Haskell Char Leksah / Haskell : search for functions that operate on a given type (say [a], [Char]) Is there an easy way...
[ 0.00482177734375, -0.00830078125, 0.012451171875, 0.0245361328125, -0.0240478515625, -0.00714111328125, 0.025390625, -0.00104522705078125, -0.007415771484375, -0.0235595703125, 0.0034942626953125, -0.031005859375, -0.01177978515625, 0.0115966796875, -0.0111083984375, 0.0006980895996093...
[ 53273, 23474, 248, 20625, 142508, 33938, 100, 32354, 7, 450, 160404, 98, 34475, 10644, 20347, 11, 84068, 17143, 5415, 1556, 21656, 2685, 23468, 3917, 47, 5154, 378, 360, 36497, 55300, 3444, 26366, 756, 8966, 831, 16940, 707, 5608, 54, 875...
[ 0.17138671875, 0.2408447265625, 0.07952880859375, 0.1358642578125, 0.2529296875, 0.236083984375, 0.1441650390625, 0.2275390625, 0.01544189453125, 0.045562744140625, 0.1929931640625, 0.13916015625, 0.0689697265625, 0.2177734375, 0.029876708984375, 0.0968017578125, 0.201171875, 0.135...
embed
33170644_c0
33170644
haskell
0
Title: Function in a function testing prog Problem title: Function in a function testing prog Tags: haskell Problem: Function in a function testing prog I have a question about a selecting process. I want to make a program where you type in a operation, a value and a list. For example: programName (>) 4 [1,2,4,2,5] , a...
Function in a function testing prog Function in a function testing prog haskell x:xs Function in a function testing prog I have a question about a selecting process. I want to make a program where you type in a operation, a value and a list. For example: programName (>) 4 [1,2,4,2,5] , and it should return: [1,2,3] . I...
[ 0.00238037109375, 0.0013885498046875, 0.009521484375, -0.0028839111328125, -0.008544921875, -0.006988525390625, -0.0074462890625, 0.0025177001953125, 0.022705078125, 0.00457763671875, 0.0289306640625, 0.00921630859375, 0.000919342041015625, -0.0028228759765625, 0.0002803802490234375, -...
[ 28670, 10763, 23, 10, 32354, 134234, 67973, 1556, 142508, 1022, 12, 425, 9655, 36849, 214, 9433, 3444, 3249, 1528, 10644, 41018, 34292, 5303, 163612, 2740, 201, 133063, 617, 71928, 136, 5608, 30646, 155761, 3642, 5646, 51776, 2367, 105950, ...
[ 0.21484375, 0.07391357421875, 0.0908203125, 0.033935546875, 0.21435546875, 0.259765625, 0.19921875, 0.1185302734375, 0.1971435546875, 0.0181121826171875, 0.004852294921875, 0.06500244140625, 0.0389404296875, 0.1192626953125, 0.03759765625, 0.079345703125, 0.0606689453125, 0.0430603...
embed
34994028_c0
34994028
haskell
0
Title: To prove equality of two function definitions inductively Problem title: To prove equality of two function definitions inductively Tags: induction, equational-reasoning, haskell Problem: To prove equality of two function definitions inductively How do I do the induction to establish the statement moll n = doll n...
To prove equality of two function definitions inductively To prove equality of two function definitions inductively induction equational-reasoning haskell m.1 n-1 m.2 d.1 d.2 To prove equality of two function definitions inductively How do I do the induction to establish the statement moll n = doll n , with I tried to ...
[ 0.00360107421875, -0.00592041015625, -0.00022411346435546875, 0.02880859375, 0.0025482177734375, -0.000640869140625, -0.004913330078125, -0.012451171875, 0.0111083984375, -0.0162353515625, -0.00811767578125, -0.00994873046875, -0.01141357421875, 0.00133514404296875, 0.0118408203125, 0....
[ 23534, 28, 161789, 6626, 32354, 80934, 135989, 4935, 23, 77391, 13722, 1283, 1681, 1556, 142508, 347, 418, 653, 5759, 304, 104, 717, 7, 137633, 63805, 931, 1181, 2203, 54, 3647, 7225, 757, 21748, 7639, 450, 112892 ]
[ 0.172119140625, 0.089599609375, 0.235107421875, 0.143798828125, 0.1767578125, 0.200927734375, 0.2041015625, 0.10711669921875, 0.1322021484375, 0.182861328125, 0.10467529296875, 0.0003662109375, 0.07281494140625, 0.1136474609375, 0.198974609375, 0.0487060546875, 0.002471923828125, 0...
embed
37903463_c0
37903463
haskell
0
Title: What does it mean to say that &quot;Haskell has only universally quantified types?&quot; Problem title: What does it mean to say that &quot;Haskell has only universally quantified types?&quot; Tags: type-systems, haskell, types Problem: What does it mean to say that "Haskell has only universally quantified types...
What does it mean to say that &quot;Haskell has only universally quantified types?&quot; What does it mean to say that &quot;Haskell has only universally quantified types?&quot; type-systems haskell types What Haskell What does it mean to say that "Haskell has only universally quantified types?" While reading this Hask...
[ 0.00860595703125, 0.02685546875, 0.00384521484375, -0.0284423828125, -0.009033203125, -0.0004673004150390625, 0.0146484375, -0.0140380859375, -0.0026397705078125, 0.006317138671875, -0.01324462890625, -0.044677734375, 0.0089111328125, -0.0269775390625, -0.029541015625, 0.0167236328125,...
[ 29459, 5154, 6495, 7, 142508, 1556, 4734, 32813, 538, 55230, 47314, 52895, 10644, 16751, 4865, 20625, 57143, 10015, 27781, 351, 49545, 25958, 6713, 56037, 46876, 60213 ]
[ 0.1192626953125, 0.009918212890625, 0.102783203125, 0.101318359375, 0.2489013671875, 0.0887451171875, 0.10107421875, 0.1417236328125, 0.04632568359375, 0.1549072265625, 0.12353515625, 0.2196044921875, 0.119140625, 0.080322265625, 0.037017822265625, 0.1339111328125, 0.0233306884765625...
embed
19749350_c0
19749350
haskell
0
Title: Haskell how to generate this infinite list? Problem title: Haskell how to generate this infinite list? Tags: infinite, list, haskell, cyclic Problem: Haskell how to generate this infinite list? I saw this code to generate Fibonacci numbers. fibs = 1:1:(zipWith (+) fibs (tail fibs)) Can a similar styled code be w...
Haskell how to generate this infinite list? Haskell how to generate this infinite list? infinite list haskell cyclic Haskell Haskell how to generate this infinite list? I saw this code to generate Fibonacci numbers. fibs = 1:1:(zipWith (+) fibs (tail fibs)) Can a similar styled code be written to generate the infinite ...
[ 0.021728515625, 0.00185394287109375, 0.00250244140625, 0.00909423828125, -0.00159454345703125, -0.0001544952392578125, 0.00836181640625, -0.00726318359375, 0.0052490234375, -0.044677734375, -0.0042724609375, -0.0021514892578125, 0.003448486328125, 0.019287109375, -0.0020751953125, 0.02...
[ 20625, 142508, 3642, 47, 139392, 903, 54241, 13, 5303, 1556, 187830, 238, 24124, 18151, 3698, 20990, 52544, 101935, 809, 16145, 2203, 58162, 50836, 194583, 22183, 46741, 4171, 21373, 20623, 59121, 68252, 5, 3126, 45646, 27781, 37842, 61924, 2...
[ 0.146484375, 0.2425537109375, 0.0933837890625, 0.05316162109375, 0.233154296875, 0.1328125, 0.1883544921875, 0.104736328125, 0.238525390625, 0.132568359375, 0.14453125, 0.04412841796875, 0.0665283203125, 0.140625, 0.09033203125, 0.1370849609375, 0.1600341796875, 0.164794921875, 0...
embed
79419373_c0
79419373
haskell
0
Title: Does using undefined as the callstack result in a compiler error? Problem title: Does using undefined as the callstack result in a compiler error? Tags: ghc, implicit-parameters, callstack, compiler-errors, haskell Problem: Does using undefined as the callstack result in a compiler error? Please report this as a...
Does using undefined as the callstack result in a compiler error? Does using undefined as the callstack result in a compiler error? ghc implicit-parameters callstack compiler-errors haskell GHC.Utils.Error undefined HasCallStack Does ImplicitParams GHC InScope wild_00 dIP_a79b Call CallStack Utils Panic.hs:190:37 ghc-9...
[ 0.01007080078125, -0.00113677978515625, 0.01104736328125, 0.0016021728515625, -0.01458740234375, 0.005706787109375, -0.0020599365234375, -0.0157470703125, -0.0164794921875, -0.028076171875, -0.01177978515625, -0.033447265625, 0.00007343292236328125, 0.009033203125, 0.013671875, 0.01397...
[ 101790, 17368, 9232, 5983, 297, 237, 11782, 590, 2594, 16750, 9969, 34759, 18499, 31380, 238, 165164, 6276, 29089, 188800, 1556, 142508, 73265, 106742, 7870, 18468, 31611, 20625, 441, 5584, 42378, 29128, 60923, 28636, 8256, 527, 360, 61278, 6...
[ 0.039886474609375, 0.1102294921875, 0.151123046875, 0.2059326171875, 0.10986328125, 0.07293701171875, 0.1534423828125, 0.171630859375, 0.197265625, 0.0927734375, 0.1417236328125, 0.1751708984375, 0.1693115234375, 0.053466796875, 0.054962158203125, 0.1917724609375, 0.031768798828125, ...
embed
29741183_c0
29741183
haskell
0
Title: =~ function arguments in reverse order Problem title: =~ function arguments in reverse order Tags: regex, haskell Problem: =~ function arguments in reverse order Bool > "my left foot" =~ "foo" :: Bool =~ is an infix operator from Text.Regex.Posix package and here, the target string is on the left and the pattern...
=~ function arguments in reverse order =~ function arguments in reverse order regex haskell Bool Text.Regex.Posix Enter =~ function arguments in reverse order Bool > "my left foot" =~ "foo" :: Bool =~ is an infix operator from Text.Regex.Posix package and here, the target string is on the left and the pattern string is...
[ -0.01806640625, 0.01318359375, 0.020263671875, 0.037353515625, -0.000553131103515625, 0.03173828125, 0.01611328125, 0.0206298828125, -0.00830078125, -0.026611328125, 0.0299072265625, 0.01141357421875, -0.0004673004150390625, -0.0107421875, -0.00689697265625, -0.0128173828125, 0.00668...
[ 2203, 2306, 32354, 10750, 23, 39531, 184, 12989, 6835, 3355, 1556, 142508, 2460, 929, 24129, 54601, 7192, 4084, 60816, 1176, 25737, 57616, 3584, 31, 1984, 55923, 39933, 7, 98169, 3688, 30388, 79315, 83, 98, 70, 103510, 7108, 11853, 30482, ...
[ 0.1446533203125, 0.1822509765625, 0.1834716796875, 0.2379150390625, 0.0823974609375, 0.2083740234375, 0.1417236328125, 0.1947021484375, 0.121826171875, 0.155517578125, 0.0953369140625, 0.2174072265625, 0.0811767578125, 0.1820068359375, 0.14208984375, 0.058837890625, 0.0335693359375, ...
embed
11416138_c0
11416138
haskell
0
Title: Applicative constructor for records Problem title: Applicative constructor for records Tags: haskell, applicative Problem: Applicative constructor for records I want to generically create applicative constructors for haskell records in order to create a parser for the record. Consider the record: data Record = R...
Applicative constructor for records Applicative constructor for records haskell applicative Applicative Record Float Parseable Parser Applicative constructor for records I want to generically create applicative constructors for haskell records in order to create a parser for the record. Consider the record: the constru...
[ -0.0013275146484375, 0.00994873046875, -0.00799560546875, 0.03125, -0.006011962890625, 0.0247802734375, -0.013427734375, 0.004791259765625, -0.00122833251953125, -0.028076171875, 0.01055908203125, -0.018798828125, 0.0216064453125, 0.0147705078125, -0.01080322265625, -0.01318359375, -...
[ 5659, 11048, 4935, 64549, 748, 100, 115923, 1556, 142508, 41816, 54877, 38699, 257, 2392, 184, 2886, 2189, 3444, 11212, 28282, 25251, 366, 17164, 137399, 87, 7, 1314, 62822, 52895, 621, 34475, 35773, 831, 21771, 54, 903, 51139, 7722, 61924,...
[ 0.139892578125, 0.1663818359375, 0.1510009765625, 0.18798828125, 0.1563720703125, 0.0833740234375, 0.2122802734375, 0.142822265625, 0.2135009765625, 0.18212890625, 0.16845703125, 0.1650390625, 0.0517578125, 0.15869140625, 0.07012939453125, 0.10498046875, 0.2071533203125, 0.09191894...
embed
14344338_c0
14344338
haskell
0
Title: How use DiffArray in Haskell? How make more strict this code? Problem title: How use DiffArray in Haskell? How make more strict this code? Tags: arrays, haskell, module, strict Problem: How use DiffArray in Haskell? How make more strict this code? I try use Data.Array code It's ok, but slow. Then use Data.Array....
How use DiffArray in Haskell? How make more strict this code? How use DiffArray in Haskell? How make more strict this code? arrays haskell module strict How DiffArray Haskell How use DiffArray in Haskell? How make more strict this code? I try use Data.Array code It's ok, but slow. Then use Data.Array.Diff code If I use...
[ -0.0091552734375, 0.02490234375, 0.01397705078125, 0.0164794921875, 0.005401611328125, -0.015869140625, 0.004913330078125, 0.003448486328125, -0.005340576171875, -0.01708984375, 0.008544921875, -0.0186767578125, 0.0257568359375, 0.002838134765625, -0.0032958984375, -0.01409912109375, ...
[ 11249, 4527, 191144, 7614, 7092, 23, 20625, 142508, 3249, 1286, 81113, 18151, 10298, 4778, 1556, 88996, 903, 9790, 11809, 3664, 1284, 72803, 397, 32920, 14256, 11728, 14037, 42, 64549, 748, 136, 20004, 23718, 15572, 40715, 21, 708, 17678, 3...
[ 0.072265625, 0.1336669921875, 0.2098388671875, 0.189208984375, 0.275146484375, 0.0168609619140625, 0.121826171875, 0.22900390625, 0.03912353515625, 0.105712890625, 0.2314453125, 0.1322021484375, 0.1131591796875, 0.07623291015625, 0.1024169921875, 0.123046875, 0.008270263671875, 0.0...
embed
29226868_c0
29226868
haskell
0
Title: Haskell Programming simple function recurrsion Problem title: Haskell Programming simple function recurrsion Tags: recursion, haskell, function Problem: Haskell Programming simple function recurrsion for this program an element and a list is taken in and a new list is returned. if there are any occurrences of th...
Haskell Programming simple function recurrsion Haskell Programming simple function recurrsion recursion haskell function Haskell Programming Haskell Programming simple function recurrsion for this program an element and a list is taken in and a new list is returned. if there are any occurrences of the element in the li...
[ -0.0137939453125, 0.019287109375, -0.0038604736328125, 0.03076171875, 0.0059814453125, 0.01409912109375, -0.005462646484375, -0.00927734375, 0.006072998046875, -0.01446533203125, 0.0263671875, -0.0284423828125, 0.0034942626953125, 0.01177978515625, 0.0184326171875, -0.0103759765625, ...
[ 20625, 142508, 27958, 8781, 32354, 456, 64240, 6889, 195625, 1830, 1556, 1528, 12830, 5303, 39958, 23, 3525, 176377, 2174, 2499, 74918, 42, 111, 5608, 154109, 2060, 9077, 5646, 136, 171859, 10336, 707, 46741, 69101, 71 ]
[ 0.123779296875, 0.2242431640625, 0.1051025390625, 0.155029296875, 0.1734619140625, 0.1419677734375, 0.272216796875, 0.1129150390625, 0.258056640625, 0.033111572265625, 0.1356201171875, 0.115478515625, 0.1541748046875, 0.14892578125, 0.0860595703125, 0.093017578125, 0.043304443359375,...
embed
19992846_c0
19992846
haskell
0
Title: Why can&#x27;t a type parameter be anything? Problem title: Why can&#x27;t a type parameter be anything? Tags: haskell Problem: Why can't a type parameter be anything? In my mind the type parameter a can be anything including a list. Why can't this work? fun :: a -> a fun [] = [] Haskell doesn't want to compile ...
Why can&#x27;t a type parameter be anything? Why can&#x27;t a type parameter be anything? haskell Why Couldn Prelude Why can't a type parameter be anything? In my mind the type parameter a can be anything including a list. Why can't this work? Haskell doesn't want to compile this code. I wonder why. I can make it work ...
[ -0.006866455078125, -0.000530242919921875, -0.00099945068359375, 0.01043701171875, -0.00274658203125, 0.00457763671875, 0.0123291015625, -0.0067138671875, -0.00005555152893066406, -0.025634765625, -0.00732421875, -0.03515625, -0.01806640625, 0.008544921875, -0.004058837890625, -0.02600...
[ 44084, 831, 3768, 18, 10644, 171859, 186, 23937, 1556, 142508, 191147, 19, 1914, 822, 112, 10, 7086, 26719, 5303, 903, 4488, 20625, 22027, 3444, 9969, 1340, 18151, 32195, 15400, 456, 199332, 138256, 13695, 32354, 35874, 178851, 3447, 43240, ...
[ 0.13671875, 0.1270751953125, 0.05950927734375, 0.10546875, 0.25341796875, 0.2469482421875, 0.14794921875, 0.1663818359375, 0.1102294921875, 0.2301025390625, 0.110595703125, 0.06231689453125, 0.07611083984375, 0.1676025390625, 0.0823974609375, 0.12060546875, 0.044219970703125, 0.033...
embed
21419175_c0
21419175
haskell
0
Title: (!!) operator with overflowing integer Problem title: (!!) operator with overflowing integer Tags: haskell Problem: (!!) operator with overflowing integer I have just recently started learning Haskell and started playing around with the idea of infinite lists and lazy evaluation. I constructed an infinite list a...
(!!) operator with overflowing integer (!!) operator with overflowing integer haskell (!!) operator with overflowing integer I have just recently started learning Haskell and started playing around with the idea of infinite lists and lazy evaluation. I constructed an infinite list and tried to access an element at a ve...
[ -0.00390625, -0.0057373046875, 0.016357421875, -0.00109100341796875, 0.007476806640625, 0.0030059814453125, 0.00994873046875, -0.0086669921875, 0.0157470703125, -0.036865234375, 0.0230712890625, -0.0277099609375, 0.004608154296875, -0.00037384033203125, 0.01019287109375, -0.02026367187...
[ 1146, 39933, 678, 645, 118664, 214, 892, 1505, 1556, 142508, 78684, 26859, 52080, 20625, 75169, 10932, 6528, 54241, 13, 5303, 21, 3285, 219836, 64549, 37842, 17203, 142, 12830, 10, 4552, 95534, 63262, 17368, 6506, 31089, 10644, 138256, 83, ...
[ 0.2088623046875, 0.2364501953125, 0.1044921875, 0.1407470703125, 0.2607421875, 0.050048828125, 0.139404296875, 0.1348876953125, 0.13232421875, 0.22265625, 0.010040283203125, 0.006683349609375, 0.0506591796875, 0.13232421875, 0.029052734375, 0.0283050537109375, 0.04205322265625, 0.1...
embed
7871510_c0
7871510
haskell
0
Title: parse error (possibly incorrect indentation) Problem title: parse error (possibly incorrect indentation) Tags: haskell Problem: parse error (possibly incorrect indentation) tyInf g (Con tag [ e1, e2]) | tag == pairTag = do return ( (Con tag [ e1, e1], (mkPairTy (tyInf g e1) (tyInf g e2)), [([pairId], (mkPairTy (...
parse error (possibly incorrect indentation) parse error (possibly incorrect indentation) haskell Type Gamma Exp Subst Num Con You TyVar Unification parse error (possibly incorrect indentation) I am getting following error can any one explain me what is wrong with the code. This is the code:
[ 0.013671875, 0.0189208984375, -0.01348876953125, 0.009033203125, 0.017578125, 0.0087890625, -0.0361328125, -0.0101318359375, 0.022216796875, -0.000576019287109375, 0.006683349609375, -0.01025390625, 0.0040283203125, -0.0167236328125, 0.0042724609375, 0.0194091796875, 0.00138854980468...
[ 366, 184, 18499, 7522, 172, 214552, 18597, 22062, 1556, 142508, 60457, 21413, 192, 60075, 8273, 271, 52782, 1657, 2583, 8064, 81827, 992, 41274, 38526, 20949, 25632, 831, 1632, 73342, 44691, 18151, 3293, 83 ]
[ 0.1197509765625, 0.137451171875, 0.1773681640625, 0.0966796875, 0.0723876953125, 0.1546630859375, 0.1697998046875, 0.09674072265625, 0.12310791015625, 0.2496337890625, 0.147216796875, 0.128173828125, 0.12646484375, 0.1619873046875, 0.140380859375, 0.056610107421875, 0.1336669921875, ...
embed
38735008_c0
38735008
haskell
0
Title: haskell postgresql-simple incompatible type _int8 and Int64 (and Integer) Problem title: haskell postgresql-simple incompatible type _int8 and Int64 (and Integer) Tags: postgresql, postgresql-simple, haskell, ghc Problem: haskell postgresql-simple incompatible type _int8 and Int64 (and Integer) Code signals: _in...
haskell postgresql-simple incompatible type _int8 and Int64 (and Integer) haskell postgresql-simple incompatible type _int8 and Int64 (and Integer) postgresql postgresql-simple haskell ghc _int8 Int64 Integer Created Only PostgreSQL x86_64-pc-linux-gnu Debian BOX3D Incompatible Nothing object_ids Identifier ConnectInfo...
[ -0.0004558563232421875, -0.0021209716796875, 0.00830078125, 0.0086669921875, -0.028076171875, 0.002838134765625, -0.00836181640625, -0.01507568359375, -0.00787353515625, 0.004486083984375, 0.029296875, -0.037841796875, -0.007537841796875, -0.0223388671875, -0.0186767578125, -0.00328063...
[ 1556, 142508, 1305, 17562, 99247, 191560, 82940, 1888, 2661, 10644, 4288, 1019, 360, 18, 13307, 15, 44401, 16, 31380, 238, 151313, 87293, 2795, 7134, 158897, 15276, 9, 57095, 2397, 104155, 262, 62806, 94049, 363, 397, 277, 10974, 182747, 36...
[ 0.1314697265625, 0.203125, 0.09564208984375, 0.192138671875, 0.201904296875, 0.22412109375, 0.1209716796875, 0.1434326171875, 0.0221405029296875, 0.143798828125, 0.1456298828125, 0.189697265625, 0.09619140625, 0.1092529296875, 0.217529296875, 0.012451171875, 0.1951904296875, 0.0118...
embed
49873976_c1
49873976
haskell
1
>>= B8.putStrLn . getResponseBody --How to have it working with a one-liner and the >>= notation ? --do notation ok test = do request <- ioRequest response <- httpBS request let body = getResponseBody response B8.putStrLn body Q2 : how to use the Request and httpBS with the (>>=) operator if the Request is to be build...
>>= B8.putStrLn . getResponseBody --How to have it working with a one-liner and the >>= notation ? --do notation ok test = do request <- ioRequest response <- httpBS request let body = getResponseBody response B8.putStrLn body Q2 : how to use the Request and httpBS with the (>>=) operator if the Request is to be build...
[ -0.00799560546875, 0.0296630859375, 0.0162353515625, -0.01336669921875, 0.0260009765625, 0.018310546875, -0.00083160400390625, 0.0037689208984375, 0.00113677978515625, -0.00970458984375, 0.0140380859375, -0.009521484375, -0.006072998046875, -0.02197265625, 0.005828857421875, -0.0086669...
[ 6396, 1369, 335, 1019, 5, 7077, 71713, 866, 19, 2046, 94399, 13, 12647, 1459, 81826, 47, 765, 442, 20697, 678, 1632, 9, 79852, 136, 70, 110, 22062, 246, 3664, 3034, 54, 50336, 22995, 4332, 75616, 57553, 1621, 20429, 2633, 14361, 304, ...
[ 0.119384765625, 0.1849365234375, 0.1170654296875, 0.2398681640625, 0.014678955078125, 0.12939453125, 0.1549072265625, 0.02783203125, 0.04840087890625, 0.116455078125, 0.194580078125, 0.0740966796875, 0.1361083984375, 0.105224609375, 0.053253173828125, 0.02044677734375, 0.044830322265...
embed
42784819_c0
42784819
haskell
0
Title: Is there a direct way to combine setters for multiple record fields to a single setter? Problem title: Is there a direct way to combine setters for multiple record fields to a single setter? Tags: lenses, haskell, haskell-lens, arrow-abstraction Problem: Is there a direct way to combine setters for multiple reco...
Is there a direct way to combine setters for multiple record fields to a single setter? Is there a direct way to combine setters for multiple record fields to a single setter? lenses haskell haskell-lens arrow-abstraction Control.Lens Control.Lens.TH Foo _bar _baz Setter Is there a direct way to combine setters for mul...
[ -0.01275634765625, -0.0029144287109375, -0.003936767578125, 0.01513671875, -0.000675201416015625, 0.006134033203125, -0.00927734375, -0.0150146484375, 0.004364013671875, 0.004119873046875, 0.006866455078125, 0.041748046875, 0.0181884765625, -0.000438690185546875, -0.01300048828125, -0....
[ 2685, 8951, 3917, 47, 70163, 88685, 7, 100, 48716, 17164, 44457, 11001, 10, 96, 47754, 1556, 142508, 1977, 118201, 2055, 117474, 27131, 866, 1755, 23415, 9572, 31, 1299, 40300, 503, 3055, 2071, 3444, 2811, 40383, 15044, 23, 18, 831, 37202...
[ 0.0408935546875, 0.1600341796875, 0.1107177734375, 0.1158447265625, 0.2457275390625, 0.2548828125, 0.0897216796875, 0.048370361328125, 0.1727294921875, 0.210693359375, 0.2181396484375, 0.161376953125, 0.03900146484375, 0.0687255859375, 0.084228515625, 0.07366943359375, 0.180908203125...
embed
60740941_c0
60740941
haskell
0
Title: Is there a way to clone Hackage packages using command line tools? Problem title: Is there a way to clone Hackage packages using command line tools? Tags: cabal, haskell, haskell-stack Problem: Is there a way to clone Hackage packages using command line tools? By that I mean clone them similarly to Github repos....
Is there a way to clone Hackage packages using command line tools? Is there a way to clone Hackage packages using command line tools? cabal haskell haskell-stack command Hackage Is there a way to clone Hackage packages using command line tools? By that I mean clone them similarly to Github repos. 3.5 years ago I rememb...
[ -0.004730224609375, 0.0341796875, 0.0106201171875, 0.0235595703125, -0.009033203125, 0.0031585693359375, 0.002685546875, -0.009033203125, 0.0028533935546875, -0.00994873046875, -0.006103515625, -0.0306396484375, 0.00811767578125, -0.00701904296875, -0.00421142578125, -0.00482177734375,...
[ 2071, 2685, 10, 3917, 20450, 86, 52922, 4588, 98169, 7, 17368, 75101, 13315, 72977, 47, 109524, 1556, 142508, 590, 2594, 21373, 217, 32102, 64722, 38704, 5369, 37629, 35187, 20625, 35773, 19481, 1295, 55516, 177261, 64557, 144281, 37967, 8951...
[ 0.0144195556640625, 0.04620361328125, 0.03759765625, 0.1187744140625, 0.21337890625, 0.1591796875, 0.2152099609375, 0.260498046875, 0.221923828125, 0.05718994140625, 0.071533203125, 0.1689453125, 0.163818359375, 0.2227783203125, 0.010040283203125, 0.2066650390625, 0.0858154296875, ...
embed
63741131_c0
63741131
haskell
0
Title: Is it possible to populate a record using a list in Haskell? Problem title: Is it possible to populate a record using a list in Haskell? Tags: haskell, record, types Problem: Is it possible to populate a record using a list in Haskell? If I have a record like so: data EdgeSet = EdgeSet { top :: Int, right :: Int...
Is it possible to populate a record using a list in Haskell? Is it possible to populate a record using a list in Haskell? haskell record types a Haskell EdgeSet Show Is it possible to populate a record using a list in Haskell? If I have a record like so: Is it possible to populate the properties via a list of matching ...
[ 0.006134033203125, -0.0025177001953125, 0.01312255859375, 0.004669189453125, -0.01275634765625, -0.0031280517578125, -0.0341796875, 0.01348876953125, -0.0011138916015625, -0.00004673004150390625, 0.0079345703125, -0.0260009765625, 0.0274658203125, 0.0001583099365234375, -0.0234375, -0....
[ 2071, 442, 7722, 27623, 67, 17164, 17368, 10, 5303, 23, 20625, 142508, 1556, 52895, 69030, 294, 126, 17367, 1884, 183871, 1829, 14858, 214, 10644, 1608, 6333, 15390, 82424, 765 ]
[ 0.035003662109375, 0.045745849609375, 0.1536865234375, 0.193359375, 0.06988525390625, 0.220703125, 0.11181640625, 0.049591064453125, 0.2156982421875, 0.0361328125, 0.1429443359375, 0.231689453125, 0.1171875, 0.133056640625, 0.121826171875, 0.0928955078125, 0.0706787109375, 0.133056...
embed
13921676_c0
13921676
haskell
0
Title: Haskell List With Guards error Problem title: Haskell List With Guards error Tags: take, list, guard, haskell, list-comprehension Problem: Haskell List With Guards error i am trying to write a very simple function in haskell to change a value in a list depending on an input as follows update_game :: [Int] -> Int...
Haskell List With Guards error Haskell List With Guards error take list guard haskell list-comprehension Haskell List Guards update_game x:xs take_amnt take_amnt:xs Haskell List With Guards error i am trying to write a very simple function in haskell to change a value in a list depending on an input as follows the firs...
[ -0.0224609375, 0.02783203125, 0.0169677734375, -0.00994873046875, 0.00799560546875, -0.005126953125, -0.0390625, 0.02978515625, 0.014892578125, 0.0322265625, 0.0228271484375, -0.01141357421875, 0.0157470703125, -0.008544921875, 0.005584716796875, 0.001434326171875, 0.003692626953125,...
[ 20625, 142508, 32036, 17106, 135440, 7, 18499, 5646, 5303, 56050, 1556, 4692, 3220, 28350, 35311, 425, 302, 660, 31577, 33022, 8781, 32354, 15549, 34292, 23, 96819, 107730, 28960, 50218, 4488, 5885, 4568, 7225, 216806, 44402, 9077, 2046, 2019...
[ 0.14794921875, 0.2216796875, 0.22900390625, 0.1898193359375, 0.29296875, 0.08685302734375, 0.205078125, 0.1429443359375, 0.1947021484375, 0.243896484375, 0.1412353515625, 0.056121826171875, 0.06219482421875, 0.1170654296875, 0.0614013671875, 0.045440673828125, 0.06414794921875, 0.0...
embed
36270447_c2
36270447
haskell
2
haskell-beginners, so I tried adding -A16M when running. The results looked much more in line with expectations: % ./strat +RTS -N2 -l -s -A16M (14930352,24157817) 3,127,179,920 bytes allocated in the heap 260,960 bytes copied during GC 69,984 bytes maximum residency (2 sample(s)) 28,320 bytes maximum slop 33 MB total ...
haskell-beginners, so I tried adding -A16M when running. The results looked much more in line with expectations: % ./strat +RTS -N2 -l -s -A16M (14930352,24157817) 3,127,179,920 bytes allocated in the heap 260,960 bytes copied during GC 69,984 bytes maximum residency (2 sample(s)) 28,320 bytes maximum slop 33 MB total ...
[ -0.02001953125, -0.0033416748046875, -0.0006866455078125, 0.0115966796875, 0.00262451171875, -0.004425048828125, -0.004150390625, -0.000919342041015625, 0.019775390625, -0.01239013671875, 0.033203125, 0.0087890625, 0.0111083984375, 0.0142822265625, 0.0089111328125, -0.004638671875, 0...
[ 1556, 142508, 9, 372, 82089, 1314, 37842, 154107, 20, 284, 2485, 594, 3229, 51042, 50339, 54811, 5045, 1286, 23, 13315, 678, 202702, 1745, 2816, 18, 997, 20503, 294, 839, 304, 141, 7, 11591, 12744, 2357, 59741, 133249, 2489, 1549, 390, ...
[ 0.182373046875, 0.2939453125, 0.004150390625, 0.053619384765625, 0.1544189453125, 0.1402587890625, 0.069091796875, 0.141357421875, 0.0867919921875, 0.0810546875, 0.2098388671875, 0.16552734375, 0.0645751953125, 0.2100830078125, 0.0985107421875, 0.0258026123046875, 0.048614501953125, ...
embed
19544132_c0
19544132
haskell
0
Title: How to run haskell code that&#x27;s passed via command argument to the interpreter? Problem title: How to run haskell code that&#x27;s passed via command argument to the interpreter? Tags: haskell, stdin Problem: How to run haskell code that's passed via command argument to the interpreter? Among other methods, ...
How to run haskell code that&#x27;s passed via command argument to the interpreter? How to run haskell code that&#x27;s passed via command argument to the interpreter? haskell stdin How file.hs How to run haskell code that's passed via command argument to the interpreter? Among other methods, there are a few most commo...
[ 0.002532958984375, -0.0027008056640625, -0.00726318359375, 0.01422119140625, -0.01043701171875, -0.003692626953125, 0.0150146484375, -0.0009307861328125, 0.005218505859375, -0.060546875, -0.00665283203125, -0.01544189453125, -0.0030059814453125, -0.0037384033203125, -0.01556396484375, ...
[ 11249, 47, 11675, 1556, 142508, 18151, 450, 3768, 115081, 1829, 75101, 10750, 29481, 56, 6138, 3035, 11435, 5, 127, 7, 150624, 2684, 39210, 48322, 1528, 31380, 318, 72367, 5201, 3535, 1295, 128019, 10557, 238, 29822, 3642, 8781, 5570, 10773...
[ 0.06719970703125, 0.098388671875, 0.193603515625, 0.1741943359375, 0.265869140625, 0.201171875, 0.042694091796875, 0.068359375, 0.1239013671875, 0.1265869140625, 0.2275390625, 0.186279296875, 0.19140625, 0.1285400390625, 0.0738525390625, 0.1053466796875, 0.1448974609375, 0.00408935...
embed
20406722_c0
20406722
haskell
0
Title: Better display of boolean formulas Problem title: Better display of boolean formulas Tags: functional-programming, smlnj, sml, haskell Problem: Better display of boolean formulas I want to implement a method for showing a propositional formula in SML. The solutions that I found so far was of this type: fun show ...
Better display of boolean formulas Better display of boolean formulas functional-programming smlnj sml haskell Better Atom Neg Conj Disj Better display of boolean formulas I want to implement a method for showing a propositional formula in SML. The solutions that I found so far was of this type: This produces unnecessa...
[ 0.0218505859375, 0.0184326171875, 0.01513671875, 0.02490234375, 0.0025634765625, 0.003204345703125, 0.00628662109375, 0.0005340576171875, -0.00077056884765625, 0.021484375, -0.0140380859375, -0.008544921875, -0.0135498046875, 0.01397705078125, -0.005767822265625, 0.021484375, 0.00030...
[ 177154, 44116, 337, 31, 34677, 26168, 111, 123309, 28966, 91, 7237, 170, 1556, 142508, 69728, 799, 177, 1657, 6206, 3444, 29479, 55300, 141377, 89261, 289, 23, 159, 39456, 51347, 14037, 10644, 3293, 27489, 26531, 1620, 5170, 3229, 2367, 87,...
[ 0.142578125, 0.1788330078125, 0.0362548828125, 0.09765625, 0.1788330078125, 0.2425537109375, 0.031646728515625, 0.115478515625, 0.0946044921875, 0.005828857421875, 0.1385498046875, 0.09814453125, 0.08740234375, 0.2396240234375, 0.1407470703125, 0.048004150390625, 0.0753173828125, 0...
embed
20460646_c1
20460646
haskell
1
kell-src-exts --reinstall --force-reinstalls Configuring haskell-src-exts-1.14.0... setup: The program happy version >=1.17 is required but it could not be found. Failed to install haskell-src-exts-1.14.0 cabal: Error: some packages failed to install: haskell-src-exts-1.14.0 failed during the configure step. The except...
kell-src-exts --reinstall --force-reinstalls Configuring haskell-src-exts-1.14.0... setup: The program happy version >=1.17 is required but it could not be found. Failed to install haskell-src-exts-1.14.0 cabal: Error: some packages failed to install: haskell-src-exts-1.14.0 failed during the configure step. The except...
[ -0.0030975341796875, 0.01348876953125, 0.02490234375, -0.020751953125, 0.006866455078125, 0.000583648681640625, -0.0279541015625, -0.00482177734375, -0.00058746337890625, -0.003936767578125, 0.00457763671875, -0.04833984375, -0.01043701171875, -0.005767822265625, 0.0216064453125, -0.00...
[ 3213, 19437, 3355, 933, 107, 80383, 50930, 59994, 1556, 142508, 7, 92134, 151152, 169581, 1528, 17723, 11389, 977, 33000, 5, 2489, 56065, 5809, 959, 14037, 190355, 20600, 109524, 212059, 3060, 98169, 165523, 222495, 29954, 131527, 5443, 217, ...
[ 0.1859130859375, 0.1895751953125, 0.09832763671875, 0.16015625, 0.043670654296875, 0.1685791015625, 0.1131591796875, 0.1810302734375, 0.1361083984375, 0.25146484375, 0.002288818359375, 0.11181640625, 0.226806640625, 0.0931396484375, 0.1429443359375, 0.219970703125, 0.15087890625, 0...
embed
70786598_c0
70786598
haskell
0
Title: stack: download dependencies to repo to transfer on other machine Problem title: stack: download dependencies to repo to transfer on other machine Tags: haskell, haskell-stack Problem: stack: download dependencies to repo to transfer on other machine I would like prepare a haskell project repository, currently u...
stack: download dependencies to repo to transfer on other machine stack: download dependencies to repo to transfer on other machine haskell haskell-stack stack: download dependencies to repo to transfer on other machine I would like prepare a haskell project repository, currently using stack, such that it includes alre...
[ -0.0223388671875, 0.014404296875, 0.00714111328125, 0.004364013671875, -0.007049560546875, 0.004119873046875, -0.007110595703125, -0.0027923583984375, 0.01043701171875, -0.0093994140625, 0.01068115234375, 0.00194549560546875, -0.004119873046875, 0.02978515625, -0.00125885009765625, 0.0...
[ 177261, 12, 7026, 42548, 117538, 47, 93392, 12302, 98, 3789, 36279, 1556, 142508, 590, 2594, 87, 2806, 1884, 114606, 13452, 64722, 14, 31667, 82424, 17368, 96853, 21771, 756, 831, 11675, 15490, 1820, 94878, 26828, 64330, 14364, 53, 35299, 1...
[ 0.282470703125, 0.05548095703125, 0.2181396484375, 0.25048828125, 0.17724609375, 0.13916015625, 0.208740234375, 0.19189453125, 0.06805419921875, 0.1370849609375, 0.1717529296875, 0.1568603515625, 0.2467041015625, 0.181884765625, 0.22607421875, 0.008392333984375, 0.02783203125, 0.07...
embed
48093503_c0
48093503
haskell
0
Title: Using ekg with stack while testing Problem title: Using ekg with stack while testing Tags: performance, haskell, haskell-stack Problem: Using ekg with stack while testing I've written some endurance tests, which I run with stack test . I'm also using ekg for monitoring the performance. This package recommends: T...
Using ekg with stack while testing Using ekg with stack while testing performance haskell haskell-stack Using RTS Using ekg with stack while testing I've written some endurance tests, which I run with stack test . I'm also using ekg for monitoring the performance. This package recommends: I know that stack supports the...
[ -0.002197265625, 0.002044677734375, 0.004791259765625, -0.00482177734375, 0.00396728515625, -0.017578125, -0.028564453125, 0.01123046875, -0.01104736328125, -0.02001953125, 0.01025390625, 0.0123291015625, 0.005859375, 0.01043701171875, 0.01031494140625, 0.0157470703125, -0.0074462890...
[ 345, 28, 8517, 678, 177261, 12960, 134234, 23718, 1556, 142508, 590, 2594, 27389, 294, 59121, 28927, 7154, 109921, 3034, 17368, 97204, 98169, 67330, 8060, 4210, 58395, 39989, 50717, 35829, 452, 997, 20503, 20, 618, 1528, 49938, 4527, 55391, ...
[ 0.07171630859375, 0.065673828125, 0.218994140625, 0.1046142578125, 0.2327880859375, 0.06396484375, 0.2196044921875, 0.1650390625, 0.0948486328125, 0.1871337890625, 0.1160888671875, 0.07568359375, 0.1416015625, 0.1170654296875, 0.01300048828125, 0.0926513671875, 0.038299560546875, 0...
embed
48587361_c1
48587361
haskell
1
consumes the value of type a and it produces the value of type b . On contramap it consumes the value. class Contravariant (f :: * -> *) where contramap :: (a -> b) -> f b -> f a Which variable type does it consume a or b ? Also a question from https://www.fpcomplete.com/blog/2016/11/covariance-contravariance about PO...
consumes the value of type a and it produces the value of type b . On contramap it consumes the value. class Contravariant (f :: * -> *) where contramap :: (a -> b) -> f b -> f a Which variable type does it consume a or b ? Also a question from https://www.fpcomplete.com/blog/2016/11/covariance-contravariance about PO...
[ -0.0047607421875, -0.023681640625, -0.0027923583984375, 0.0291748046875, -0.01318359375, 0.0225830078125, -0.004913330078125, 0.015625, 0.01470947265625, 0.0167236328125, -0.0106201171875, -0.01708984375, 0.0033111572265625, 0.00567626953125, -0.01513671875, -0.03515625, 0.0087280273...
[ 18588, 90, 34292, 10644, 10, 27489, 876, 2161, 2304, 62346, 18507, 45380, 162591, 420, 661, 33079, 1238, 77336, 13, 707, 9655, 131801, 587, 21690, 7154, 57361, 54602, 568, 169813, 48762, 541, 50371, 156060, 19069, 83, 16750, 6056, 94250, 56...
[ 0.2252197265625, 0.08636474609375, 0.17578125, 0.1920166015625, 0.09417724609375, 0.1478271484375, 0.153564453125, 0.02398681640625, 0.2607421875, 0.222900390625, 0.15185546875, 0.2705078125, 0.269287109375, 0.079833984375, 0.00640869140625, 0.041107177734375, 0.0660400390625, 0.27...
embed
77360293_c1
77360293
haskell
1
3 :: Num a => a -> a -> a -> a ghci> :t mth4 mth4 :: Integer -> Integer -> Integer -> Integer Entering directly in GHCi repl: peti@DESKTOP-0I7S3RB:~/ws/haskell$ ghci GHCi, version 9.6.2: https://www.haskell.org/ghc/ :? for help Loaded GHCi configuration from /home/peti/.ghci ghci> mth1 x y z = x * y * z ghci> mth2 x y ...
3 :: Num a => a -> a -> a -> a ghci> :t mth4 mth4 :: Integer -> Integer -> Integer -> Integer Entering directly in GHCi repl: peti@DESKTOP-0I7S3RB:~/ws/haskell$ ghci GHCi, version 9.6.2: https://www.haskell.org/ghc/ :? for help Loaded GHCi configuration from /home/peti/.ghci ghci> mth1 x y z = x * y * z ghci> mth2 x y ...
[ -0.031005859375, 0.00372314453125, -0.00653076171875, 0.00009918212890625, 0.0218505859375, -0.005401611328125, -0.01068115234375, -0.01116943359375, -0.00096893310546875, -0.028076171875, -0.0002384185791015625, -0.0216064453125, 0.0048828125, -0.0181884765625, -0.0167236328125, 0.005...
[ 138, 1984, 52782, 10, 44357, 33079, 31380, 318, 18, 347, 927, 617, 44401, 357, 33558, 105237, 23, 527, 73265, 14, 456, 2424, 29333, 981, 69193, 605, 70675, 23320, 966, 363, 45176, 19725, 10557, 142508, 11389, 3569, 178121, 3975, 696, 5, ...
[ 0.181884765625, 0.1134033203125, 0.222412109375, 0.154296875, 0.0916748046875, 0.1168212890625, 0.1905517578125, 0.1868896484375, 0.08154296875, 0.08758544921875, 0.16064453125, 0.181884765625, 0.2330322265625, 0.171142578125, 0.1033935546875, 0.169921875, 0.1204833984375, 0.170166...
embed
24999636_c0
24999636
haskell
0
Title: Is there a way to kill all forked threads in a GHCi session without restarting it? Problem title: Is there a way to kill all forked threads in a GHCi session without restarting it? Tags: yesod, ghc, multithreading, haskell, ghcid Problem: Is there a way to kill all forked threads in a GHCi session without restar...
Is there a way to kill all forked threads in a GHCi session without restarting it? Is there a way to kill all forked threads in a GHCi session without restarting it? yesod ghc multithreading haskell ghcid GHCi Is there a way to kill all forked threads in a GHCi session without restarting it? Based on my previous questi...
[ 0.01116943359375, 0.00616455078125, -0.005218505859375, 0.0027618408203125, -0.00848388671875, 0.008544921875, -0.002838134765625, 0.01043701171875, -0.02294921875, -0.054931640625, -0.00494384765625, -0.00775146484375, -0.00958251953125, 0.01226806640625, 0.020263671875, 0.01379394531...
[ 2071, 2685, 10, 3917, 47, 67153, 756, 100, 12225, 86997, 7, 527, 73265, 14, 56002, 15490, 456, 17137, 23, 214, 442, 2422, 23722, 31380, 238, 3869, 65847, 1556, 142508, 55964, 2499, 38937, 75935, 32354, 82230, 5623, 7710, 18, 121011, 19108...
[ 0.008270263671875, 0.016754150390625, 0.0203857421875, 0.0963134765625, 0.07232666015625, 0.20947265625, 0.14599609375, 0.14208984375, 0.1961669921875, 0.244140625, 0.0545654296875, 0.079833984375, 0.1275634765625, 0.207763671875, 0.1683349609375, 0.09686279296875, 0.0899658203125, ...
embed
25534690_c0
25534690
haskell
0
Title: Function like catMaybes, but counting Nothing values Problem title: Function like catMaybes, but counting Nothing values Tags: list, haskell, option-type Problem: Function like catMaybes, but counting Nothing values I have a list like this: let foo = [Just 1, Just 2, Nothing, Just 3, Nothing, Nothing] By using c...
Function like catMaybes, but counting Nothing values Function like catMaybes, but counting Nothing values list haskell option-type Nothing Just Maybe Function like catMaybes, but counting Nothing values I have a list like this: By using catMaybes I can extract only the Just -constructed values: I'm now looking for a fu...
[ 0.0103759765625, 0.001373291015625, -0.007781982421875, 0.0054931640625, 0.01226806640625, -0.0012359619140625, -0.0145263671875, -0.01068115234375, 0.025634765625, 0.00439453125, -0.0281982421875, -0.037841796875, 0.002288818359375, 0.0194091796875, -0.009765625, -0.000621795654296875...
[ 28670, 10763, 1884, 7515, 82419, 7438, 1284, 54529, 214, 182747, 142424, 5303, 1556, 142508, 35829, 50986, 9563, 83425, 17368, 831, 125663, 4734, 36716, 16487, 100, 32354, 11180, 19388, 91, 94418, 37317, 24145, 5608, 138256, 194663, 25188 ]
[ 0.142822265625, 0.060089111328125, 0.106689453125, 0.1575927734375, 0.1600341796875, 0.19287109375, 0.0849609375, 0.1685791015625, 0.046356201171875, 0.2086181640625, 0.197509765625, 0.1514892578125, 0.087646484375, 0.1866455078125, 0.1719970703125, 0.06024169921875, 0.11669921875, ...
embed
19646524_c0
19646524
haskell
0
Title: Haskell list comprehension returns empty? Problem title: Haskell list comprehension returns empty? Tags: haskell, list, list-comprehension Problem: Haskell list comprehension returns empty? So I'm new to learning Haskell (started on Saturday) and I read a few chapters from online books and I wrote a list compreh...
Haskell list comprehension returns empty? Haskell list comprehension returns empty? haskell list list-comprehension Haskell Haskell list comprehension returns empty? So I'm new to learning Haskell (started on Saturday) and I read a few chapters from online books and I wrote a list comprehension to find the diameter of ...
[ -0.006011962890625, -0.013916015625, 0.00714111328125, 0.01324462890625, -0.001434326171875, 0.02490234375, 0.0069580078125, -0.003173828125, 0.00732421875, 0.01483154296875, -0.018798828125, -0.01397705078125, -0.004486083984375, 0.001190185546875, -0.0211181640625, 0.01422119140625, ...
[ 20625, 142508, 5303, 46683, 3220, 6889, 30646, 201505, 32, 7, 1556, 277, 4692, 3525, 52080, 72864, 12301, 1118, 42840, 54397, 7413, 148064, 42154, 34475, 75723, 69988, 31380, 318, 2740, 2633, 11, 963, 483, 248, 2147, 69112, 30745, 68252, 47...
[ 0.1436767578125, 0.2093505859375, 0.209228515625, 0.145263671875, 0.141845703125, 0.049652099609375, 0.2091064453125, 0.260009765625, 0.032073974609375, 0.0251312255859375, 0.1353759765625, 0.0152740478515625, 0.113525390625, 0.0233306884765625, 0.04779052734375, 0.0248260498046875, ...
embed
43035176_c0
43035176
haskell
0
Title: Selecting string elements in a list using integer elements from another list Problem title: Selecting string elements in a list using integer elements from another list Tags: list, haskell, dictionary Problem: Selecting string elements in a list using integer elements from another list I'm going to use an exampl...
Selecting string elements in a list using integer elements from another list Selecting string elements in a list using integer elements from another list list haskell dictionary integer another Selecting Selecting string elements in a list using integer elements from another list I'm going to use an example to explain ...
[ -0.0135498046875, -0.0047607421875, 0.002044677734375, 0.045166015625, -0.0125732421875, 0.0162353515625, 0.003814697265625, 0.00872802734375, 0.016357421875, 0.0164794921875, -0.00714111328125, -0.022216796875, -0.007415771484375, 0.031005859375, -0.0299072265625, -0.01953125, 0.028...
[ 51620, 214, 79315, 80854, 23, 5303, 17368, 892, 1505, 1295, 15700, 10, 1556, 142508, 45, 10763, 27781, 73342, 34153, 765, 6626, 136, 876, 2203, 3284, 60142, 1517, 73, 68252, 138, 3444, 28282, 3525, 501, 36849, 55769, 19069, 42518, 26255, ...
[ 0.2054443359375, 0.0631103515625, 0.2398681640625, 0.1951904296875, 0.073486328125, 0.205810546875, 0.1263427734375, 0.132568359375, 0.1348876953125, 0.0872802734375, 0.1484375, 0.033660888671875, 0.1326904296875, 0.2337646484375, 0.0250244140625, 0.0599365234375, 0.0882568359375, ...
embed
37844501_c1
37844501
haskell
1
, Phonetic.Database.QueryGenerator, Phonetic.Database.UmeQueryParser, Phonetic.Database.SegmentList, Phonetic.Database.UmeQuery, Installing, Users, frkkan96, Documents, x86_64-osx-ghc-7.10.3, umecore-hs-0.0.1.0-GFN6s0Dt0ywEgbkcE9P2if, Registering, Completed, Jun, textgrid_import, textgrid_import.hs, Version, Git, cebe1...
.hs:64:13 Getting stack_JAcs0EuAGbK5rtqRdoxQaL:Stack.Setup Setup.hs:341:17 Run stack_JAcs0EuAGbK5rtqRdoxQaL:System.Process.Read System Process Stack linking of executable fails in one instance, completes another - why? Sorry for asking a bit involved question, but linking an executable using stack fails inexplicably in...
[ -0.00262451171875, 0.0142822265625, 0.0027923583984375, 0.02783203125, 0.00823974609375, -0.01409912109375, -0.00921630859375, -0.0303955078125, 0.0020599365234375, 0.0031280517578125, -0.0255126953125, -0.0137939453125, -0.005645751953125, -0.00555419921875, -0.0023956298828125, -0.00...
[ 127, 7, 13307, 22618, 210732, 177261, 11855, 4439, 51724, 866, 42378, 2594, 2037, 19943, 22950, 28398, 52283, 84293, 26531, 31345, 12353, 123996, 6512, 3126, 214, 71924, 2886, 35782, 1632, 110527, 28484, 15700, 15400, 17368, 145782, 959, 13452,...
[ 0.09356689453125, 0.0572509765625, 0.0830078125, 0.05462646484375, 0.03985595703125, 0.2362060546875, 0.0950927734375, 0.03173828125, 0.0196380615234375, 0.065673828125, 0.1029052734375, 0.1488037109375, 0.002838134765625, 0.008392333984375, 0.0042724609375, 0.03497314453125, 0.00085...
embed
50944016_c0
50944016
haskell
0
Title: Haskell Bindable entities? Problem title: Haskell Bindable entities? Tags: theory, haskell Problem: Haskell Bindable entities? I saw that, in the book, Programming Language Design Concepts by John Wiley, 2004, there is a definition for bindables: "A bindable entity is one that may be bound to an identifier. Prog...
Haskell Bindable entities? Haskell Bindable entities? theory haskell Haskell Bindable Haskell Bindable entities? I saw that, in the book, Programming Language Design Concepts by John Wiley, 2004, there is a definition for bindables: I'm curious, which bindable entities are in Haskell?
[ 0.013916015625, 0.00982666015625, 0.0062255859375, 0.00160980224609375, 0.00445556640625, 0.0277099609375, 0.004425048828125, 0.009033203125, 0.00836181640625, -0.02685546875, -0.034423828125, -0.0306396484375, -0.006011962890625, 0.0010986328125, -0.0111083984375, 0.0230712890625, 0...
[ 20625, 142508, 16666, 71, 2886, 77630, 2449, 154453, 1556, 24124, 12877, 27958, 83658, 11724, 128182, 4939, 5140, 4293, 86097, 80934, 68557, 19736, 193844, 3129, 621, 23 ]
[ 0.1595458984375, 0.263427734375, 0.1671142578125, 0.13232421875, 0.2301025390625, 0.1790771484375, 0.1287841796875, 0.1634521484375, 0.1402587890625, 0.0203399658203125, 0.0677490234375, 0.0872802734375, 0.123046875, 0.1553955078125, 0.114013671875, 0.053375244140625, 0.0924682617187...
embed
70392941_c0
70392941
haskell
0
Title: How to implement !! for Integer in Haskell? Problem title: How to implement !! for Integer in Haskell? Tags: haskell Problem: How to implement !! for Integer in Haskell? I'm new in Haskell programming. I'm in search for an implementation of !! operator which I need to use not as [a] -> Int -> a or [a] -> Int -> ...
How to implement !! for Integer in Haskell? How to implement !! for Integer in Haskell? haskell How Integer Haskell Just How to implement !! for Integer in Haskell? I'm new in Haskell programming. I'm in search for an implementation of !! operator which I need to use not as [a] -> Int -> a or [a] -> Int -> [a] but as [...
[ -0.0211181640625, -0.00421142578125, 0.0169677734375, 0.01239013671875, 0.011962890625, 0.01904296875, 0.00921630859375, -0.00946044921875, 0.000377655029296875, -0.0216064453125, 0.025634765625, 0.005889892578125, 0.00341796875, 0.0010986328125, 0.01312255859375, -0.0118408203125, -...
[ 11249, 47, 29479, 6506, 100, 44401, 23, 20625, 142508, 32, 1556, 9563, 3525, 56037, 33938, 208124, 39933, 3871, 4527, 959, 237, 360, 18, 1284, 33079, 10, 18151, 3444, 903, 831, 15549, 10644, 2394, 7, 4153, 67, 1505, 81113, 35431, 109921 ]
[ 0.130859375, 0.04986572265625, 0.274658203125, 0.257080078125, 0.1722412109375, 0.27490234375, 0.1268310546875, 0.1956787109375, 0.273681640625, 0.006622314453125, 0.16650390625, 0.037139892578125, 0.06304931640625, 0.0667724609375, 0.063232421875, 0.1949462890625, 0.212646484375, ...
embed
73515188_c0
73515188
haskell
0
Title: Can I discharge a constraint, if I know the class is solvable for all types of a kind? Problem title: Can I discharge a constraint, if I know the class is solvable for all types of a kind? Tags: typeclass, haskell Problem: Can I discharge a constraint, if I know the class is solvable for all types of a kind? Thi...
Can I discharge a constraint, if I know the class is solvable for all types of a kind? Can I discharge a constraint, if I know the class is solvable for all types of a kind? typeclass haskell Can Can I discharge a constraint, if I know the class is solvable for all types of a kind? This might seem like a stupid questio...
[ -0.0025787353515625, -0.0064697265625, 0.0213623046875, 0.0030059814453125, -0.00098419189453125, -0.0155029296875, -0.0140380859375, 0.0057373046875, -0.00982666015625, -0.0208740234375, -0.0184326171875, -0.03271484375, 0.00506591796875, 0.0155029296875, -0.01409912109375, 0.00363159...
[ 4171, 87, 2837, 69674, 158, 2816, 4288, 2174, 3714, 18507, 83, 132944, 2886, 100, 756, 52895, 8562, 10, 10644, 67413, 1556, 142508, 110833, 20625, 313, 11, 1984, 341, 61924, 188347, 110527, 41591, 384, 33079, 661, 34292, 808, 62, 3917, 27...
[ 0.0931396484375, 0.04974365234375, 0.1141357421875, 0.282470703125, 0.1256103515625, 0.2181396484375, 0.1568603515625, 0.06622314453125, 0.13623046875, 0.2333984375, 0.082763671875, 0.2012939453125, 0.17578125, 0.0909423828125, 0.1092529296875, 0.1971435546875, 0.1533203125, 0.0662...
embed
48300479_c0
48300479
haskell
0
Title: Why does Haskell&#x27;s Monad implementation fail function result differ from error&#x27;s result? Problem title: Why does Haskell&#x27;s Monad implementation fail function result differ from error&#x27;s result? Tags: haskell Problem: Why does Haskell's Monad implementation fail function result differ from erro...
Why does Haskell&#x27;s Monad implementation fail function result differ from error&#x27;s result? Why does Haskell&#x27;s Monad implementation fail function result differ from error&#x27;s result? haskell error Why Haskell Monad Char Why does Haskell's Monad implementation fail function result differ from error's resu...
[ -0.00201416015625, 0.0135498046875, 0.01611328125, 0.0196533203125, 0.029052734375, -0.00787353515625, -0.00482177734375, -0.004241943359375, -0.01708984375, 0.014404296875, 0.0179443359375, -0.043212890625, -0.0076904296875, -0.007598876953125, 0.00121307373046875, -0.02001953125, 0...
[ 44084, 20625, 142508, 3768, 60331, 71, 208124, 35782, 32354, 16750, 129927, 1295, 18499, 14602, 1556, 21656, 2667, 712, 7, 10644, 18507, 80934, 111, 5426, 186992, 248, 1369, 347, 10, 191082, 41591, 50339, 27198, 3934, 129745 ]
[ 0.132080078125, 0.1009521484375, 0.2335205078125, 0.032379150390625, 0.1912841796875, 0.1441650390625, 0.173828125, 0.202392578125, 0.1336669921875, 0.1624755859375, 0.2078857421875, 0.09869384765625, 0.254638671875, 0.001312255859375, 0.0816650390625, 0.15234375, 0.1295166015625, ...
embed
33016410_c0
33016410
haskell
0
Title: Is there any way to separate infinite and finite lists? Problem title: Is there any way to separate infinite and finite lists? Tags: haskell, list, infinite Problem: Is there any way to separate infinite and finite lists? For example, I am writing some function for lists and I want to use length function foo :: ...
Is there any way to separate infinite and finite lists? Is there any way to separate infinite and finite lists? haskell list infinite Bool FiniteList Is there any way to separate infinite and finite lists? For example, I am writing some function for lists and I want to use length function How can someone understand cou...
[ 0.00156402587890625, -0.00787353515625, 0.001495361328125, -0.00335693359375, -0.02685546875, -0.00439453125, 0.0162353515625, 0.01263427734375, 0.009521484375, -0.00872802734375, 0.0034637451171875, -0.01043701171875, 0.005859375, 0.016357421875, -0.00860595703125, 0.002685546875, 0...
[ 2499, 3917, 47, 84797, 54241, 13, 136, 94418, 5303, 7, 2685, 1556, 142508, 2460, 929, 13316, 1486, 154663, 32562, 32354, 4527, 140909, 28219, 5809, 11814, 678, 5351, 105237, 10644, 5775, 31 ]
[ 0.066162109375, 0.1083984375, 0.04315185546875, 0.21484375, 0.1737060546875, 0.1083984375, 0.09393310546875, 0.2113037109375, 0.2359619140625, 0.0704345703125, 0.00592041015625, 0.1063232421875, 0.20849609375, 0.049041748046875, 0.1163330078125, 0.1285400390625, 0.0989990234375, 0....
embed
55081273_c0
55081273
haskell
0
Title: Church encoding for dependent types: from Coq to Haskell Problem title: Church encoding for dependent types: from Coq to Haskell Tags: haskell, coq, church-encoding Problem: Church encoding for dependent types: from Coq to Haskell In Coq I can define a Church encoding for lists of length n: Definition listn (A :...
Church encoding for dependent types: from Coq to Haskell Church encoding for dependent types: from Coq to Haskell haskell coq church-encoding Coq Church Haskell Definition Type Church encoding for dependent types: from Coq to Haskell In Coq I can define a Church encoding for lists of length n: Is the type system of Has...
[ -0.00201416015625, 0.010009765625, 0.00823974609375, 0.006072998046875, 0.00787353515625, 0.0101318359375, -0.0206298828125, 0.009521484375, 0.0042724609375, -0.03515625, -0.0106201171875, -0.034423828125, 0.007049560546875, 0.020751953125, -0.01422119140625, 0.001068115234375, 0.018...
[ 84084, 22, 587, 6238, 108750, 52895, 1295, 1311, 864, 47, 20625, 142508, 100, 1556, 552, 106820, 66332, 155455, 60457, 831, 61924, 5303, 140909, 653, 10644, 5426, 111938, 37515, 20174, 211196, 6044, 80934, 3642 ]
[ 0.184326171875, 0.09197998046875, 0.1976318359375, 0.1041259765625, 0.1737060546875, 0.1700439453125, 0.0325927734375, 0.102783203125, 0.1280517578125, 0.016876220703125, 0.1177978515625, 0.2149658203125, 0.0313720703125, 0.0933837890625, 0.062744140625, 0.12158203125, 0.190673828125...
embed
36633959_c1
36633959
haskell
1
9761+00 2016-04-13 14:33:38.27739+00 (2 rows) My understanding is that Data.Time.UTCTime or Database.PostgreSQL.Simple.Time.UTCTimestamp should map to timestamptz type of PostgreSQL . Apparently, that understanding is wrong if I am getting those errors above. Will appreciate help with this. Code signals: Data.Text, Dat...
9761+00 2016-04-13 14:33:38.27739+00 (2 rows) My understanding is that Data.Time.UTCTime or Database.PostgreSQL.Simple.Time.UTCTimestamp should map to timestamptz type of PostgreSQL . Apparently, that understanding is wrong if I am getting those errors above. Will appreciate help with this. Code signals: Data.Text, Dat...
[ 0.0113525390625, 0.00066375732421875, -0.007476806640625, 0.00994873046875, 0.012451171875, -0.03564453125, -0.01116943359375, 0.00135040283203125, -0.017822265625, -0.031982421875, 0.033447265625, -0.0208740234375, 0.01409912109375, 0.0047607421875, -0.0194091796875, 0.0172119140625, ...
[ 14819, 11540, 1328, 7049, 780, 40866, 31191, 3768, 198416, 4700, 15555, 2646, 100094, 11809, 5, 70059, 45962, 707, 187781, 49411, 7134, 158897, 8859, 33209, 590, 2676, 5608, 22288, 47, 1733, 9136, 10644, 2795, 6, 99547, 83, 44691, 18499, 36...
[ 0.1591796875, 0.1668701171875, 0.099609375, 0.1170654296875, 0.058624267578125, 0.011871337890625, 0.005828857421875, 0.028106689453125, 0.072998046875, 0.03631591796875, 0.140625, 0.01416015625, 0.1539306640625, 0.1441650390625, 0.01837158203125, 0.255859375, 0.206298828125, 0.038...
embed
2500459_c0
2500459
haskell
0
Title: Wrong IO actions order using putStr and getLine Problem title: Wrong IO actions order using putStr and getLine Tags: io, buffering, haskell, ghc Problem: Wrong IO actions order using putStr and getLine I have the following code: main = do putStr "Test input : " content <- getLine putStrLn content When I run it (...
Wrong IO actions order using putStr and getLine Wrong IO actions order using putStr and getLine io buffering haskell ghc putStr Wrong Test Wrong IO actions order using putStr and getLine I have the following code: When I run it (with runhaskell ) or compile it (ghc 6.10.4) the result is like this: Why is Test input : a...
[ -0.0185546875, -0.00079345703125, -0.0103759765625, 0.0140380859375, -0.0184326171875, 0.00860595703125, 0.00433349609375, 0.00003266334533691406, -0.008056640625, 0.0057373046875, 0.0174560546875, -0.00909423828125, -0.01507568359375, -0.004302978515625, 0.0135498046875, 0.00364685058...
[ 601, 35133, 17780, 61972, 12989, 17368, 3884, 71713, 136, 2046, 93232, 22995, 123759, 4209, 1556, 142508, 31380, 238, 8647, 25632, 18151, 11675, 10557, 9969, 1340, 9486, 305, 10179, 29557, 16750, 1884, 44084, 83, 107730, 237, 71, 8035, 28412,...
[ 0.02783203125, 0.1695556640625, 0.18603515625, 0.1785888671875, 0.18798828125, 0.024505615234375, 0.1380615234375, 0.25048828125, 0.032012939453125, 0.0997314453125, 0.199951171875, 0.1619873046875, 0.118896484375, 0.0460205078125, 0.0960693359375, 0.1865234375, 0.0892333984375, 0....
embed
39589232_c0
39589232
haskell
0
Title: Yesod - Include a base widget only once Problem title: Yesod - Include a base widget only once Tags: widget, haskell, handler, yesod, flags Problem: Yesod - Include a base widget only once I have a Widget a_i that relies on a base Widget b . b contains Javascript that a requires to work. Currently, the widgets a...
Yesod - Include a base widget only once Yesod - Include a base widget only once widget haskell handler yesod flags Yesod Include Widget a_i a_1 a_2 Yesod - Include a base widget only once I have a Widget a_i that relies on a base Widget b . b contains Javascript that a requires to work. Currently, the widgets are inclu...
[ -0.0137939453125, 0.0027008056640625, 0.007171630859375, -0.021484375, -0.0177001953125, 0.0223388671875, -0.005401611328125, -0.004241943359375, 0.01123046875, -0.04833984375, -0.00015544891357421875, -0.01226806640625, 0.0027923583984375, 0.0140380859375, -0.0089111328125, 0.00288391...
[ 32635, 2199, 8942, 822, 3647, 148631, 4734, 24145, 112, 1556, 142508, 35863, 2422, 23722, 49938, 58302, 3794, 10, 14, 115187, 304, 765, 454, 28702, 876, 70541, 74181, 144570, 4488, 114063, 99201, 9191, 3444, 191082, 26698, 2174, 11814, 17311,...
[ 0.177490234375, 0.2474365234375, 0.0908203125, 0.153564453125, 0.2061767578125, 0.287109375, 0.1162109375, 0.208251953125, 0.034088134765625, 0.081298828125, 0.1846923828125, 0.1822509765625, 0.10150146484375, 0.1943359375, 0.2042236328125, 0.1478271484375, 0.197998046875, 0.065551...
embed
43499943_c0
43499943
haskell
0
Title: Why does my Haskell program not accept standard input redirection? Problem title: Why does my Haskell program not accept standard input redirection? Tags: terminal, readfile, haskell, command-line-arguments Problem: Why does my Haskell program not accept standard input redirection? I'm trying to read a file in H...
Why does my Haskell program not accept standard input redirection? Why does my Haskell program not accept standard input redirection? terminal readfile haskell command-line-arguments Why Haskell input.txt Why does my Haskell program not accept standard input redirection? I'm trying to read a file in Haskell by supplyin...
[ -0.00150299072265625, 0.01483154296875, 0.0078125, 0.0135498046875, -0.021728515625, 0.001953125, -0.015625, -0.0032196044921875, -0.01318359375, -0.0172119140625, 0.025146484375, -0.0125732421875, -0.01361083984375, -0.01287841796875, 0.01190185546875, -0.010498046875, 0.02502441406...
[ 44084, 20625, 142508, 1528, 959, 26946, 5570, 107730, 456, 936, 58994, 33949, 12301, 29822, 1556, 75101, 2256, 155937, 124326, 11435, 100677, 9351, 13315, 10750, 163846, 18151, 18499, 4453, 22766, 14858, 137578, 23, 54, 125195, 171, 4426, 24092...
[ 0.0823974609375, 0.115478515625, 0.20361328125, 0.09478759765625, 0.08367919921875, 0.130859375, 0.1619873046875, 0.1898193359375, 0.1163330078125, 0.177978515625, 0.0953369140625, 0.1146240234375, 0.1143798828125, 0.100341796875, 0.08807373046875, 0.116455078125, 0.0526123046875, ...
embed
8139066_c0
8139066
haskell
0
Title: Haskell infix function application precedence Problem title: Haskell infix function application precedence Tags: function, haskell, infix-notation, operator-precedence, operators Problem: Haskell infix function application precedence Let f x y = x * y . We can apply this function in two ways: f 5 6 , or, using i...
Haskell infix function application precedence Haskell infix function application precedence function haskell infix-notation operator-precedence operators Haskell Haskell infix function application precedence Let f x y = x * y . We can apply this function in two ways: f 5 6 , or, using infix notation, 5 `f` 6 . Do the o...
[ 0.0225830078125, -0.013916015625, 0.017822265625, 0.006561279296875, -0.00811767578125, 0.00750732421875, 0.015869140625, -0.0031280517578125, 0.01300048828125, -0.02197265625, 0.02734375, -0.01544189453125, -0.001617431640625, -0.0015411376953125, 0.01141357421875, 0.00019741058349609...
[ 20625, 142508, 23, 55923, 32354, 38415, 107671, 6620, 1556, 157, 22062, 39933, 4692, 37534, 10842, 1238, 1022, 113, 2203, 661, 831, 59911, 903, 6626, 48322, 190, 305, 110, 9473, 420, 91736, 4568, 125195, 3173, 442, 167375, 87, 70, 9969, 3...
[ 0.1397705078125, 0.24072265625, 0.1463623046875, 0.277587890625, 0.1956787109375, 0.202880859375, 0.199951171875, 0.1072998046875, 0.1285400390625, 0.1270751953125, 0.098876953125, 0.233154296875, 0.042755126953125, 0.1278076171875, 0.057891845703125, 0.12939453125, 0.0709228515625, ...
embed
56796688_c0
56796688
haskell
0
Title: How to fix &quot;Couldn&#x27;t match expected type&quot; error in Haskell? Problem title: How to fix &quot;Couldn&#x27;t match expected type&quot; error in Haskell? Tags: haskell Problem: How to fix "Couldn't match expected type" error in Haskell? I am a newbie in Haskell and study type classes now. I created a ...
How to fix &quot;Couldn&#x27;t match expected type&quot; error in Haskell? How to fix &quot;Couldn&#x27;t match expected type&quot; error in Haskell? haskell x How Couldn Haskell Float MyShape Circle Rectangle Show Geo Num test2.hs:122:3-9 test2.hs:121:10-33 Relevant test2.hs:122:22 test2.hs:122:19 test2.hs:122:3 How t...
[ -0.01019287109375, 0.00860595703125, 0.0145263671875, 0.00128173828125, -0.0076904296875, 0.012451171875, -0.01953125, -0.0115966796875, -0.0031890869140625, 0.02685546875, -0.003082275390625, -0.0301513671875, 0.00982666015625, -0.01165771484375, -0.0001583099365234375, -0.01361083984...
[ 11249, 30022, 10625, 52366, 19, 3768, 18, 14858, 84751, 10644, 18499, 20625, 142508, 1556, 1022, 191147, 38699, 257, 2646, 40798, 1081, 163731, 14525, 17367, 30152, 52782, 3034, 5442, 108837, 15205, 129697, 125565, 133, 23988, 3525, 9014, 35187...
[ 0.0186614990234375, 0.1409912109375, 0.04144287109375, 0.1280517578125, 0.055572509765625, 0.1026611328125, 0.123046875, 0.227294921875, 0.1824951171875, 0.20751953125, 0.1568603515625, 0.1322021484375, 0.2249755859375, 0.0921630859375, 0.06573486328125, 0.053558349609375, 0.14025878...
embed
57980048_c0
57980048
haskell
0
Title: Runtime error - Non-exhaustive patterns in function Problem title: Runtime error - Non-exhaustive patterns in function Tags: runtime-error, haskell Problem: Runtime error - Non-exhaustive patterns in function I want to write a function which prints out a list of numbers from 1 to n: [1,2,...n], I know it can be ...
Runtime error - Non-exhaustive patterns in function Runtime error - Non-exhaustive patterns in function runtime-error haskell Runtime Non-exhaustive addtimes_ a:lst a-1 testing.hs Runtime error - Non-exhaustive patterns in function I want to write a function which prints out a list of numbers from 1 to n: [1,2,...n], I...
[ -0.0084228515625, 0.00799560546875, 0.010986328125, -0.0081787109375, 0.005340576171875, 0.009765625, -0.00555419921875, -0.0040283203125, -0.0162353515625, -0.033203125, 0.021728515625, -0.029052734375, 0.02294921875, 0.0191650390625, 0.0098876953125, -0.00087738037109375, 0.0180664...
[ 28398, 6032, 18499, 3775, 3355, 18391, 4935, 103510, 7, 23, 32354, 11675, 188800, 1556, 142508, 15190, 70141, 10, 12, 271, 5759, 134234, 127, 3444, 33022, 28412, 1810, 5303, 101935, 1295, 106, 47, 653, 133063, 27, 19, 3714, 831, 16940, 39...
[ 0.1575927734375, 0.1820068359375, 0.1885986328125, 0.204345703125, 0.047882080078125, 0.14990234375, 0.1055908203125, 0.2371826171875, 0.058258056640625, 0.0634765625, 0.1915283203125, 0.14453125, 0.1744384765625, 0.1492919921875, 0.2493896484375, 0.10540771484375, 0.1864013671875, ...
embed
24566943_c0
24566943
haskell
0
Title: How to implement &quot;symmetric non-strict or&quot; in Haskell Problem title: How to implement &quot;symmetric non-strict or&quot; in Haskell Tags: haskell Problem: How to implement "symmetric non-strict or" in Haskell I want to define a function that have the following properties symmetricLazyOr :: Bool -> Boo...
How to implement &quot;symmetric non-strict or&quot; in Haskell How to implement &quot;symmetric non-strict or&quot; in Haskell haskell How Haskell Bool How to implement "symmetric non-strict or" in Haskell I want to define a function that have the following properties And otherwise it works like the normal or . Is it ...
[ 0.00897216796875, 0.030517578125, 0.0167236328125, -0.01141357421875, -0.01129150390625, 0.0128173828125, -0.0162353515625, 0.00653076171875, -0.01007080078125, 0.00013446807861328125, -0.005035400390625, 0.00927734375, -0.00482177734375, 0.004180908203125, 0.013916015625, 0.0032501220...
[ 11249, 47, 29479, 230612, 238, 351, 144225, 707, 23, 20625, 142508, 41502, 9, 1556, 2460, 929, 3444, 61924, 32354, 765, 25632, 183871, 120262, 43240, 1884, 3638, 7722, 484, 208124, 22443, 18425, 35299, 26950, 10, 876, 182906, 756, 34475, 13...
[ 0.08544921875, 0.033935546875, 0.2509765625, 0.291015625, 0.150634765625, 0.2037353515625, 0.227294921875, 0.266845703125, 0.06591796875, 0.1497802734375, 0.25634765625, 0.01519775390625, 0.0084228515625, 0.1240234375, 0.04974365234375, 0.1614990234375, 0.06146240234375, 0.17443847...
embed
38062271_c1
38062271
haskell
1
just cleared and reinstalled the Haskell Platform (I didn't know about sandboxing). One thing that stands out is that -includeC:\Users\Dav... looks to me like a typo, as if there should be a space between -include and C:\... but I don't know how to change this. I couldn't find CmdLine.hs , just the interface file CmdL...
just cleared and reinstalled the Haskell Platform (I didn't know about sandboxing). One thing that stands out is that -includeC:\Users\Dav... looks to me like a typo, as if there should be a space between -include and C:\... but I don't know how to change this. I couldn't find CmdLine.hs , just the interface file CmdL...
[ -0.01165771484375, -0.00091552734375, 0.01025390625, 0.0120849609375, -0.0054931640625, 0.0074462890625, 0.01214599609375, -0.0341796875, -0.006805419921875, 0.005340576171875, 0.0023651123046875, -0.0181884765625, -0.00726318359375, -0.0169677734375, 0.004730224609375, 0.0039672851562...
[ 34735, 456, 80383, 20625, 142508, 70968, 3714, 19096, 11728, 9157, 20, 217028, 441, 12, 41872, 1062, 7, 1314, 397, 3818, 27, 33342, 47, 1884, 11417, 31, 5608, 32628, 17721, 136, 313, 3642, 15549, 903, 69427, 7413, 54686, 93232, 5, 127, ...
[ 0.14892578125, 0.04833984375, 0.1307373046875, 0.1549072265625, 0.262451171875, 0.15625, 0.0260772705078125, 0.077880859375, 0.1834716796875, 0.0275115966796875, 0.103759765625, 0.30078125, 0.09674072265625, 0.166748046875, 0.0338134765625, 0.1552734375, 0.17529296875, 0.1875, 0....
embed
58880459_c0
58880459
haskell
0
Title: Comparing list of tuples Problem title: Comparing list of tuples Tags: haskell Problem: Comparing list of tuples I started to learn Haskell 2 weeks ago, so this question might be easy solved - It would be great if someone could explain me even simple steps. I need tuples to be compared for their second component...
Comparing list of tuples Comparing list of tuples haskell Comparing Double Example1 Example2 Example3 Example4 Example5 Comparing list of tuples I started to learn Haskell 2 weeks ago, so this question might be easy solved - It would be great if someone could explain me even simple steps. I need tuples to be compared f...
[ -0.0033111572265625, -0.004364013671875, 0.00653076171875, 0.001678466796875, -0.0018310546875, 0.005828857421875, -0.003509521484375, 0.0045166015625, 0.016357421875, 0.0218505859375, -0.00555419921875, -0.0047607421875, -0.0052490234375, -0.0050048828125, -0.017333984375, -0.00367736...
[ 113307, 214, 5303, 370, 99726, 111, 1556, 142508, 107172, 89536, 8705, 304, 363, 617, 758, 30698, 20625, 23468, 86869, 73342, 8781, 98441, 3871, 154186, 17932, 82761, 3444, 2046, 10, 167375, 34292, 2208, 136, 190, 765, 282, 63600, 99, 29806...
[ 0.195556640625, 0.038604736328125, 0.1689453125, 0.1446533203125, 0.2210693359375, 0.0268707275390625, 0.1165771484375, 0.2081298828125, 0.1729736328125, 0.166259765625, 0.113525390625, 0.0180206298828125, 0.109619140625, 0.04949951171875, 0.144287109375, 0.024871826171875, 0.0894775...
embed