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
23565877_c0
23565877
haskell
0
Title: generalize maybe and either functions in haskell Problem title: generalize maybe and either functions in haskell Tags: haskell, generics Problem: generalize maybe and either functions in haskell Is there a function in haskell that generalizes the maybe and either functions? For instance, I am imagining a functio...
generalize maybe and either functions in haskell generalize maybe and either functions in haskell haskell generics valForError SOMETHING Just Nothing Right Left generalize maybe and either functions in haskell Is there a function in haskell that generalizes the maybe and either functions? For instance, I am imagining a...
[ -0.01031494140625, 0.004425048828125, 0.00946044921875, -0.0260009765625, 0.015380859375, 0.0174560546875, -0.025146484375, -0.02294921875, 0.0020294189453125, -0.013427734375, 0.0023193359375, -0.0238037109375, 0.0223388671875, -0.002349853515625, -0.0031280517578125, -0.0059509277343...
[ 4537, 20650, 51139, 136, 40101, 32354, 23, 1556, 142508, 189534, 3502, 18537, 18468, 31611, 15969, 33677, 191226, 9563, 182747, 90911, 636, 2480, 2071, 2685, 10, 450, 7, 70, 86898, 1884, 903, 27985, 678, 31380, 318, 6713, 8352, 4086, 47691,...
[ 0.2034912109375, 0.15576171875, 0.287109375, 0.1270751953125, 0.2373046875, 0.248291015625, 0.09088134765625, 0.152099609375, 0.2449951171875, 0.20361328125, 0.1466064453125, 0.059722900390625, 0.076904296875, 0.09014892578125, 0.002349853515625, 0.046356201171875, 0.06317138671875, ...
embed
37764592_c0
37764592
haskell
0
Title: Print out a Binary Tree Problem title: Print out a Binary Tree Tags: haskell, binary-tree Problem: Print out a Binary Tree This is my Guidline: data BinTree α = Empty | Node (BinTree α) α (BinTree α) deriving (Eq, Show) Now i want to create a function: levels :: BinTree a -> [[a]] This should print out a Binary ...
Print out a Binary Tree Print out a Binary Tree haskell binary-tree Print Binary Tree BinTree Empty Node Show Print out a Binary Tree This is my Guidline: Now i want to create a function: This should print out a Binary Tree in a list, but each level in its own. For Example: [[1],[2,3],[4,5,6,7]] or ... I defined the ro...
[ -0.00714111328125, 0.0108642578125, -0.0074462890625, 0.0014495849609375, 0.0177001953125, 0.0247802734375, -0.0179443359375, -0.0201416015625, 0.00124359130859375, -0.0174560546875, 0.00927734375, -0.036376953125, 0.0022125244140625, 0.01409912109375, -0.003387451171875, 0.01635742187...
[ 39754, 1810, 54092, 1294, 101344, 10, 1556, 142508, 2394, 6635, 62600, 16666, 62731, 31678, 939, 438, 112, 17367, 6955, 532, 2256, 3444, 28282, 32354, 5608, 28412, 5303, 1284, 12638, 17366, 6863, 10002, 89536, 25256, 155761, 80389, 136555, 70...
[ 0.1832275390625, 0.1444091796875, 0.22314453125, 0.1531982421875, 0.268310546875, 0.033447265625, 0.09515380859375, 0.206787109375, 0.1724853515625, 0.1181640625, 0.2398681640625, 0.1295166015625, 0.2315673828125, 0.14453125, 0.0577392578125, 0.098876953125, 0.0574951171875, 0.1040...
embed
26975626_c0
26975626
haskell
0
Title: Struggling with lists in Haskell Problem title: Struggling with lists in Haskell Tags: haskell Problem: Struggling with lists in Haskell I'm having trouble with a list of lists in Haskell. Here's my function: create_matrix :: (Read t, Integral t) => [String] -> t -> [[t]] create_list_of_lists (x:xs) num = [read ...
Struggling with lists in Haskell Struggling with lists in Haskell haskell Struggling Haskell create_matrix Read Integral create_list_of_lists x:xs Exception hondt.hs:39:1-81 Non-exhaustive Struggling with lists in Haskell I'm having trouble with a list of lists in Haskell. Here's my function: When i run it like this: i...
[ -0.010498046875, 0.0096435546875, -0.0001544952392578125, 0.020751953125, 0.007568359375, 0.00543212890625, -0.007568359375, -0.009521484375, 0.0179443359375, -0.0003910064697265625, 0.00156402587890625, -0.034423828125, 0.0234375, -0.01361083984375, -0.016845703125, -0.002777099609375...
[ 63667, 9815, 2069, 678, 5303, 7, 20625, 142508, 23, 1556, 28282, 192, 87427, 4764, 204681, 6562, 4390, 1022, 12, 425, 63928, 63345, 18, 127, 34539, 176442, 418, 3775, 18391, 63134, 111, 32354, 11675, 1884, 903, 12096, 5773, 104851, 140992, ...
[ 0.1229248046875, 0.122314453125, 0.0291290283203125, 0.0970458984375, 0.250732421875, 0.050079345703125, 0.146240234375, 0.23388671875, 0.00372314453125, 0.129638671875, 0.12646484375, 0.036590576171875, 0.1285400390625, 0.13720703125, 0.203857421875, 0.2266845703125, 0.129638671875,...
embed
72262840_c0
72262840
haskell
0
Title: How does a function with 'do' work in this context? Problem title: How does a function with 'do' work in this context? Tags: haskell Problem: How does a function with 'do' work in this context? So I have found a function on this forum from about 7 years ago and wanted to figure out exactly th...
How does a function with 'do' work in this context? How does a function with 'do' work in this context? haskell How Bool How does a function with 'do' work in this context? So I have found a function on this forum from about 7 years ago and wanted to figure out exactly the way it works as I'm quite ...
[ 0.00830078125, 0.00921630859375, 0.0184326171875, -0.0025787353515625, -0.018798828125, 0.01416015625, -0.004669189453125, -0.003204345703125, 0.0159912109375, -0.0125732421875, 0.005462646484375, -0.0228271484375, -0.002593994140625, 0.00787353515625, -0.00372314453125, 0.015747070312...
[ 11249, 14602, 32354, 678, 3768, 246, 4488, 903, 43701, 1556, 142508, 2460, 929, 10, 23, 14037, 4738, 5369, 6650, 26366, 3917, 442, 43240, 3525, 20625, 237875, 28219, 198343, 139392, 117, 14311, 337, 31, 34677, 142424, 34475, 13267, 653, 850...
[ 0.145263671875, 0.1148681640625, 0.2381591796875, 0.1341552734375, 0.13134765625, 0.25390625, 0.17724609375, 0.058990478515625, 0.1856689453125, 0.1378173828125, 0.2454833984375, 0.105712890625, 0.2109375, 0.040008544921875, 0.04473876953125, 0.0234832763671875, 0.03643798828125, 0...
embed
6023237_c0
6023237
haskell
0
Title: Can't perform I/O in foldr? Problem title: Can't perform I/O in foldr? Tags: io, haskell, fold, monads Problem: Can't perform I/O in foldr? I have a Data.Map structure that maps String s to Strings s. For whatever reason, I want to print the contents of the map in the format key: value using foldrWithK...
Can't perform I/O in foldr? Can't perform I/O in foldr? io haskell fold monads Can Data.Map Strings M.foldrWithKey k:b Can't perform I/O in foldr? I have a Data.Map structure that maps String s to Strings s. For whatever reason, I want to print the contents of the map in the format key: value using foldrWithK...
[ -0.0098876953125, -0.004638671875, 0.0016937255859375, -0.02392578125, -0.01123046875, 0.0130615234375, 0.002166748046875, -0.0113525390625, -0.00118255615234375, -0.0024566650390625, 0.005218505859375, -0.037353515625, 0.015625, 0.0020904541015625, 0.0025634765625, -0.0086669921875, ...
[ 4171, 3768, 18, 51339, 87, 64, 670, 23, 18344, 7569, 22995, 1556, 142508, 42822, 2667, 712, 11809, 166179, 23351, 5180, 276, 42, 194583, 162429, 472, 275, 45646, 22288, 214, 91, 47, 28412, 10941, 9384, 22799, 34292, 4734, 5117, 12830, 135...
[ 0.1143798828125, 0.02984619140625, 0.120849609375, 0.1632080078125, 0.089111328125, 0.2291259765625, 0.2164306640625, 0.09661865234375, 0.182861328125, 0.244873046875, 0.1768798828125, 0.0863037109375, 0.2275390625, 0.2186279296875, 0.03070068359375, 0.033905029296875, 0.105346679687...
embed
3603602_c0
3603602
haskell
0
Title: haskell: 99 questions #7: heterogeneous list Problem title: haskell: 99 questions #7: heterogeneous list Tags: haskell Problem: haskell: 99 questions #7: heterogeneous list I'm learning haskell. Currently working through 99 questions , a little bit stuck on #7: Problem 7 (**) Flatten a nested list structure. Tra...
haskell: 99 questions #7: heterogeneous list haskell: 99 questions #7: heterogeneous list haskell Main Elem List haskell: 99 questions #7: heterogeneous list I'm learning haskell. Currently working through 99 questions , a little bit stuck on #7: Where do Elem and List come from? What do I have to do to be able to use ...
[ 0.002716064453125, 0.00811767578125, 0.00830078125, 0.0096435546875, -0.005035400390625, 0.02197265625, 0.0006561279296875, -0.017578125, -0.00543212890625, -0.00014019012451171875, 0.00110626220703125, -0.04296875, 0.00311279296875, -0.002960205078125, -0.0189208984375, 0.003677368164...
[ 1556, 142508, 10078, 17582, 966, 12, 77099, 15292, 10821, 5303, 12321, 540, 195, 32036, 52080, 20697, 8305, 10176, 179933, 468, 78662, 54, 136, 1380, 1295, 765, 19048, 4527, 2856, 1528, 9655, 61924, 3525, 10644, 6097, 39116, 57143 ]
[ 0.1416015625, 0.2037353515625, 0.2095947265625, 0.179443359375, 0.14697265625, 0.01129150390625, 0.189453125, 0.1875, 0.10028076171875, 0.19775390625, 0.1312255859375, 0.128173828125, 0.2288818359375, 0.240478515625, 0.059539794921875, 0.0243988037109375, 0.0184173583984375, 0.0334...
embed
37296825_c1
37296825
haskell
1
safeFreeze vector let vec = VU.take size v' return (vec, g') I notice that rand_vec1 and rand_vec2 are always identical, which is to be expected, since the same random number generator is used. However, rand_sample1 and rand_sample2 differs even though they both use the same random generator. Even stranger, more than h...
safeFreeze vector let vec = VU.take size v' return (vec, g') I notice that rand_vec1 and rand_vec2 are always identical, which is to be expected, since the same random number generator is used. However, rand_sample1 and rand_sample2 differs even though they both use the same random generator. Even stranger, more than h...
[ -0.007781982421875, 0.0174560546875, -0.01446533203125, -0.01080322265625, 0.01336669921875, -0.004302978515625, -0.01953125, -0.0179443359375, 0.02392578125, -0.04150390625, 0.019287109375, 0.037109375, 0.01336669921875, 0.0159912109375, -0.01275634765625, 0.005889892578125, -0.0202...
[ 46002, 81437, 731, 173, 18770, 2633, 22834, 120403, 78219, 13267, 81, 25, 30646, 35259, 706, 60322, 27388, 454, 418, 136, 304, 11343, 31943, 6827, 47, 84751, 5701, 96759, 14012, 145823, 11814, 33306, 433, 33209, 129927, 21208, 15044, 4527, ...
[ 0.2000732421875, 0.1890869140625, 0.1566162109375, 0.193359375, 0.1729736328125, 0.0379638671875, 0.197509765625, 0.190673828125, 0.1539306640625, 0.104736328125, 0.15869140625, 0.06488037109375, 0.111328125, 0.2261962890625, 0.0714111328125, 0.09075927734375, 0.2088623046875, 0.02...
embed
19258618_c0
19258618
haskell
0
Title: Differentiate between String and [Char] Problem title: Differentiate between String and [Char] Tags: haskell, types Problem: Differentiate between String and [Char] I know that String is defined as [Char], yet I would like to make a difference between the two of them in a class instance. Is that possible with so...
Differentiate between String and [Char] Differentiate between String and [Char] haskell types Differentiate Char Something FlexibleInstances OverlappingInstances Differentiate between String and [Char] I know that String is defined as [Char], yet I would like to make a difference between the two of them in a class inst...
[ 0.000728607177734375, -0.006622314453125, -0.0003490447998046875, 0.00286865234375, -0.01556396484375, 0.0361328125, -0.0032806396484375, -0.0146484375, 0.0159912109375, 0.00933837890625, -0.00445556640625, -0.039794921875, -0.00023937225341796875, 0.019287109375, -0.029052734375, -0.0...
[ 242520, 101426, 17721, 23351, 214, 136, 378, 84068, 1556, 142508, 52895, 21656, 200905, 180842, 2661, 116071, 9578, 143, 26783, 3714, 61924, 71, 237, 14373, 1884, 3249, 60212, 6626, 111, 2856, 18507, 110527, 7722, 27571, 88308, 3525, 50986, 2...
[ 0.1756591796875, 0.198974609375, 0.1483154296875, 0.25146484375, 0.176513671875, 0.076171875, 0.0148773193359375, 0.23974609375, 0.115478515625, 0.236328125, 0.1805419921875, 0.1605224609375, 0.1160888671875, 0.1663818359375, 0.122802734375, 0.1549072265625, 0.0963134765625, 0.1643...
embed
25958042_c0
25958042
haskell
0
Title: Can two non-functors compose to a functor? Problem title: Can two non-functors compose to a functor? Tags: category-theory, applicative, haskell, functor, composition Problem: Can two non-functors compose to a functor? We can have two types f, g :: * -> * such that they're not monads, but their composition is. F...
Can two non-functors compose to a functor? Can two non-functors compose to a functor? category-theory applicative haskell functor composition Can Can two non-functors compose to a functor? We can have two types f, g :: * -> * such that they're not monads, but their composition is. For example for an arbitrary fixed s :...
[ -0.0081787109375, -0.007293701171875, -0.0026397705078125, 0.0189208984375, 0.000812530517578125, 0.025634765625, -0.01104736328125, -0.00946044921875, -0.003448486328125, 0.0213623046875, 0.00836181640625, -0.019775390625, 0.00927734375, 0.020751953125, -0.0089111328125, -0.0001716613...
[ 4171, 6626, 351, 16498, 18770, 7, 150350, 47, 10, 7477, 9, 95487, 2347, 41816, 4935, 1556, 142508, 166577, 831, 765, 52895, 1238, 706, 1984, 661, 33079, 1836, 959, 2667, 712, 1284, 83, 61799, 188347, 91, 56112, 18, 173072, 22460, 532, 1...
[ 0.1112060546875, 0.204345703125, 0.229736328125, 0.161376953125, 0.203125, 0.08465576171875, 0.275390625, 0.1729736328125, 0.090087890625, 0.2117919921875, 0.041351318359375, 0.09228515625, 0.005126953125, 0.1644287109375, 0.1163330078125, 0.1134033203125, 0.19384765625, 0.21447753...
embed
51446524_c0
51446524
haskell
0
Title: Why doesn't this type check? Problem title: Why doesn't this type check? Tags: haskell Problem: Why doesn't this type check? class Foo t where foo :: t bar :: Binary t => t -> () bar = undefined repro :: (Binary t, Foo t) => Proxy t -> () repro _proxy = bar (foo :: t) The compiler complains: Could not ...
Why doesn't this type check? Why doesn't this type check? haskell Why Foo Binary Proxy _proxy Why doesn't this type check? The compiler complains: Could not deduce (Binary t0) arising from a use of ‘bar’ from the context: (Binary t, Foo t) bound by the type signature for: repro :: forall t. (Binary t, Foo t) ...
[ 0.0208740234375, 0.0089111328125, -0.01336669921875, 0.005645751953125, -0.005218505859375, -0.01226806640625, -0.0294189453125, 0.018798828125, 0.002685546875, -0.0040283203125, -0.01220703125, -0.0247802734375, 0.013427734375, 0.019775390625, -0.0142822265625, -0.000774383544921875, ...
[ 44084, 22027, 3768, 18, 903, 10644, 12765, 1556, 142508, 9572, 31, 54092, 1294, 1250, 50878, 64101, 53, 9969, 34759, 186992, 191147, 959, 8, 106357, 571, 73, 6635, 808, 77495, 4527, 1299, 43701, 99091, 138256, 61307, 5584, 27591, 10461, 358...
[ 0.128173828125, 0.1016845703125, 0.015289306640625, 0.1300048828125, 0.08642578125, 0.2218017578125, 0.256103515625, 0.11181640625, 0.224853515625, 0.184814453125, 0.1717529296875, 0.17529296875, 0.1226806640625, 0.1370849609375, 0.2425537109375, 0.16845703125, 0.0194549560546875, ...
embed
74286532_c1
74286532
haskell
1
. // * Otherwise return the input plus two. // // Here we have: // // m1: absl::StatusOr // m2: std::optional // std::function<absl::StatusOr<std::optional<int>>(std::optional<int>) f = someName(AddTwoUnless17); CHECK_EQ( absl::CancelledError(), f(absl::StatusOr<std::optional<int>>(absl::CancelledError()))); CHECK_EQ( ...
. // * Otherwise return the input plus two. // // Here we have: // // m1: absl::StatusOr // m2: std::optional // std::function<absl::StatusOr<std::optional<int>>(std::optional<int>) f = someName(AddTwoUnless17); CHECK_EQ( absl::CancelledError(), f(absl::StatusOr<std::optional<int>>(absl::CancelledError()))); CHECK_EQ( ...
[ -0.00946044921875, -0.014404296875, -0.00982666015625, -0.00775146484375, 0.005035400390625, 0.0106201171875, 0.00909423828125, -0.0272216796875, 0.005401611328125, 0, 0.02001953125, -0.01116943359375, -0.00016307830810546875, 0.01123046875, 0.0147705078125, -0.0245361328125, -0.0100...
[ 4666, 661, 64511, 90825, 30646, 107730, 1001, 6626, 11853, 642, 765, 347, 82825, 43719, 141, 135206, 223, 19060, 304, 6138, 71, 109585, 289, 12, 137175, 2055, 24861, 271, 4288, 1238, 2203, 3060, 163612, 284, 4028, 618, 3613, 14256, 9393, ...
[ 0.029998779296875, 0.05126953125, 0.0894775390625, 0.13623046875, 0.1942138671875, 0.2283935546875, 0.1763916015625, 0.2095947265625, 0.16162109375, 0.003509521484375, 0.07110595703125, 0.077880859375, 0.09552001953125, 0.136962890625, 0.1126708984375, 0.138916015625, 0.0784912109375...
embed
48951745_c0
48951745
haskell
0
Title: Printing Dynamic Data Problem title: Printing Dynamic Data Tags: types, haskell, generics Problem: Printing Dynamic Data I have a system in haskell that uses Data.Dynamic and Type.Reflection to perform inference and calculations. I would like to be able to print the results. Printing is easy when the type is sup...
Printing Dynamic Data Printing Dynamic Data types haskell generics Printing Dynamic Data Bool Printing Dynamic Data I have a system in haskell that uses Data.Dynamic and Type.Reflection to perform inference and calculations. I would like to be able to print the results. Printing is easy when the type is supplied e.g Bu...
[ 0.0162353515625, -0.0064697265625, 0.005157470703125, 0.032470703125, 0.00421142578125, 0.028564453125, -0.01287841796875, -0.00110626220703125, -0.0010223388671875, -0.007232666015625, -0.0216064453125, -0.04296875, -0.0120849609375, 0.00555419921875, -0.0026092529296875, 0.0224609375...
[ 39754, 214, 73327, 21068, 11809, 52895, 1556, 142508, 189534, 2460, 929, 5426, 23, 4527, 397, 29673, 136, 60457, 190015, 133, 10763, 51339, 53498, 74481, 1884, 19048, 28412, 50339, 23468, 10644, 120384, 370, 99726, 15190, 3525, 13315, 12638, ...
[ 0.2091064453125, 0.03375244140625, 0.17724609375, 0.104248046875, 0.1876220703125, 0.1610107421875, 0.1409912109375, 0.250732421875, 0.1673583984375, 0.088134765625, 0.1649169921875, 0.109130859375, 0.009735107421875, 0.045989990234375, 0.032745361328125, 0.14111328125, 0.05740356445...
embed
54821294_c0
54821294
haskell
0
Title: Counting number of Nodes in tree Haskell Problem title: Counting number of Nodes in tree Haskell Tags: haskell Problem: Counting number of Nodes in tree Haskell I am new to Haskell and still bit confused on some syntax pieces (coming from C/C++). I have this Tree data type (below) and constructor for t2 data Tre...
Counting number of Nodes in tree Haskell Counting number of Nodes in tree Haskell haskell Counting Nodes Haskell Tree Leaf Node Show Bool Counting number of Nodes in tree Haskell I am new to Haskell and still bit confused on some syntax pieces (coming from C/C++). I have this Tree data type (below) and constructor for ...
[ 0.01495361328125, -0.0137939453125, -0.003204345703125, 0.001983642578125, 0.033447265625, 0.0115966796875, -0.025634765625, -0.0220947265625, 0.0001659393310546875, -0.01507568359375, -0.0017547607421875, -0.031005859375, 0.020751953125, 0.003570556640625, 0.00994873046875, -0.0137329...
[ 1311, 128396, 14012, 438, 988, 23, 53201, 20625, 142508, 1556, 101344, 636, 2407, 112, 17367, 2460, 929, 3525, 55681, 86531, 37223, 2053, 10644, 17336, 64549, 808, 304, 33022, 32354, 8305, 54529, 110, 15400, 13267, 62731, 13, 27875, 11, 136...
[ 0.10198974609375, 0.09814453125, 0.10888671875, 0.173095703125, 0.1744384765625, 0.041351318359375, 0.2186279296875, 0.125, 0.1943359375, 0.0970458984375, 0.180419921875, 0.043121337890625, 0.1181640625, 0.039703369140625, 0.1226806640625, 0.082275390625, 0.1395263671875, 0.0086975...
embed
58632047_c0
58632047
haskell
0
Title: Haskell: Print Int from list one by one Problem title: Haskell: Print Int from list one by one Tags: haskell, list Problem: Haskell: Print Int from list one by one I've got a short question regarding something I want to do in Haskell. What I basically aim to achieve is to make a list of integers from 1 to a spec...
Haskell: Print Int from list one by one Haskell: Print Int from list one by one haskell list list Haskell Print _1_2_3_4_5_6_7_8 x:xs Haskell: Print Int from list one by one I've got a short question regarding something I want to do in Haskell. What I basically aim to achieve is to make a list of integers from 1 to a s...
[ -0.0191650390625, 0.002471923828125, -0.0019683837890625, 0.004608154296875, -0.01611328125, 0.015625, 0.0026702880859375, -0.0050048828125, 0.0035247802734375, -0.00177001953125, 0.01336669921875, -0.034912109375, -0.0035400390625, 0.00170135498046875, -0.005889892578125, 0.0159912109...
[ 20625, 142508, 12, 39754, 360, 18, 1295, 5303, 1632, 390, 1556, 101, 418, 304, 363, 617, 758, 910, 966, 1019, 1022, 425, 16610, 9655, 9844, 3444, 54, 23, 198343, 464, 69307, 3249, 892, 26255, 106, 29458, 34292, 113, 18852, 68252, 5, 5...
[ 0.1474609375, 0.236328125, 0.060882568359375, 0.232666015625, 0.1650390625, 0.1846923828125, 0.1104736328125, 0.2232666015625, 0.1357421875, 0.1024169921875, 0.09521484375, 0.012481689453125, 0.08258056640625, 0.033111572265625, 0.06640625, 0.07666015625, 0.057525634765625, 0.06634...
embed
64295535_c2
64295535
haskell
2
67b9wx23pfq815v1rpg5-RSA-2.3.1.drv, b4s6rcqnxnd9nsx5123n1xb0p1d7lz7r-authenticate-oauth-1.6.0.1.drv, jhkbm2z39sfi94zfy93bw4ivay21k49p-simple-reflect-0.3.3.drv, n13kcx1m809a2prdqbvm6v4vsdkfayym-lens-4.19.drv, whv58hpwx2yqchv14mgjjr4j6zs5lmmr-lens-aeson-1.0.2.drv, wwn14fv4gmwh4p2w1516fwhc88bz7wdr-time-locale-compat-0.1.1...
_EPOCH time-locale-compat.cabal setup-package.conf.d simple-reflect-0.3.3.tar.gz simple-reflect-0.3.3 simple-reflect.cabal Compiling Main Setup.hs Main.o bv3lckj9fqlzw84xafipfnnv13lpigs4-RSA-2.3.1.tar.gz RSA-2.3.1 Test.hs Linking Setup wmnnz02rq2pxdxzadmm57m1wdq253mz6-time-locale-compat-0.1.1.5-doc package.conf.d kpw4k...
[ -0.00008630752563476562, -0.00836181640625, 0.0040283203125, 0.005767822265625, 0.00787353515625, 0.0181884765625, -0.0203857421875, -0.00110626220703125, 0.00006198883056640625, 0.01953125, 0.01806640625, -0.016845703125, -0.0001697540283203125, -0.00579833984375, -0.01007080078125, -...
[ 647, 9698, 16999, 1733, 98908, 277, 4453, 408, 3571, 169581, 29102, 70547, 8781, 29087, 8996, 18, 170179, 28705, 867, 134693, 15612, 49725, 12321, 19943, 2037, 127, 130424, 120883, 97109, 8647, 12779, 910, 6032, 102014, 42876, 98169, 48650, 1...
[ 0.042572021484375, 0.170654296875, 0.1839599609375, 0.0992431640625, 0.1182861328125, 0.037872314453125, 0.1331787109375, 0.05828857421875, 0.179931640625, 0.1331787109375, 0.130615234375, 0.1376953125, 0.1678466796875, 0.1573486328125, 0.175048828125, 0.060546875, 0.10693359375, 0...
embed
35007537_c1
35007537
haskell
1
) Thank you in advance for any help! Edit Error with a lift before the mreq: Foundation.hs:166:49: Couldn't match type ‘HandlerT Auth (HandlerT App IO)’ with ‘transformers-0.4.2.0:Control.Monad.Trans.RWS.Lazy.RWST (Maybe (Env, FileEnv), HandlerSite m0, [Lang]) Enctype Ints m0’ Expected type: HandlerT Auth (HandlerT App...
) Thank you in advance for any help! Edit Error with a lift before the mreq: Foundation.hs:166:49: Couldn't match type ‘HandlerT Auth (HandlerT App IO)’ with ‘transformers-0.4.2.0:Control.Monad.Trans.RWS.Lazy.RWST (Maybe (Env, FileEnv), HandlerSite m0, [Lang]) Enctype Ints m0’ Expected type: HandlerT Auth (HandlerT App...
[ 0.000911712646484375, 0.0294189453125, -0.0140380859375, -0.03173828125, 0.00872802734375, 0.00946044921875, -0.0184326171875, -0.0277099609375, -0.0002384185791015625, -0.03857421875, 0.021484375, -0.01031494140625, 0.004486083984375, -0.0022735595703125, 0.034423828125, -0.0262451171...
[ 25689, 129745, 4358, 42079, 212059, 678, 60520, 8108, 347, 107, 864, 32807, 127, 7, 156215, 35167, 191147, 18, 14858, 10644, 135679, 603, 618, 5655, 927, 5659, 17780, 215175, 1314, 121254, 73011, 175904, 46674, 712, 62624, 78691, 2729, 3285, ...
[ 0.003662109375, 0.0703125, 0.123291015625, 0.033905029296875, 0.216796875, 0.033721923828125, 0.2763671875, 0.1522216796875, 0.04498291015625, 0.155517578125, 0.19482421875, 0.226318359375, 0.08642578125, 0.05975341796875, 0.1927490234375, 0.203125, 0.079833984375, 0.03030395507812...
embed
2744973_c0
2744973
haskell
0
Title: Is there any working implementation of reverse mode automatic differentiation for Haskell? Problem title: Is there any working implementation of reverse mode automatic differentiation for Haskell? Tags: haskell, automatic-differentiation Problem: Is there any working implementation of reverse mode automatic diff...
Is there any working implementation of reverse mode automatic differentiation for Haskell? Is there any working implementation of reverse mode automatic differentiation for Haskell? haskell automatic-differentiation Haskell Is there any working implementation of reverse mode automatic differentiation for Haskell? The c...
[ -0.019287109375, 0.042236328125, 0.025390625, 0.01239013671875, -0.02001953125, 0.0277099609375, -0.002410888671875, 0.006561279296875, -0.00408935546875, -0.0257568359375, -0.01043701171875, 0.00022983551025390625, -0.000888824462890625, -0.002227783203125, -0.00701904296875, -0.01263...
[ 2071, 2685, 2499, 20697, 208124, 39531, 184, 13736, 101038, 99710, 2320, 100, 20625, 142508, 1556, 238778, 14, 20903, 271, 174822, 23, 51592, 40225, 139509, 10557, 29102, 1021, 102107, 7693, 18444, 282, 12259, 14676, 397, 62548, 25188, 15700, ...
[ 0.001922607421875, 0.0198211669921875, 0.051544189453125, 0.15087890625, 0.19384765625, 0.2347412109375, 0.1787109375, 0.219482421875, 0.238037109375, 0.22216796875, 0.07763671875, 0.055511474609375, 0.150634765625, 0.2685546875, 0.1268310546875, 0.1878662109375, 0.1192626953125, 0...
embed
46860351_c0
46860351
haskell
0
Title: A Haskell List Involving Recursion and High Order Functions Problem title: A Haskell List Involving Recursion and High Order Functions Tags: recursion, list, haskell, function Problem: A Haskell List Involving Recursion and High Order Functions Now I have this code that takes a list and does something to the fir...
A Haskell List Involving Recursion and High Order Functions A Haskell List Involving Recursion and High Order Functions recursion list haskell function Haskell List Involving Recursion High Order Functions x:y:xs A Haskell List Involving Recursion and High Order Functions Now I have this code that takes a list and does...
[ 0.007476806640625, 0.01422119140625, 0.004669189453125, -0.00058746337890625, 0.0029296875, 0.00909423828125, -0.01019287109375, -0.0096435546875, 0.0152587890625, -0.0068359375, 0.029296875, -0.0341796875, 0.01141357421875, -0.00112152099609375, 0.007354736328125, 0.004180908203125, ...
[ 62, 20625, 142508, 32036, 3784, 165428, 42, 6889, 136, 19694, 81206, 28670, 195625, 1830, 5303, 1556, 32354, 1022, 12, 53, 425, 10763, 903, 18151, 51776, 14602, 5117, 12830, 7068, 11907, 3789, 1632, 30646, 27198, 297, 80854, 2967, 19441, 34...
[ 0.032989501953125, 0.1275634765625, 0.23291015625, 0.20556640625, 0.0465087890625, 0.132568359375, 0.135986328125, 0.07501220703125, 0.033294677734375, 0.079833984375, 0.1868896484375, 0.1124267578125, 0.1895751953125, 0.0953369140625, 0.195068359375, 0.1265869140625, 0.176025390625,...
embed
29892022_c0
29892022
haskell
0
Title: Do I have to repeat all dependencies in the test configuration? Problem title: Do I have to repeat all dependencies in the test configuration? Tags: haskell, cabal Problem: Do I have to repeat all dependencies in the test configuration? This bugs me time and again, basically if I create a test-suite in the cabal...
Do I have to repeat all dependencies in the test configuration? Do I have to repeat all dependencies in the test configuration? haskell cabal foo.cabal Foo Bar Do I have to repeat all dependencies in the test configuration? This bugs me time and again, basically if I create a test-suite in the cabal configuration I add...
[ -0.002655029296875, 0.01019287109375, -0.016357421875, -0.0010833740234375, -0.0096435546875, -0.030517578125, -0.0059814453125, 0.0213623046875, 0.0189208984375, -0.01043701171875, -0.007171630859375, -0.0068359375, -0.00885009765625, 0.0264892578125, 0.002197265625, 0.0107421875, 0...
[ 984, 765, 47, 119140, 756, 42548, 117538, 23, 3034, 180346, 87, 1556, 142508, 109524, 5775, 31, 408, 3571, 9572, 3253, 54608, 163, 1733, 13438, 28282, 68879, 15190, 70, 77635, 19437, 78303, 14947, 1096, 7, 60427, 936, 40059, 45367, 105254, ...
[ 0.021484375, 0.124267578125, 0.07183837890625, 0.262451171875, 0.130615234375, 0.2412109375, 0.177734375, 0.056640625, 0.2447509765625, 0.22607421875, 0.031402587890625, 0.12451171875, 0.1990966796875, 0.232421875, 0.08642578125, 0.07177734375, 0.0633544921875, 0.16259765625, 0.1...
embed
6215404_c0
6215404
haskell
0
Title: haskell state and typeclasses Problem title: haskell state and typeclasses Tags: haskell, typeclass, state, setter Problem: haskell state and typeclasses how can i group getX and putX in a class instance ? the code below is an answer for this post Class set method in Haskell using State-Monad import Control.Mona...
haskell state and typeclasses haskell state and typeclasses haskell typeclass state setter Control.Monad.State Point Show State haskell state and typeclasses how can i group getX and putX in a class instance ? the code below is an answer for this post Class set method in Haskell using State-Monad Later I hope I will im...
[ -0.007080078125, -0.00146484375, 0.006561279296875, -0.003631591796875, -0.0001201629638671875, 0.017333984375, -0.01190185546875, -0.00390625, 0.0218505859375, 0.0101318359375, -0.004730224609375, 0.0185546875, -0.0013427734375, 0.0068359375, -0.0283203125, 0.0093994140625, 0.003082...
[ 1556, 142508, 11341, 136, 10644, 67413, 90, 88685, 27131, 46674, 712, 135206, 41097, 17367, 22836, 3642, 831, 17, 21115, 2046, 1542, 3884, 23, 10, 18507, 110527, 18151, 35064, 35166, 35014, 5423, 55300, 20625, 17368, 9, 147466, 15673, 29479, ...
[ 0.1365966796875, 0.23876953125, 0.2032470703125, 0.1234130859375, 0.1759033203125, 0.247802734375, 0.045318603515625, 0.180908203125, 0.12841796875, 0.0780029296875, 0.134521484375, 0.0927734375, 0.08306884765625, 0.0684814453125, 0.1767578125, 0.06329345703125, 0.0692138671875, 0....
embed
33684108_c1
33684108
haskell
1
by + . Stream content: Apple Orange Blue @Has +kell @A +Really +Long +Word Dog ... Code using takeWhile : myConduit :: Conduit String IO String () myConduit = runMaybeC . forever $ do a <- maybe (lift mzero) return =<< await aConts <- if head item == '@' then takeWhile ((== '+') . head) else return [] liftIO . putStrL...
by + . Stream content: Apple Orange Blue @Has +kell @A +Really +Long +Word Dog ... Code using takeWhile : myConduit :: Conduit String IO String () myConduit = runMaybeC . forever $ do a <- maybe (lift mzero) return =<< await aConts <- if head item == '@' then takeWhile ((== '+') . head) else return [] liftIO . putStrL...
[ 0.00135040283203125, -0.0037841796875, -0.004791259765625, 0.01116943359375, 0.01324462890625, 0.01953125, 0.005279541015625, 0.01025390625, -0.000850677490234375, -0.015625, 0.003265380859375, 0.00390625, 0.01397705078125, 0.01239013671875, 0.004974365234375, -0.0098876953125, -0.01...
[ 390, 997, 5, 115061, 10941, 4129, 74888, 22928, 1374, 6495, 7, 142508, 284, 68996, 538, 4021, 164805, 41129, 153, 28864, 17368, 5646, 1456, 979, 133, 759, 11935, 112061, 1984, 1657, 23351, 214, 6, 17780, 11675, 82419, 372, 441, 136993, 36...
[ 0.1318359375, 0.1822509765625, 0.043670654296875, 0.1932373046875, 0.1578369140625, 0.195556640625, 0.1976318359375, 0.182373046875, 0.01763916015625, 0.123291015625, 0.04840087890625, 0.14794921875, 0.047637939453125, 0.1221923828125, 0.00762939453125, 0.0848388671875, 0.13879394531...
embed
36143522_c0
36143522
haskell
0
Title: How to call Haskell from Java Problem title: How to call Haskell from Java Tags: interpreter, java, haskell, ffi Problem: How to call Haskell from Java Before someone points out, I've looked at the answer here: Best way to call Haskell functions from within Java and I'm totally lost reading those answers. I have...
How to call Haskell from Java How to call Haskell from Java interpreter java haskell ffi Java How Haskell How to call Haskell from Java Before someone points out, I've looked at the answer here: Best way to call Haskell functions from within Java and I'm totally lost reading those answers. I have a set of Haskell funct...
[ 0.005401611328125, 0.01495361328125, -0.0020599365234375, 0.0181884765625, 0.00115203857421875, 0.0196533203125, 0.015869140625, -0.0096435546875, -0.0120849609375, -0.034912109375, -0.000324249267578125, -0.0186767578125, -0.01104736328125, 0.01416015625, -0.0028076171875, -0.0234375,...
[ 11249, 47, 11782, 20625, 142508, 1295, 41925, 29481, 56, 79, 330, 1556, 24500, 11345, 3917, 32354, 7, 28032, 72856, 5423, 11435, 6056, 7077, 127, 28723, 71924, 2806, 4527, 1884, 99926, 30957, 759, 75101, 105876, 3444, 28, 19908, 9433, 38415...
[ 0.0858154296875, 0.057037353515625, 0.1844482421875, 0.16650390625, 0.300537109375, 0.1781005859375, 0.2362060546875, 0.1734619140625, 0.09130859375, 0.086669921875, 0.1497802734375, 0.107177734375, 0.1192626953125, 0.0792236328125, 0.066162109375, 0.1947021484375, 0.0843505859375, ...
embed
18880114_c0
18880114
haskell
0
Title: Opening a .hs file with ghci in Terminal? Problem title: Opening a .hs file with ghci in Terminal? Tags: haskell, ghci, file, loading Problem: Opening a .hs file with ghci in Terminal? I'm using Mountain Lion. I open the terminal, then I load ghci , I write :l and then I try to load my file (which is in my deskt...
Opening a .hs file with ghci in Terminal? Opening a .hs file with ghci in Terminal? haskell ghci file loading Opening Terminal Prelude Users Desktop Test.hs Compiling Main Test.hs:1:7 Failed Opening a .hs file with ghci in Terminal? I'm using Mountain Lion. I open the terminal, then I load ghci , I write :l and then I ...
[ 0.006927490234375, -0.0021209716796875, -0.020751953125, -0.0048828125, 0.00482177734375, 0.0033416748046875, 0.0216064453125, -0.004425048828125, -0.00994873046875, -0.0390625, -0.00787353515625, -0.033203125, -0.00799560546875, -0.01226806640625, 0.0048828125, 0.0091552734375, 0.01...
[ 13527, 5, 127, 7, 11435, 678, 31380, 318, 23, 124090, 214, 1556, 142508, 72367, 1914, 822, 112, 53400, 141423, 8647, 15612, 49725, 12321, 966, 190355, 17368, 71175, 82209, 9803, 33949, 33022, 152, 141, 9790, 86983, 24911, 114669, 1295, 47, ...
[ 0.177978515625, 0.033843994140625, 0.1702880859375, 0.15576171875, 0.1588134765625, 0.08587646484375, 0.15283203125, 0.1883544921875, 0.061431884765625, 0.2454833984375, 0.0213775634765625, 0.1279296875, 0.176513671875, 0.1072998046875, 0.0517578125, 0.1126708984375, 0.01829528808593...
embed
50891866_c0
50891866
haskell
0
Title: Haskell Aeson Parse Mixed Elements Array Problem title: Haskell Aeson Parse Mixed Elements Array Tags: haskell, parsing, json, aeson Problem: Haskell Aeson Parse Mixed Elements Array I have a json like: { "name" : "Sam", "items": [ "sword", "shield", [] ] } and a data type data Adventurer = Adventurer { name :: ...
Haskell Aeson Parse Mixed Elements Array Haskell Aeson Parse Mixed Elements Array haskell parsing json aeson Haskell Aeson Parse Mixed Elements Array Sam Adventurer Generic Show FromJSON ToJSON Haskell Aeson Parse Mixed Elements Array I have a json like: and a data type The problem is caused by the fact that the "items...
[ -0.006439208984375, 0.00138092041015625, -0.01153564453125, 0.033935546875, -0.0223388671875, -0.002716064453125, -0.024169921875, -0.00567626953125, 0.005096435546875, 0.01239013671875, 0.004364013671875, -0.01177978515625, 0.00677490234375, 0.0009002685546875, -0.0179443359375, 0.002...
[ 20625, 142508, 62, 90, 191, 2392, 184, 37286, 297, 48325, 69253, 53, 1556, 366, 1647, 1681, 10, 3362, 121635, 42, 88342, 17367, 28090, 1375, 58627, 717, 1884, 136, 2053, 10644, 2967, 143434, 1486, 4432, 44457, 4173, 378, 10298, 2046, 8361...
[ 0.12255859375, 0.2132568359375, 0.074462890625, 0.100341796875, 0.1556396484375, 0.16455078125, 0.13916015625, 0.215576171875, 0.075927734375, 0.1552734375, 0.1778564453125, 0.0889892578125, 0.12548828125, 0.1949462890625, 0.1329345703125, 0.200439453125, 0.0236053466796875, 0.1667...
embed
52837350_c0
52837350
haskell
0
Title: Getting data elements through match Problem title: Getting data elements through match Tags: haskell Problem: Getting data elements through match I have an a list of data with the format [(StudID,Int)] where type StudID = String . Hence, I have a set of data: marks = [("8",90),("10",100),("5",86),("3",45)] I now...
Getting data elements through match Getting data elements through match haskell Getting StudID Getting data elements through match I have an a list of data with the format [(StudID,Int)] where type StudID = String . Hence, I have a set of data: I now want to obtain the second value based on a matching ID which is the f...
[ 0.003021240234375, 0.00115203857421875, 0.004364013671875, -0.004180908203125, -0.00433349609375, -0.0025787353515625, -0.006011962890625, 0.031494140625, 0.0145263671875, -0.0201416015625, 0.011962890625, -0.0031890869140625, -0.0306396484375, -0.027099609375, -0.0025634765625, 0.0010...
[ 210732, 2053, 80854, 8305, 14858, 1556, 142508, 83112, 7146, 5303, 9384, 3506, 4153, 18, 10644, 23351, 214, 5423, 3444, 113054, 17932, 34292, 35509, 11338, 5117, 12830, 12638, 370, 8705, 16487, 100, 758, 17281, 37842, 35064, 104250, 127308, 5...
[ 0.1175537109375, 0.1524658203125, 0.1702880859375, 0.1602783203125, 0.223388671875, 0.13134765625, 0.21142578125, 0.2049560546875, 0.21826171875, 0.092041015625, 0.1119384765625, 0.1673583984375, 0.000274658203125, 0.058685302734375, 0.093994140625, 0.07366943359375, 0.050537109375, ...
embed
22273041_c0
22273041
haskell
0
Title: How does Haskell determine correct data constructor? Problem title: How does Haskell determine correct data constructor? Tags: haskell Problem: How does Haskell determine correct data constructor? Here is my code: data TC a = DC1 a | DC2 a getDC :: TC a -> String getDC (DC1 x) = "created by first data constructo...
How does Haskell determine correct data constructor? How does Haskell determine correct data constructor? haskell How Haskell DC1 DC2 Main How does Haskell determine correct data constructor? Here is my code: In Hugs: "created by first data constructor" "created by second data constructor" So, the interpreter can deter...
[ 0.010986328125, 0.003204345703125, 0.002349853515625, 0.03369140625, 0.0169677734375, -0.00579833984375, 0.002655029296875, 0.013916015625, -0.0194091796875, -0.025634765625, 0.0047607421875, -0.03515625, 0.0034027099609375, 0.000949859619140625, 0, 0.004974365234375, 0.02197265625, ...
[ 11249, 20625, 142508, 83324, 26785, 2053, 64549, 748, 14602, 1556, 31455, 418, 304, 12321, 18151, 360, 99926, 7612, 27686, 390, 5117, 17932, 29481, 56, 831, 3129, 8035, 11814, 3714, 11907, 34292, 137272, 10644, 12765, 209, 52782, 10, 80844, ...
[ 0.08099365234375, 0.152099609375, 0.263671875, 0.1700439453125, 0.192138671875, 0.16357421875, 0.2086181640625, 0.18505859375, 0.02252197265625, 0.1361083984375, 0.11181640625, 0.093994140625, 0.124755859375, 0.034454345703125, 0.059417724609375, 0.0269775390625, 0.130859375, 0.083...
embed
41976077_c0
41976077
haskell
0
Title: GADT record function fails where deconstruction succeeds Problem title: GADT record function fails where deconstruction succeeds Tags: type-constraints, haskell, gadt Problem: GADT record function fails where deconstruction succeeds I'm trying to wrap my head around GADTs, and I suspect some magic is going on I ...
GADT record function fails where deconstruction succeeds GADT record function fails where deconstruction succeeds type-constraints haskell gadt GADT GADT record function fails where deconstruction succeeds I'm trying to wrap my head around GADTs, and I suspect some magic is going on I don't understand. Consider the fol...
[ -0.004547119140625, 0.0014495849609375, 0.006927490234375, -0.01336669921875, 0.009033203125, -0.01116943359375, -0.03759765625, 0.000629425048828125, 0.001953125, -0.01129150390625, -0.0079345703125, -0.0224609375, -0.0034027099609375, 0.00408935546875, 0.01287841796875, -0.0145263671...
[ 23749, 41072, 17164, 32354, 35782, 7440, 8, 238478, 214493, 10644, 2271, 2816, 4288, 1556, 142508, 914, 13384, 92610, 49846, 28219, 137399, 3293, 756, 4127, 9969, 1340, 65771, 161549, 12921, 110527, 80934, 384, 33342, 66161, 5701, 1284, 18499, ...
[ 0.1644287109375, 0.2138671875, 0.16796875, 0.1024169921875, 0.16064453125, 0.062347412109375, 0.142578125, 0.17724609375, 0.1356201171875, 0.1837158203125, 0.032684326171875, 0.146240234375, 0.0670166015625, 0.109619140625, 0.1912841796875, 0.1317138671875, 0.151123046875, 0.037994...
embed
43018103_c0
43018103
haskell
0
Title: What are infinite types? Problem title: What are infinite types? Tags: type-theory, haskell Problem: What are infinite types? Apparently, there is something called an infinite type in Haskell. For example, when I try iterate concat on GHCi, I get this: *Main> iterate concat <interactive>:24:9: error: • Occurs ch...
What are infinite types? What are infinite types? type-theory haskell it What Main Occurs Expected Actual Relevant What are infinite types? Apparently, there is something called an infinite type in Haskell. For example, when I try iterate concat on GHCi, I get this: My question is, what exactly are infinite types? How ...
[ 0.0196533203125, -0.0196533203125, 0.006500244140625, 0.00628662109375, -0.0147705078125, -0.0093994140625, -0.004150390625, 0.005706787109375, -0.005157470703125, -0.040283203125, 0.00537109375, -0.0341796875, -0.0125732421875, 0.0025787353515625, -0.01312255859375, 0.03466796875, 0...
[ 4865, 621, 54241, 13, 52895, 10644, 2347, 30675, 1556, 142508, 442, 48650, 60075, 100582, 30624, 9844, 35839, 142, 23, 20625, 9790, 8560, 158, 4460, 73265, 14, 2367, 66161, 11177, 154453, 65514, 30698, 56037, 46876, 63769 ]
[ 0.03900146484375, 0.0714111328125, 0.202392578125, 0.1343994140625, 0.281005859375, 0.25390625, 0.035400390625, 0.0157318115234375, 0.10479736328125, 0.235595703125, 0.06451416015625, 0.04736328125, 0.013580322265625, 0.057373046875, 0.0220489501953125, 0.0367431640625, 0.03216552734...
embed
77426312_c0
77426312
haskell
0
Title: How to list all values of sum type in Haskell Problem title: How to list all values of sum type in Haskell Tags: haskell, algebraic-data-types Problem: How to list all values of sum type in Haskell Question: I would like to generate a HTML form from types in Haskell. Color = Green | Yellow | Red | .... Fruit = A...
How to list all values of sum type in Haskell How to list all values of sum type in Haskell haskell algebraic-data-types How Haskell Color Green Yellow Red Fruit Apple Banana ALL Fruit.values How to list all values of sum type in Haskell Question: I would like to generate a HTML form from types in Haskell. User shall p...
[ 0.002593994140625, -0.0181884765625, -0.01416015625, 0.00628662109375, -0.02783203125, 0.000331878662109375, -0.004669189453125, -0.0081787109375, 0.028076171875, -0.015380859375, -0.01409912109375, -0.0308837890625, 0.01287841796875, -0.0135498046875, 0.004058837890625, 0.006225585937...
[ 11249, 47, 5303, 756, 142424, 111, 10554, 10644, 23, 20625, 142508, 1556, 429, 2844, 10135, 50986, 51193, 15497, 146762, 6096, 151958, 4129, 53592, 76, 58837, 27494, 1884, 139392, 19097, 3173, 1295, 52895, 53400, 35299, 39580, 36069, 35829, 7...
[ 0.055206298828125, 0.09735107421875, 0.204833984375, 0.1513671875, 0.2301025390625, 0.0887451171875, 0.2164306640625, 0.2147216796875, 0.0623779296875, 0.14306640625, 0.2486572265625, 0.1285400390625, 0.031524658203125, 0.035797119140625, 0.0804443359375, 0.1766357421875, 0.188110351...
embed
5557810_c1
5557810
haskell
1
question in my head. Let us write type Measure a = (a -> Double) -> Double and define measures as integration procedures against functions. In the linked question, I show how natural it is in this framework to express concepts like convolution or pushforward which are much more difficult (computationally, but also the...
question in my head. Let us write type Measure a = (a -> Double) -> Double and define measures as integration procedures against functions. In the linked question, I show how natural it is in this framework to express concepts like convolution or pushforward which are much more difficult (computationally, but also the...
[ -0.0022125244140625, 0.004150390625, -0.0010223388671875, 0.0194091796875, -0.0255126953125, 0.002227783203125, 0.006103515625, 0.00008726119995117188, 0.0341796875, -0.045166015625, -0.0272216796875, 0.010498046875, 0.007354736328125, 0.00537109375, 0.00537109375, 0.0012054443359375, ...
[ 9655, 23, 10336, 10842, 33022, 10644, 1215, 11, 56851, 10, 2203, 33079, 107172, 61924, 72350, 7, 237, 157353, 50491, 26548, 32354, 7639, 6083, 903, 170846, 36510, 23755, 158, 137089, 707, 25944, 2472, 19364, 5045, 1286, 34844, 7077, 17366, ...
[ 0.0784912109375, 0.0224456787109375, 0.09344482421875, 0.000823974609375, 0.041351318359375, 0.215576171875, 0.15087890625, 0.17626953125, 0.177490234375, 0.06787109375, 0.008453369140625, 0.040435791015625, 0.191650390625, 0.17822265625, 0.2978515625, 0.1160888671875, 0.076904296875...
embed
61621442_c0
61621442
haskell
0
Title: Looking up keys (parsed as String) from a Haskell Record Problem title: Looking up keys (parsed as String) from a Haskell Record Tags: haskell Problem: Looking up keys (parsed as String) from a Haskell Record Suppose I have a Haskell record like data HaskellRecord = HaskellRecord { _key1 :: Maybe String , _key2 ...
Looking up keys (parsed as String) from a Haskell Record Looking up keys (parsed as String) from a Haskell Record haskell a Looking Haskell Record HaskellRecord _key1 Maybe _key2 _key3 Just value1 value2 value3 value4 Nothing Looking up keys (parsed as String) from a Haskell Record Suppose I have a Haskell record like ...
[ -0.00494384765625, 0.0027313232421875, 0.006988525390625, -0.007080078125, 0.005218505859375, 0.00640869140625, 0.00653076171875, 0.004150390625, -0.0006866455078125, -0.00115203857421875, 0.002349853515625, -0.005157470703125, -0.0072021484375, -0.00653076171875, 0.0003108978271484375, ...
[ 157268, 1257, 22799, 7, 2500, 5281, 237, 23351, 214, 20625, 142508, 54877, 1295, 1556, 32271, 19770, 418, 83425, 304, 363, 34292, 617, 182747, 765, 17164, 1884, 3917, 64549, 32354, 6044, 450, 678, 7068 ]
[ 0.1248779296875, 0.1658935546875, 0.1885986328125, 0.054290771484375, 0.096923828125, 0.03485107421875, 0.051300048828125, 0.13720703125, 0.0672607421875, 0.09967041015625, 0.1976318359375, 0.183349609375, 0.0361328125, 0.09552001953125, 0.1759033203125, 0.133544921875, 0.00305175781...
embed
15996980_c0
15996980
haskell
0
Title: Haskell data type function parameter Problem title: Haskell data type function parameter Tags: haskell, types Problem: Haskell data type function parameter What is the significance of the parenthesis in a function definition in Haskell with respect to the data type of parameters. For example: doStuff Name -> Age...
Haskell data type function parameter Haskell data type function parameter haskell types Haskell Name Age NameConstr AgeConstr Nom Integer Haskell data type function parameter What is the significance of the parenthesis in a function definition in Haskell with respect to the data type of parameters. For example: with th...
[ 0.018310546875, -0.013916015625, 0.004425048828125, 0.0361328125, -0.00189208984375, 0.010498046875, -0.00084686279296875, -0.01446533203125, -0.016845703125, -0.00567626953125, 0.007415771484375, -0.05224609375, -0.0218505859375, -0.00360107421875, -0.001312255859375, -0.01171875, 0...
[ 20625, 142508, 2053, 10644, 32354, 171859, 1556, 52895, 15757, 72944, 11935, 9297, 438, 44401, 12330, 3956, 49129, 160291, 7, 80934, 15072, 25632, 61924, 174653, 8108, 12336, 191147, 136, 876, 141621, 3917, 90584, 3871, 3688, 1643, 59111, 6495,...
[ 0.1536865234375, 0.2418212890625, 0.1171875, 0.1900634765625, 0.20849609375, 0.2269287109375, 0.135009765625, 0.1640625, 0.05010986328125, 0.1307373046875, 0.034881591796875, 0.1151123046875, 0.00006103515625, 0.066162109375, 0.1474609375, 0.097900390625, 0.1978759765625, 0.2271728...
embed
22906192_c0
22906192
haskell
0
Title: Function elem without backticks not working Problem title: Function elem without backticks not working Tags: haskell, functional-programming Problem: Function elem without backticks not working I have to create a boolean function in Haskell that receives a word (String) and a list of characters. The function has...
Function elem without backticks not working Function elem without backticks not working haskell functional-programming Function elem without backticks not working I have to create a boolean function in Haskell that receives a word (String) and a list of characters. The function has to verify that all chars in the list ...
[ 0.01708984375, -0.0084228515625, 0.0101318359375, 0.01220703125, 0.00421142578125, 0.02490234375, 0.004730224609375, -0.0037841796875, -0.0230712890625, -0.03271484375, 0.01470947265625, 0.00016689300537109375, 0.0081787109375, 0.0140380859375, -0.0213623046875, -0.01806640625, 0.017...
[ 28670, 10763, 88, 195, 15490, 4420, 118, 22824, 959, 20697, 1556, 142508, 123309, 28966, 28282, 337, 31, 34677, 32354, 20625, 53299, 2565, 71713, 5303, 124850, 493, 756, 21441, 99201, 79315, 136, 5809, 98893, 18151, 33342, 134234, 43240, 1691...
[ 0.1546630859375, 0.059326171875, 0.1409912109375, 0.246826171875, 0.1776123046875, 0.1431884765625, 0.1751708984375, 0.15673828125, 0.09716796875, 0.1556396484375, 0.10260009765625, 0.21923828125, 0.12451171875, 0.077880859375, 0.0176849365234375, 0.0186767578125, 0.08587646484375, ...
embed
50457865_c1
50457865
haskell
1
a leftBranch rightBranch) = (a, mergeHeaps leftBranch rightBranch) makeHeap :: Map Key Value -> Heap a makeHeap map_ = makeHeap_ $ toList map_ makeHeap_ :: [(Key,Value)] -> Heap a makeHeap_ [] = Empty makeHeap_ (x:xs) = addToHeap (makeHeap_ xs) x huffmanEntry :: [Char]-> Heap a huffmanEntry text = makeHeap $ frequency...
a leftBranch rightBranch) = (a, mergeHeaps leftBranch rightBranch) makeHeap :: Map Key Value -> Heap a makeHeap map_ = makeHeap_ $ toList map_ makeHeap_ :: [(Key,Value)] -> Heap a makeHeap_ [] = Empty makeHeap_ (x:xs) = addToHeap (makeHeap_ xs) x huffmanEntry :: [Char]-> Heap a huffmanEntry text = makeHeap $ frequency...
[ 0.000926971435546875, -0.00445556640625, -0.00185394287109375, -0.0157470703125, 0.0150146484375, 0.010009765625, 0.00604248046875, -0.038818359375, 0.0062255859375, -0.00799560546875, -0.01708984375, -0.0167236328125, 0.032958984375, 0.03173828125, -0.0029296875, -0.00762939453125, ...
[ 10, 25737, 1603, 206, 7108, 2203, 11, 42564, 13025, 2631, 3249, 42719, 26824, 190060, 1529, 22288, 3650, 47, 154663, 162429, 50770, 31678, 939, 425, 15190, 7763, 55898, 21493, 669, 7768, 15123, 84068, 7986, 12478, 132887, 2263, 23962, 47644, ...
[ 0.024749755859375, 0.1944580078125, 0.1588134765625, 0.0771484375, 0.1597900390625, 0.04840087890625, 0.07952880859375, 0.1793212890625, 0.201904296875, 0.2049560546875, 0.146484375, 0.1583251953125, 0.13525390625, 0.1602783203125, 0.1583251953125, 0.13330078125, 0.03253173828125, ...
embed
51915219_c1
51915219
haskell
1
with that of ‘Int’ arising from a use of ‘coerce’ ... But I would still not welcome coerce , because it is far too easy to strip a safety label and shoot someone, once the reaching for it becomes habitual. Imagine that, in a cryptographic application, there are two values: x :: Prime Int and x' :: Sum Int . I would mu...
with that of ‘Int’ arising from a use of ‘coerce’ ... But I would still not welcome coerce , because it is far too easy to strip a safety label and shoot someone, once the reaching for it becomes habitual. Imagine that, in a cryptographic application, there are two values: x :: Prime Int and x' :: Sum Int . I would mu...
[ -0.0213623046875, 0.018798828125, 0.007659912109375, 0.010498046875, -0.0020294189453125, 0.00225830078125, 0.00141143798828125, -0.00836181640625, 0.0244140625, -0.0038909912109375, -0.0022735595703125, 0.002716064453125, -0.007415771484375, -0.01318359375, 0.0123291015625, -0.0105590...
[ 678, 450, 111, 4153, 18, 187, 72219, 4527, 587, 56, 329, 4966, 87, 2806, 7464, 959, 81907, 552, 6637, 2060, 5792, 23468, 43613, 81900, 67967, 106443, 22008, 58359, 214, 100, 43402, 133196, 215637, 48461, 38415, 6626, 142424, 1022, 1984, 5...
[ 0.08209228515625, 0.014190673828125, 0.0309600830078125, 0.1422119140625, 0.18408203125, 0.038543701171875, 0.027587890625, 0.1298828125, 0.12353515625, 0.2431640625, 0.2216796875, 0.0215606689453125, 0.01837158203125, 0.108154296875, 0.0672607421875, 0.1300048828125, 0.19140625, 0...
embed
26685976_c1
26685976
haskell
1
I came up with: revAppend :: List acc -> List xs -> Rev acc xs :~: Reverse' xs ++ acc revAppend _ Nil = Refl revAppend acc (Cons x xs) = case (revAppend (Cons x acc) xs, assoc (reverse' xs) (Cons x Nil) acc) of (Refl, Refl) -> Refl reverse' :: List xs -> List (Reverse' xs) reverse' Nil = Nil reverse' (Cons x xs) = app...
I came up with: revAppend :: List acc -> List xs -> Rev acc xs :~: Reverse' xs ++ acc revAppend _ Nil = Refl revAppend acc (Cons x xs) = case (revAppend (Cons x acc) xs, assoc (reverse' xs) (Cons x Nil) acc) of (Refl, Refl) -> Refl reverse' :: List xs -> List (Reverse' xs) reverse' Nil = Nil reverse' (Cons x xs) = app...
[ -0.024658203125, 0.033935546875, 0.01806640625, 0.01611328125, -0.007293701171875, -0.0005645751953125, 0.0091552734375, 0.0015869140625, 0.025634765625, 0.0062255859375, 0.01373291015625, 0.0234375, 0.0172119140625, 0.00927734375, -0.0157470703125, -0.00159454345703125, 0.0091552734...
[ 21449, 1257, 678, 37868, 39179, 3611, 1984, 32036, 50015, 1022, 7, 80893, 853, 37676, 25, 37223, 77175, 53295, 141, 11935, 7225, 65381, 63927, 238, 190015, 39531, 184, 114689, 185397, 83, 180, 21320, 64557, 8, 88981, 60042, 81979, 831, 390,...
[ 0.005584716796875, 0.074951171875, 0.035675048828125, 0.2010498046875, 0.2027587890625, 0.2252197265625, 0.044708251953125, 0.1649169921875, 0.094970703125, 0.0758056640625, 0.04931640625, 0.220458984375, 0.0885009765625, 0.210205078125, 0.04986572265625, 0.1417236328125, 0.181152343...
embed
27535082_c0
27535082
haskell
0
Title: extract each element in a list using list comprehension Problem title: extract each element in a list using list comprehension Tags: haskell Problem: extract each element in a list using list comprehension I am really new to haskell sorry if this is a relatively easy I have the following Tree data Tree a = Branc...
extract each element in a list using list comprehension extract each element in a list using list comprehension haskell list Tree Branch Finish Show extract each element in a list using list comprehension I am really new to haskell sorry if this is a relatively easy I have the following Tree and I want to write a funct...
[ -0.0036468505859375, -0.0076904296875, -0.00555419921875, 0.01129150390625, 0.0172119140625, 0.00750732421875, 0.0022430419921875, -0.00160980224609375, -0.0021820068359375, -0.0191650390625, -0.0130615234375, -0.040283203125, 0.0008392333984375, 0.006317138671875, -0.019287109375, 0.0...
[ 125663, 12638, 12830, 23, 5303, 17368, 46683, 3220, 6889, 1556, 142508, 101344, 21110, 206, 13316, 4745, 17367, 6183, 3525, 59090, 23468, 70, 25632, 3444, 33022, 32354, 42822, 62731, 13, 1984, 10, 33079, 91995, 756, 110, 112, 53201, 1660, 2...
[ 0.25048828125, 0.1424560546875, 0.1971435546875, 0.09173583984375, 0.211669921875, 0.0462646484375, 0.15625, 0.1639404296875, 0.0206451416015625, 0.128173828125, 0.2044677734375, 0.1922607421875, 0.1180419921875, 0.040618896484375, 0.157470703125, 0.125, 0.14501953125, 0.0081481933...
embed
28621084_c0
28621084
haskell
0
Title: What are the pros and cons about the ways to import an alternative Prelude? Problem title: What are the pros and cons about the ways to import an alternative Prelude? Tags: haskell Problem: What are the pros and cons about the ways to import an alternative Prelude? There are quite a few alternatives that (subjec...
What are the pros and cons about the ways to import an alternative Prelude? What are the pros and cons about the ways to import an alternative Prelude? haskell an qualified MyPrelude What Prelude LANGUAGE NoImplicitPrelude Some What are the pros and cons about the ways to import an alternative Prelude? There are quite ...
[ -0.01483154296875, 0.0014190673828125, 0.01385498046875, 0.014404296875, -0.0189208984375, -0.00347900390625, 0.0015716552734375, -0.0166015625, 0.0054931640625, -0.01007080078125, -0.00885009765625, 0.005126953125, -0.002838134765625, -0.003021240234375, 0.00799560546875, -0.010070800...
[ 38280, 136, 158, 24927, 30700, 1914, 822, 112, 48322, 1556, 142508, 142, 217225, 2646, 19273, 3358, 98064, 438, 128878, 60923, 52295, 5570, 20625, 168698, 86685, 10422, 4527, 14192, 9969, 34759, 48599, 4288, 186992, 35405, 57823, 176506 ]
[ 0.129638671875, 0.0985107421875, 0.1536865234375, 0.223876953125, 0.1729736328125, 0.14501953125, 0.1861572265625, 0.143798828125, 0.0218505859375, 0.1014404296875, 0.2420654296875, 0.013275146484375, 0.1728515625, 0.1053466796875, 0.1422119140625, 0.028533935546875, 0.0931396484375,...
embed
7713965_c0
7713965
haskell
0
Title: Searching a tree while storing the path Problem title: Searching a tree while storing the path Tags: haskell Problem: Searching a tree while storing the path type Pattern = [PatternPart] data PatternPart = MatchTuple [PatternPart] | Named String | MatchAny data ArguementIndex = InTuple Int ArguementIndex | -- ar...
Searching a tree while storing the path Searching a tree while storing the path haskell Searching Pattern PatternPart MatchTuple Named MatchAny ArguementIndex InTuple ArgIndex Any Maybe Just Searching a tree while storing the path I need to write a function getArgIndex to search testPattern for "hello" and return InTup...
[ -0.00080108642578125, 0.01458740234375, 0.0003795623779296875, 0.00145721435546875, -0.001861572265625, 0.0004482269287109375, -0.0026702880859375, -0.0146484375, 0.014404296875, -0.01611328125, 0.0169677734375, -0.019775390625, -0.005615234375, 0.0208740234375, 0.0244140625, 0.0036773...
[ 33086, 214, 53201, 12960, 3082, 60875, 1556, 142508, 9876, 22766, 58229, 67407, 15665, 8705, 2096, 299, 1172, 6261, 39659, 360, 177, 4153, 28541, 83425, 10, 70, 3871, 33022, 32354, 2046, 7614, 47, 33938, 3034, 8335, 3055, 19, 100, 127, 13...
[ 0.212158203125, 0.07568359375, 0.2032470703125, 0.10711669921875, 0.181640625, 0.1982421875, 0.1488037109375, 0.220947265625, 0.1328125, 0.0853271484375, 0.0887451171875, 0.1466064453125, 0.108642578125, 0.142822265625, 0.0556640625, 0.000457763671875, 0.091796875, 0.1500244140625,...
embed
5541555_c0
5541555
haskell
0
Title: Haskell : runGetState and lists Problem title: Haskell : runGetState and lists Tags: binary, parsing, haskell Problem: Haskell : runGetState and lists Hello I am trying to write a simple binary parser in Haskell using the runGetState monad. However, I am faced with the problem of parsing a list of fields and I a...
Haskell : runGetState and lists Haskell : runGetState and lists binary parsing haskell Haskell field_type getWord8 getWord16be getWord32be Haskell : runGetState and lists Hello I am trying to write a simple binary parser in Haskell using the runGetState monad. However, I am faced with the problem of parsing a list of f...
[ -0.0113525390625, -0.01007080078125, -0.013427734375, 0.0235595703125, -0.007110595703125, 0.028564453125, -0.003631591796875, -0.006103515625, 0, -0.00653076171875, 0.0157470703125, -0.00537109375, 0.00150299072265625, -0.0034332275390625, 0.00250244140625, -0.007415771484375, 0.016...
[ 20625, 142508, 11675, 724, 126, 135206, 13, 136, 5303, 2394, 6635, 366, 6953, 1556, 44457, 50986, 2046, 164805, 1019, 2485, 372, 6460, 35378, 31577, 33022, 8781, 2189, 2667, 712, 2577, 2967, 179933, 831, 15549, 1733, 3444, 64549, 12301, 23,...
[ 0.132568359375, 0.237060546875, 0.115478515625, 0.0574951171875, 0.109619140625, 0.18896484375, 0.04937744140625, 0.06951904296875, 0.1856689453125, 0.128662109375, 0.08251953125, 0.1322021484375, 0.057891845703125, 0.1190185546875, 0.1888427734375, 0.169189453125, 0.05584716796875, ...
embed
22699728_c0
22699728
haskell
0
Title: Error Installing GLFW-b on OS X Problem title: Error Installing GLFW-b on OS X Tags: macos, cabal-install, glfw, osx-mavericks, haskell Problem: Error Installing GLFW-b on OS X So I'm trying to install Lamdu , and because it relies on GLFW ( brew install glfw3 )I've had to install that, and the GLFW bindings for...
Error Installing GLFW-b on OS X Error Installing GLFW-b on OS X macos cabal-install glfw osx-mavericks haskell Error Installing GLFW-b glfw3 __objc_empty_vtable bindings-GLFW-3.0.3.2 Error Installing GLFW-b on OS X So I'm trying to install Lamdu , and because it relies on GLFW ( brew install glfw3 )I've had to install ...
[ 0.00506591796875, 0.0137939453125, 0.004150390625, -0.0091552734375, 0.00063323974609375, 0.00787353515625, -0.000050067901611328125, -0.0181884765625, -0.0211181640625, 0.0262451171875, -0.007537841796875, -0.0703125, 0.0101318359375, -0.0262451171875, -0.005401611328125, 0.0115966796...
[ 212059, 107951, 90799, 129699, 9, 275, 98, 11787, 1193, 291, 7840, 109524, 80383, 706, 17463, 434, 362, 425, 20628, 1556, 142508, 363, 3522, 170, 238, 33548, 939, 334, 22819, 128239, 78703, 132265, 107033, 20600, 59387, 693, 28702, 143006, ...
[ 0.1453857421875, 0.1810302734375, 0.1845703125, 0.252197265625, 0.05523681640625, 0.2095947265625, 0.04217529296875, 0.1463623046875, 0.12255859375, 0.06298828125, 0.1260986328125, 0.218505859375, 0.146484375, 0.0428466796875, 0.1722412109375, 0.174560546875, 0.0946044921875, 0.039...
embed
74499121_c0
74499121
haskell
0
Title: Haskell Task Instance Problem title: Haskell Task Instance Tags: haskell Problem: Haskell Task Instance I saw this exercise in a book and I am trying to do it but can't get any further. What I'm trying to do is implement, for the data type, a function area_t :: p -> Double that returns the area of a general tria...
Haskell Task Instance Haskell Task Instance haskell Haskell Task Instance area_t Double Triangle MTriangle tP1 Point tP2 tP3 Polygon Float Couldn Haskell Task Instance I saw this exercise in a book and I am trying to do it but can't get any further. What I'm trying to do is implement, for the data type, a function that...
[ 0.0108642578125, -0.00689697265625, 0.0194091796875, -0.005126953125, 0.00421142578125, 0.0106201171875, -0.00213623046875, 0.00023746490478515625, 0.0230712890625, -0.0225830078125, -0.01165771484375, -0.01214599609375, -0.00299072265625, -0.01434326171875, -0.025634765625, 0.00291442...
[ 20625, 142508, 9598, 92, 360, 116071, 1556, 16128, 454, 18, 107172, 4699, 109217, 416, 683, 418, 41097, 304, 363, 63306, 6126, 38699, 257, 191147, 19, 24124, 81979, 23, 12877, 136, 31577, 29479, 2053, 10644, 32354, 30646, 111, 4537, 1927, ...
[ 0.1429443359375, 0.250244140625, 0.1737060546875, 0.07257080078125, 0.076416015625, 0.2001953125, 0.1241455078125, 0.2003173828125, 0.0711669921875, 0.176025390625, 0.0906982421875, 0.176513671875, 0.215087890625, 0.133056640625, 0.03607177734375, 0.029388427734375, 0.10455322265625,...
embed
67661349_c1
67661349
haskell
1
we can define a relation RelLength which establishes a relation between the expected input and output and then prove it. Like this: Inductive RelLength (A:Type) : nat -> list A -> Prop := | len_nil : RelLength 0 nil | len_cons : forall l x n, RelLength n l -> RelLength (S n) (x::l) . Theorem len_corr : forall (A:Type)...
we can define a relation RelLength which establishes a relation between the expected input and output and then prove it. Like this: Inductive RelLength (A:Type) : nat -> list A -> Prop := | len_nil : RelLength 0 nil | len_cons : forall l x n, RelLength n l -> RelLength (S n) (x::l) . Theorem len_corr : forall (A:Type)...
[ -0.0206298828125, 0.0206298828125, 0.007415771484375, 0.030029296875, 0.00030517578125, -0.00823974609375, -0.0030517578125, 0.004058837890625, 0.020751953125, -0.038330078125, -0.00811767578125, -0.0019378662109375, 0.00994873046875, 0.032958984375, 0.01611328125, -0.0361328125, 0.0...
[ 831, 61924, 41911, 853, 141, 5267, 449, 927, 137633, 17721, 84751, 107730, 136, 140992, 23534, 18852, 360, 39367, 4935, 284, 12, 196707, 24, 18, 5303, 62, 43796, 3098, 17324, 757, 25553, 5584, 1022, 653, 96, 581, 58391, 67070, 100, 6562, ...
[ 0.027130126953125, 0.19287109375, 0.234619140625, 0.08465576171875, 0.0986328125, 0.113525390625, 0.1348876953125, 0.1314697265625, 0.0966796875, 0.06439208984375, 0.20849609375, 0.159912109375, 0.006622314453125, 0.1748046875, 0.212890625, 0.0165557861328125, 0.038818359375, 0.173...
embed
3322238_c0
3322238
haskell
0
Title: Haskell function composition (forward pipe) - why does this work? Problem title: Haskell function composition (forward pipe) - why does this work? Tags: haskell Problem: Haskell function composition (forward pipe) - why does this work? In the below code, fibseq represents a sequence of numbers from the Fibonacci...
Haskell function composition (forward pipe) - why does this work? Haskell function composition (forward pipe) - why does this work? haskell Haskell Haskell function composition (forward pipe) - why does this work? In the below code, fibseq represents a sequence of numbers from the Fibonacci sequence. (from code to solv...
[ 0.0220947265625, 0.0106201171875, -0.000518798828125, 0.02001953125, -0.007537841796875, 0.0113525390625, 0.0045166015625, 0.01397705078125, 0.01068115234375, -0.0157470703125, -0.00408935546875, 0.021728515625, 0.0179443359375, 0.01483154296875, -0.00543212890625, -0.007171630859375, ...
[ 20625, 142508, 32354, 166577, 2472, 19364, 137158, 15400, 14602, 903, 4488, 1556, 35064, 18151, 809, 275, 184, 864, 33636, 944, 101935, 1295, 3698, 20990, 52544, 40, 3956, 86869, 27331, 5177, 603, 61924, 23, 55923, 2633, 25632, 5062, 51, 40...
[ 0.1485595703125, 0.267822265625, 0.18994140625, 0.256103515625, 0.0997314453125, 0.181396484375, 0.20751953125, 0.1949462890625, 0.100341796875, 0.09014892578125, 0.171875, 0.1168212890625, 0.042816162109375, 0.0654296875, 0.1441650390625, 0.113037109375, 0.1575927734375, 0.1658935...
embed
56434345_c0
56434345
haskell
0
Title: Find next factor of KnownNat given a starting KnownNat at type level Problem title: Find next factor of KnownNat given a starting KnownNat at type level Tags: type-level-computation, haskell Problem: Find next factor of KnownNat given a starting KnownNat at type level I'm working on some Haskell code and I want ...
Find next factor of KnownNat given a starting KnownNat at type level Find next factor of KnownNat given a starting KnownNat at type level type-level-computation haskell Find KnownNat Find next factor of KnownNat given a starting KnownNat at type level I'm working on some Haskell code and I want to define a type that ta...
[ 0.0033111572265625, -0.00347900390625, 0.004058837890625, 0.022216796875, 0.01251220703125, 0.00665283203125, -0.002044677734375, -0.006439208984375, 0.0040283203125, -0.0012054443359375, 0.01123046875, -0.00958251953125, 0.00021266937255859375, 0.004425048828125, -0.0101318359375, 0.0...
[ 26040, 11737, 31461, 111, 70829, 19, 4645, 18, 34475, 72134, 99, 10644, 17366, 67919, 7077, 1556, 142508, 20625, 18151, 61924, 51776, 6626, 50339, 19336, 525, 17932, 117396, 101935, 702, 805, 16750, 387, 101637, 46622, 110, 14012, 27781, 1354...
[ 0.16162109375, 0.17724609375, 0.233642578125, 0.03924560546875, 0.189697265625, 0.07861328125, 0.22802734375, 0.134033203125, 0.053375244140625, 0.1187744140625, 0.0208740234375, 0.197021484375, 0.1556396484375, 0.1612548828125, 0.0079345703125, 0.099853515625, 0.21630859375, 0.105...
embed
4077970_c1
4077970
haskell
1
variables the smallest possible ranges. If your INT is never going to be above 100, make sure you initialise it as such! Techniques like these, and proper problem decomposition should - I think - allow for satisfactory checking of a pure-functional language like Haskell. I am not - yet - very experienced with formal m...
variables the smallest possible ranges. If your INT is never going to be above 100, make sure you initialise it as such! Techniques like these, and proper problem decomposition should - I think - allow for satisfactory checking of a pure-functional language like Haskell. I am not - yet - very experienced with formal m...
[ -0.01434326171875, 0.01470947265625, 0.0137939453125, 0.005615234375, -0.01165771484375, 0.007049560546875, -0.00628662109375, -0.013427734375, 0.01458740234375, -0.00494384765625, -0.006988525390625, -0.01385498046875, -0.000453948974609375, 0.0185546875, -0.00372314453125, 0.00268554...
[ 77336, 7, 70, 19336, 525, 7722, 37457, 5, 4263, 935, 6, 59537, 8306, 7730, 186, 36917, 805, 3249, 9077, 398, 61475, 3075, 442, 237, 6044, 38, 36630, 45602, 1884, 6097, 27798, 2967, 8, 277, 40322, 5608, 87, 5351, 63769, 100, 64561, 316...
[ 0.3115234375, 0.1385498046875, 0.091064453125, 0.1556396484375, 0.153076171875, 0.1453857421875, 0.182861328125, 0.0751953125, 0.03497314453125, 0.0557861328125, 0.04779052734375, 0.25732421875, 0.111083984375, 0.0516357421875, 0.005859375, 0.0694580078125, 0.1627197265625, 0.01126...
embed
51961404_c0
51961404
haskell
0
Title: Haskell cannot match expected type &#x27;Bool&#x27; to type [t0] Problem title: Haskell cannot match expected type &#x27;Bool&#x27; to type [t0] Tags: haskell, ghc, types Problem: Haskell cannot match expected type 'Bool' to type [t0] New to haskell and I keep running into this cryptic error when I try to patter...
Haskell cannot match expected type &#x27;Bool&#x27; to type [t0] Haskell cannot match expected type &#x27;Bool&#x27; to type [t0] haskell ghc types Haskell Bool Bits _:__ x:xs y:ys gates.hs:4:9 Couldn Haskell cannot match expected type 'Bool' to type [t0] New to haskell and I keep running into this cryptic error when I...
[ -0.00909423828125, 0.025146484375, -0.0084228515625, -0.005035400390625, -0.008056640625, -0.003326416015625, -0.0181884765625, 0.00982666015625, -0.002197265625, 0.013671875, 0.0076904296875, -0.024169921875, 0.007171630859375, -0.0220947265625, -0.00689697265625, -0.01446533203125, ...
[ 20625, 142508, 53418, 14858, 84751, 10644, 3768, 12647, 929, 47, 2389, 1556, 31380, 238, 52895, 2460, 27774, 1022, 425, 113, 4778, 70836, 127, 617, 1126, 191147, 2356, 13695, 51042, 3934, 903, 91190, 112569, 18499, 9790, 103510, 351, 201505, ...
[ 0.1639404296875, 0.255859375, 0.1783447265625, 0.19970703125, 0.169189453125, 0.1934814453125, 0.082275390625, 0.116943359375, 0.167236328125, 0.0523681640625, 0.1102294921875, 0.145263671875, 0.06591796875, 0.056793212890625, 0.1502685546875, 0.060455322265625, 0.128173828125, 0.0...
embed
52031292_c2
52031292
haskell
2
.5.10.2 Code signals: -optPdist/build/autogen/cabal_macros.h, Wai, Libz.so, DLL, zlib1g, zlib1g-dev, lib32z1, zlib1g:i386, lib32stdc, lib32gcc1, lib32ncurses5, x86_64-linux-gnu, libz.a, jfmiller28, dyn_o, dyn_hi, Idist, cabal_macros.h, wai-app-static-3.1.6.2-LkSB3kK5rpLKV2jrN2AtNR, Wmissing-home-modules, package.conf.i...
.so (libz.so: cannot open shared object file: no such file or directory) This is the error I'm getting while trying to install some of the WAI libraries: wai-app-static-3.1.6.2 wai-websockets-3.0.1.2 This seems to be related to Template Haskell having problems with dynamic linking . Other packages that link to zlib (or...
[ 0.0011749267578125, -0.00147247314453125, 0.0068359375, -0.00019550323486328125, -0.0003528594970703125, 0.00799560546875, -0.023681640625, -0.00872802734375, -0.00909423828125, 0.00799560546875, -0.0028228759765625, -0.03271484375, 0.0013885498046875, 0.00616455078125, -0.01129150390625...
[ 5, 991, 5612, 169, 53418, 9803, 99764, 36746, 11435, 110, 6044, 707, 14364, 53, 18499, 31577, 20600, 4336, 568, 35773, 10484, 259, 14, 9007, 201939, 97109, 178121, 14051, 27853, 132265, 48400, 62548, 196631, 20625, 142508, 44402, 84079, 3126,...
[ 0.0621337890625, 0.23681640625, 0.2193603515625, 0.1290283203125, 0.1500244140625, 0.193603515625, 0.2034912109375, 0.1995849609375, 0.1658935546875, 0.06787109375, 0.1246337890625, 0.000823974609375, 0.1025390625, 0.007110595703125, 0.1614990234375, 0.03155517578125, 0.13134765625, ...
embed
28802477_c0
28802477
haskell
0
Title: How to use $ for avoiding parenthesis in Haskell Problem title: How to use $ for avoiding parenthesis in Haskell Tags: haskell Problem: How to use $ for avoiding parenthesis in Haskell Haskell documentation( http://hackage.haskell.org/package/base-4.5.0.0/docs/Prelude.html#v:-36- ) states: $ has low, right-assoc...
How to use $ for avoiding parenthesis in Haskell How to use $ for avoiding parenthesis in Haskell haskell How Haskell How to use $ for avoiding parenthesis in Haskell Haskell documentation( http://hackage.haskell.org/package/base-4.5.0.0/docs/Prelude.html#v:-36- ) states: Namely, $ can be substituted with parentheses (...
[ -0.01007080078125, 0.00689697265625, 0.02734375, 0.01141357421875, -0.013671875, 0.00994873046875, -0.000598907470703125, 0.016357421875, 0.0205078125, -0.0247802734375, 0.0042724609375, -0.00396728515625, 0.00075531005859375, -0.00012683868408203125, -0.007293701171875, 0.009094238281...
[ 11249, 4527, 3650, 100, 71864, 49129, 160291, 7, 20625, 142508, 214, 23, 1556, 209806, 139509, 10557, 29102, 37382, 104867, 99929, 19273, 822, 112, 126884, 831, 161740, 297, 678, 35412, 67688, 23937, 108975, 28211, 14755, 27781, 5351, 5608, 1...
[ 0.043701171875, 0.155029296875, 0.23876953125, 0.0247039794921875, 0.196044921875, 0.1630859375, 0.1837158203125, 0.0654296875, 0.14599609375, 0.225341796875, 0.0350341796875, 0.0270233154296875, 0.1357421875, 0.046234130859375, 0.1253662109375, 0.08404541015625, 0.048583984375, 0....
embed
21301421_c0
21301421
haskell
0
Title: Regex-base causes package to indirectly depends on multiple versions of the same package Problem title: Regex-base causes package to indirectly depends on multiple versions of the same package Tags: haskell, cabal Problem: Regex-base causes package to indirectly depends on multiple versions of the same package I...
Regex-base causes package to indirectly depends on multiple versions of the same package Regex-base causes package to indirectly depends on multiple versions of the same package haskell cabal Regex-base regex-posix-0.95.2 mtl-2.1.2 regex-base-0.93.2 Regex-base causes package to indirectly depends on multiple versions o...
[ -0.0030364990234375, -0.0142822265625, 0.0205078125, 0.0145263671875, 0.006622314453125, 0.00160980224609375, -0.0172119140625, 0.0250244140625, 0.0186767578125, -0.0045166015625, 0.0089111328125, -0.004547119140625, 0.005523681640625, 0.0152587890625, 0.00958251953125, 0.0008506774902...
[ 11678, 3355, 37382, 113660, 98169, 116361, 56566, 48716, 11389, 5701, 98, 1556, 142508, 109524, 6835, 67890, 425, 143161, 158296, 18, 141, 5428, 48400, 107033, 11435, 5426, 88303, 26548, 5045, 114210, 276, 41445, 9790, 13438, 3525, 33976, 42548...
[ 0.1798095703125, 0.2333984375, 0.2457275390625, 0.1187744140625, 0.2054443359375, 0.2198486328125, 0.2115478515625, 0.1474609375, 0.1678466796875, 0.0638427734375, 0.024169921875, 0.1031494140625, 0.1982421875, 0.233642578125, 0.1492919921875, 0.142822265625, 0.15283203125, 0.11376...
embed
54859182_c1
54859182
haskell
1
with Pipelining wP z = z .| (* 8) .| (+ 1) .| fromIntegral .| sqrt .| subtract 1.0 .| (/ 2.0) .| floor Is this style prior art? Is (.|) a good way to spell that operation -- I think I've seen it as a Lens operator(?) Q 2. I've (deliberately) laid that out in pseudo-monad style. Could it actually be a do block? First I...
with Pipelining wP z = z .| (* 8) .| (+ 1) .| fromIntegral .| sqrt .| subtract 1.0 .| (/ 2.0) .| floor Is this style prior art? Is (.|) a good way to spell that operation -- I think I've seen it as a Lens operator(?) Q 2. I've (deliberately) laid that out in pseudo-monad style. Could it actually be a do block? First I...
[ -0.0294189453125, -0.012939453125, -0.00634765625, 0.011962890625, -0.02001953125, -0.0031585693359375, 0.00154876708984375, -0.03662109375, 0.00958251953125, -0.00628662109375, 0.006378173828125, 0.0296630859375, 0.0020294189453125, -0.0019989013671875, 0.00144195556640625, -0.0001859...
[ 678, 3065, 26338, 592, 148, 683, 97, 2203, 75402, 65034, 22183, 4879, 1295, 67, 5739, 141, 864, 3198, 1614, 39989, 18, 53855, 64, 16655, 74912, 903, 20623, 41928, 4927, 4127, 160093, 41018, 5351, 51592, 18226, 7, 39933, 2396, 787, 34642, ...
[ 0.1004638671875, 0.138427734375, 0.221435546875, 0.18798828125, 0.04742431640625, 0.0892333984375, 0.185791015625, 0.07159423828125, 0.07537841796875, 0.156005859375, 0.17578125, 0.0850830078125, 0.12890625, 0.083984375, 0.07379150390625, 0.0298919677734375, 0.06170654296875, 0.119...
embed
73846618_c0
73846618
haskell
0
Title: How can I make is so that a function in a shared library can&#x27;t be called without declaring it static? Problem title: How can I make is so that a function in a shared library can&#x27;t be called without declaring it static? Tags: shared-libraries, c, linker, haskell, gcc Problem: How can I make is so that a...
How can I make is so that a function in a shared library can&#x27;t be called without declaring it static? How can I make is so that a function in a shared library can&#x27;t be called without declaring it static? shared-libraries c linker haskell gcc How How can I make is so that a function in a shared library can't b...
[ 0.01153564453125, 0.0191650390625, 0.01153564453125, -0.002593994140625, -0.023681640625, -0.00543212890625, -0.00921630859375, -0.00689697265625, -0.0024261474609375, -0.032958984375, -0.02783203125, -0.02734375, -0.02294921875, 0.0247802734375, 0.002532958984375, 0.00061798095703125,...
[ 11249, 831, 87, 3249, 83, 221, 450, 32354, 23, 99764, 35773, 1294, 3768, 18, 35839, 15490, 8, 18347, 201939, 150, 2844, 501, 3126, 56, 1556, 142508, 22109, 238, 10, 2852, 442, 17368, 6626, 31344, 102158, 313, 20625, 9969, 1340, 5, 991, ...
[ 0.05810546875, 0.07086181640625, 0.008209228515625, 0.09478759765625, 0.010467529296875, 0.080322265625, 0.007904052734375, 0.209228515625, 0.072998046875, 0.2257080078125, 0.2086181640625, 0.12255859375, 0.01953125, 0.06597900390625, 0.192138671875, 0.1038818359375, 0.03961181640625...
embed
66091657_c0
66091657
haskell
0
Title: How to Implement functions from type signatures? Problem title: How to Implement functions from type signatures? Tags: function, functional-programming, haskell, implementation, types Problem: How to Implement functions from type signatures? I have the following two type signatures in Haskell: foo :: (a -> (a,b)...
How to Implement functions from type signatures? How to Implement functions from type signatures? function functional-programming haskell implementation types type How Implement How to Implement functions from type signatures? I have the following two type signatures in Haskell: I want to write a concrete implementatio...
[ 0.02734375, 0.004364013671875, -0.002105712890625, 0.0302734375, -0.000331878662109375, 0.0184326171875, -0.012939453125, 0.0133056640625, 0.0107421875, -0.0054931640625, -0.0020294189453125, -0.02490234375, -0.01025390625, 0.0262451171875, 0.00921630859375, -0.00555419921875, 0.0054...
[ 11249, 47, 153941, 32354, 7, 1295, 10644, 138256, 123309, 28966, 1556, 142508, 208124, 52895, 25632, 6626, 20625, 3444, 33022, 122776, 237875, 28219, 7440, 4034, 5775, 31, 51776, 33079, 275, 30646, 5303, 70541, 876, 1909, 501, 77681, 10, 136,...
[ 0.1219482421875, 0.0728759765625, 0.266845703125, 0.2279052734375, 0.130615234375, 0.162841796875, 0.263671875, 0.2452392578125, 0.1402587890625, 0.0899658203125, 0.1309814453125, 0.234375, 0.19580078125, 0.1820068359375, 0.0010986328125, 0.0633544921875, 0.129638671875, 0.00344848...
embed
55640713_c0
55640713
haskell
0
Title: Mark associative function as strict in Haskell to avoid space leaks Problem title: Mark associative function as strict in Haskell to avoid space leaks Tags: ghc, haskell Problem: Mark associative function as strict in Haskell to avoid space leaks For long time, I had difficulty in understanding why "simple" fold...
Mark associative function as strict in Haskell to avoid space leaks Mark associative function as strict in Haskell to avoid space leaks ghc haskell Mark Haskell sum1 Mark associative function as strict in Haskell to avoid space leaks For long time, I had difficulty in understanding why "simple" folds cause space leaks ...
[ -0.000827789306640625, -0.00439453125, 0.00457763671875, 0.01318359375, 0.0019683837890625, 0.00299072265625, -0.00933837890625, 0.0089111328125, 0.013916015625, -0.049560546875, 0.0196533203125, 0.005584716796875, 0.007720947265625, 0.0103759765625, 0.0198974609375, 0.0120849609375, ...
[ 7880, 166027, 272, 32354, 237, 81113, 20625, 142508, 71864, 32628, 95, 24251, 31380, 238, 1556, 10554, 418, 34844, 100094, 191560, 42822, 7, 22304, 98893, 212615, 27781, 18344, 7569, 190659, 997, 151575, 175399, 20174, 11675, 53697, 10023, 9969...
[ 0.197509765625, 0.171142578125, 0.016387939453125, 0.1734619140625, 0.035064697265625, 0.2259521484375, 0.12646484375, 0.25341796875, 0.1273193359375, 0.182861328125, 0.1607666015625, 0.1851806640625, 0.005615234375, 0.023590087890625, 0.10064697265625, 0.17431640625, 0.0453491210937...
embed
57918937_c0
57918937
haskell
0
Title: Nested datatype for square matrices Problem title: Nested datatype for square matrices Tags: nested, haskell, types Problem: Nested datatype for square matrices I am trying to understand how this datatype (Square) represents square matrices. type Square = Square' Nil data Square' t a = Zero (t (t a) ) | Succ (Sq...
Nested datatype for square matrices Nested datatype for square matrices nested haskell types Nested Square Nil Zero Succ Cons Nested datatype for square matrices I am trying to understand how this datatype (Square) represents square matrices. So. What is t here? I suppose it is one of the types declared above. I decide...
[ -0.00634765625, 0.0030364990234375, 0.0074462890625, 0.0238037109375, 0.01531982421875, 0.00128936767578125, -0.01324462890625, -0.00860595703125, 0.00138092041015625, 0.01507568359375, -0.013427734375, -0.0125732421875, 0.0015106201171875, 0.0029754638671875, -0.037109375, -0.01232910...
[ 28701, 71, 2053, 50986, 100, 108047, 50944, 8512, 1556, 142508, 52895, 68305, 77175, 83947, 1832, 10060, 39215, 5170, 31577, 28219, 3642, 903, 94727, 13, 33636, 4865, 83, 808, 3688, 139124, 159978, 36917, 4034, 30362, 3884, 892, 1505, 201, ...
[ 0.239501953125, 0.106689453125, 0.1165771484375, 0.2374267578125, 0.0413818359375, 0.2275390625, 0.198974609375, 0.2431640625, 0.08642578125, 0.2073974609375, 0.182373046875, 0.1710205078125, 0.145263671875, 0.146240234375, 0.08319091796875, 0.1173095703125, 0.1376953125, 0.0546264...
embed
12790987_c0
12790987
haskell
0
Title: haskell - function with lists involving Maybe not working Problem title: haskell - function with lists involving Maybe not working Tags: option-type, list, haskell, function Problem: haskell - function with lists involving Maybe not working I have the following function: -- xs: list to be changed -- ws: list of ...
haskell - function with lists involving Maybe not working haskell - function with lists involving Maybe not working option-type list haskell function Maybe Main haskell - function with lists involving Maybe not working I have the following function: The function takes in 2 lists. ws are the indices of the values in xs ...
[ -0.0284423828125, 0.0002231597900390625, 0.021484375, -0.034912109375, 0.003814697265625, -0.00054168701171875, 0.01318359375, -0.00421142578125, 0.0003681182861328125, 0.022216796875, 0.00151824951171875, -0.00628662109375, 0.0035247802734375, 0.0029296875, 0.01226806640625, -0.014831...
[ 1556, 142508, 32354, 678, 5303, 7, 23, 3784, 6496, 83425, 959, 20697, 35829, 50986, 12321, 765, 70, 25632, 51776, 116, 148, 621, 136044, 142424, 1022, 3444, 47, 15549, 757, 31635, 43240, 3060, 50218, 27060, 133063, 63527, 26785, 216969, 617...
[ 0.1748046875, 0.267822265625, 0.2000732421875, 0.132080078125, 0.2154541015625, 0.1016845703125, 0.07098388671875, 0.1192626953125, 0.0306396484375, 0.177001953125, 0.1593017578125, 0.1695556640625, 0.18359375, 0.1453857421875, 0.125732421875, 0.009063720703125, 0.004730224609375, ...
embed
27501974_c0
27501974
haskell
0
Title: partial applied function in the recursion Problem title: partial applied function in the recursion Tags: ghci, haskell Problem: partial applied function in the recursion I am beginner in Haskell. I wrote a function, which applies another function several times to the argument: frepeat :: (Integral n) => n -> (a ...
partial applied function in the recursion partial applied function in the recursion ghci haskell Integral Invalid n-1 partial applied function in the recursion I am beginner in Haskell. I wrote a function, which applies another function several times to the argument: It works: Now I want rewrite it more compactly , wit...
[ -0.001312255859375, 0.0009002685546875, 0.00238037109375, 0.00469970703125, 0.00604248046875, -0.00830078125, 0.0029296875, -0.0152587890625, 0.0128173828125, -0.00897216796875, 0.015869140625, -0.004547119140625, -0.002410888671875, 0.02099609375, 0.0152587890625, -0.00909423828125, ...
[ 2878, 289, 190659, 32354, 23, 195625, 1830, 31380, 318, 1556, 142508, 204681, 7013, 653, 5759, 1679, 20625, 54397, 4027, 25720, 15700, 40368, 20028, 47, 10750, 43240, 3444, 456, 434, 18781, 1286, 94928, 15490, 4568, 8110, 37842, 527, 73265, ...
[ 0.1729736328125, 0.1083984375, 0.1893310546875, 0.172607421875, 0.0306396484375, 0.1910400390625, 0.12451171875, 0.10321044921875, 0.1170654296875, 0.1043701171875, 0.2257080078125, 0.15478515625, 0.1507568359375, 0.00714111328125, 0.1240234375, 0.052947998046875, 0.1099853515625, ...
embed
21826665_c0
21826665
haskell
0
Title: Is it possible to do the IO monad from Haskell in Clojure? Problem title: Is it possible to do the IO monad from Haskell in Clojure? Tags: io-monad, monads, clojure, haskell Problem: Is it possible to do the IO monad from Haskell in Clojure? I've had a look at the algo.monads and fluokitten documentation. I've a...
Is it possible to do the IO monad from Haskell in Clojure? Is it possible to do the IO monad from Haskell in Clojure? io-monad monads clojure haskell Haskell Clojure Is it possible to do the IO monad from Haskell in Clojure? I've had a look at the algo.monads and fluokitten documentation. I've also read through monad b...
[ -0.01470947265625, 0.01263427734375, -0.00457763671875, 0.00168609619140625, 0.009521484375, 0.003997802734375, 0.00098419189453125, -0.01519775390625, -0.01507568359375, -0.041748046875, 0.00153350830078125, -0.0306396484375, -0.01116943359375, -0.0062255859375, 0.006744384765625, -0....
[ 2071, 442, 7722, 47, 54, 17780, 2667, 712, 1295, 20625, 142508, 23, 51053, 461, 107, 70, 22995, 3796, 20450, 1556, 5745, 87039, 6468, 14838, 75639, 209806, 1415, 41994, 786, 7460, 209517, 19895, 1015, 89655, 46771, 20903, 271, 35773, 60331,...
[ 0.054443359375, 0.04779052734375, 0.1728515625, 0.033477783203125, 0.108154296875, 0.25927734375, 0.16650390625, 0.2142333984375, 0.116943359375, 0.1485595703125, 0.26220703125, 0.07135009765625, 0.1737060546875, 0.1990966796875, 0.158935546875, 0.017242431640625, 0.2012939453125, ...
embed
71625997_c0
71625997
haskell
0
Title: Why does foldl&#x27; use a lot of RAM with complex data structures? Problem title: Why does foldl&#x27; use a lot of RAM with complex data structures? Tags: haskell, fold Problem: Why does foldl' use a lot of RAM with complex data structures? Lazy fold uses a lot of RAM. In Data.List , foldl' provides a left fol...
Why does foldl&#x27; use a lot of RAM with complex data structures? Why does foldl&#x27; use a lot of RAM with complex data structures? haskell fold Why RAM Data.List sum0 sum00 Why does foldl' use a lot of RAM with complex data structures? Lazy fold uses a lot of RAM. In Data.List , foldl' provides a left fold that us...
[ -0.0014495849609375, 0.0147705078125, 0.0147705078125, 0.017578125, 0.0048828125, 0.0096435546875, -0.0181884765625, 0.0087890625, 0.005462646484375, -0.0164794921875, 0.0224609375, -0.02587890625, 0.00127410888671875, 0.0198974609375, -0.004730224609375, -0.01165771484375, 0.0060119...
[ 44084, 14602, 18344, 20469, 3768, 74, 4527, 5915, 111, 26959, 678, 27140, 2053, 45646, 1556, 142508, 42822, 11809, 5, 154663, 10554, 2389, 7049, 25, 239, 3285, 360, 87344, 25737, 81113, 219836, 25632, 375, 7077, 209, 19879, 45234, 10176, 51...
[ 0.146484375, 0.0198974609375, 0.1812744140625, 0.246337890625, 0.04937744140625, 0.01214599609375, 0.188232421875, 0.1824951171875, 0.0226593017578125, 0.2294921875, 0.095458984375, 0.1925048828125, 0.0877685546875, 0.1429443359375, 0.121337890625, 0.254150390625, 0.251220703125, 0...
embed
44978869_c0
44978869
haskell
0
Title: Why can foldr take a function with three arguments? Problem title: Why can foldr take a function with three arguments? Tags: haskell, types, function, fold, arguments Problem: Why can foldr take a function with three arguments? I was having a look at some list operations and came across !! : (!!) :: [a] -> Int -...
Why can foldr take a function with three arguments? Why can foldr take a function with three arguments? haskell types function fold arguments Why k-1 y:ys Why can foldr take a function with three arguments? I was having a look at some list operations and came across !! : The function (\x r k -> ...) has type a -> (Int ...
[ -0.0021514892578125, 0.007232666015625, 0.0027618408203125, -0.0296630859375, 0.001983642578125, 0.00101470947265625, 0.001800537109375, -0.002197265625, 0.014892578125, -0.00823974609375, 0.0181884765625, -0.034912109375, -0.0213623046875, 0.0037078857421875, -0.00029754638671875, -0....
[ 44084, 831, 18344, 7569, 5646, 32354, 678, 17262, 10750, 7, 1556, 142508, 52895, 42822, 472, 5759, 113, 4778, 5303, 41018, 425, 1690, 33079, 10644, 10, 4153, 18, 360, 51776, 4734, 26946, 6626, 73342, 15400, 138, 16750, 17932 ]
[ 0.10369873046875, 0.061492919921875, 0.1556396484375, 0.224609375, 0.1025390625, 0.1790771484375, 0.06866455078125, 0.204833984375, 0.22802734375, 0.04473876953125, 0.0830078125, 0.1856689453125, 0.098388671875, 0.19970703125, 0.083740234375, 0.131103515625, 0.058990478515625, 0.09...
embed
7839992_c0
7839992
haskell
0
Title: haskell: creating list of records Problem title: haskell: creating list of records Tags: haskell, winghci Problem: haskell: creating list of records How to create a list of records in haskell I have a Record data TestList = Temp1 (String,[String]) | Temp2 (String,[(String,String)]) deriving (Show, Eq) I am creat...
haskell: creating list of records haskell: creating list of records haskell winghci the TestList Temp1 Temp2 Show minBound..maxBound Enum Possible haskell: creating list of records How to create a list of records in haskell I have a Record I am creating a list of records When I run, it throws me an error. It gives me a...
[ -0.000873565673828125, -0.01220703125, -0.00604248046875, 0.00067138671875, -0.000957489013671875, 0.0107421875, -0.0089111328125, -0.009765625, 0.0062255859375, 0.013427734375, -0.0086669921875, -0.02294921875, 0.02587890625, 0.0162353515625, 0.00994873046875, -0.0015869140625, 0.00...
[ 1556, 142508, 105233, 5303, 111, 115923, 14775, 127, 318, 8647, 154663, 37446, 418, 17367, 881, 12647, 7030, 24084, 357, 316, 115861, 11249, 47, 28282, 10, 23, 765, 54877, 11675, 104250, 163, 18499, 7722, 30022, 18, 28219, 26950, 73342 ]
[ 0.1689453125, 0.2349853515625, 0.162109375, 0.1910400390625, 0.1036376953125, 0.2242431640625, 0.0908203125, 0.04376220703125, 0.09381103515625, 0.11962890625, 0.130859375, 0.134765625, 0.002593994140625, 0.03759765625, 0.086669921875, 0.0239410400390625, 0.0911865234375, 0.0526428...
embed
37890385_c0
37890385
haskell
0
Title: Better way to write a pattern synonym Problem title: Better way to write a pattern synonym Tags: haskell Problem: Better way to write a pattern synonym In the course of my travels, I have written this pattern synonym: pattern ConsK :: a -> D k (StreamK k a) -> StreamK k a pattern ConsK x xs <- StreamK (Cons x ((...
Better way to write a pattern synonym Better way to write a pattern synonym haskell Better ConsK StreamK Cons UnsafeD ViewPatterns Better way to write a pattern synonym In the course of my travels, I have written this pattern synonym: The last line captures the intent of this pattern synonym: the virtual constructor Co...
[ -0.03369140625, 0.03466796875, -0.000675201416015625, -0.020751953125, 0.01708984375, -0.01611328125, -0.031494140625, -0.032958984375, 0.009521484375, -0.007537841796875, 0.02490234375, 0.0042724609375, 0.0274658203125, 0.01239013671875, 0.01495361328125, 0.0130615234375, -0.0007591...
[ 177154, 3917, 33022, 103510, 164661, 1556, 142508, 39215, 605, 115061, 992, 115840, 397, 29805, 8335, 3055, 10, 26983, 59121, 4568, 13315, 141621, 78091, 20513, 64549, 748, 15044, 137565, 76228, 51, 434, 13631, 1022, 10750, 14858, 3444, 41018, ...
[ 0.13623046875, 0.1038818359375, 0.1922607421875, 0.2476806640625, 0.250732421875, 0.103515625, 0.2232666015625, 0.1717529296875, 0.1895751953125, 0.1695556640625, 0.01055908203125, 0.1370849609375, 0.0308990478515625, 0.19140625, 0.1671142578125, 0.08447265625, 0.0188140869140625, ...
embed
20579477_c0
20579477
haskell
0
Title: Changing Undesired Type Inference In Haskell Problem title: Changing Undesired Type Inference In Haskell Tags: haskell Problem: Changing Undesired Type Inference In Haskell My matrix multiplication implementation is: mtrxMult :: (Num a) => [[a]] -> [a] -> [a] -> [a] mtrxMult [[]] _ _ = [] mtrxMult xs [] vec = 0 ...
Changing Undesired Type Inference In Haskell Changing Undesired Type Inference In Haskell haskell Changing Undesired Type Inference Haskell Num x:xs v:vs Changing Undesired Type Inference In Haskell My matrix multiplication implementation is: The idea is that the function call mtrxMult [[0,1],[1,0]] [2,3] [2,3] will ex...
[ -0.01324462890625, 0.0247802734375, 0.0034942626953125, 0.01422119140625, 0.0250244140625, 0.0001811981201171875, -0.0206298828125, -0.006317138671875, 0.005157470703125, -0.0123291015625, -0.0020751953125, -0.0184326171875, 0.006378173828125, -0.0162353515625, -0.01324462890625, 0.003...
[ 108193, 214, 79912, 172, 2822, 60457, 360, 69988, 13, 20625, 142508, 1556, 52782, 1022, 12, 425, 7, 81, 18043, 50944, 127664, 208124, 6528, 32354, 11782, 347, 18, 67179, 50657, 2389, 76172, 206808, 155761, 1221, 71062, 757, 661, 116, 997, ...
[ 0.1759033203125, 0.008758544921875, 0.127197265625, 0.18310546875, 0.09478759765625, 0.2247314453125, 0.0733642578125, 0.20166015625, 0.008636474609375, 0.176025390625, 0.25341796875, 0.1439208984375, 0.1416015625, 0.0894775390625, 0.00445556640625, 0.09619140625, 0.008270263671875, ...
embed
47295720_c1
47295720
haskell
1
y) "" row row1 :: BoardCell -> String row1 (square,int) = disp square printBoard :: Int -> Board -> String -> String printBoard width [] string = string ++ rowBreak(replicate width 0) printBoard width [(_,_)] string = printBoard width [] string printBoard width (_:rest) string = printBoard width rest string emptyBoard...
y) "" row row1 :: BoardCell -> String row1 (square,int) = disp square printBoard :: Int -> Board -> String -> String printBoard width [] string = string ++ rowBreak(replicate width 0) printBoard width [(_,_)] string = printBoard width [] string printBoard width (_:rest) string = printBoard width rest string emptyBoard...
[ -0.0162353515625, 0.01153564453125, -0.000751495361328125, 0.01068115234375, -0.0047607421875, -0.00145721435546875, 0.00927734375, -0.01904296875, 0.00372314453125, 0.010498046875, -0.00201416015625, -0.004608154296875, -0.005584716796875, -0.0255126953125, -0.03955078125, -0.01110839...
[ 113, 16, 44, 58, 15555, 418, 62554, 441, 6796, 23351, 214, 108047, 4288, 58580, 28412, 12647, 5861, 360, 18, 146984, 79315, 2203, 37223, 57572, 52721, 757, 56644, 10588, 201505, 13547, 106, 12301, 168407, 18344, 7569, 93232, 124519, 6712, 1...
[ 0.07122802734375, 0.03192138671875, 0.032470703125, 0.038665771484375, 0.19140625, 0.063232421875, 0.1802978515625, 0.070068359375, 0.1494140625, 0.1329345703125, 0.010467529296875, 0.13818359375, 0.1114501953125, 0.1092529296875, 0.145751953125, 0.1148681640625, 0.1614990234375, 0...
embed
36310299_c0
36310299
haskell
0
Title: Will a Haskell thread be GC&#x27;d if blocked indefinitely on an MVar/Chan/TQueue read? Problem title: Will a Haskell thread be GC&#x27;d if blocked indefinitely on an MVar/Chan/TQueue read? Tags: multithreading, haskell Problem: Will a Haskell thread be GC'd if blocked indefinitely on an MVar/Chan/TQueue read? ...
Will a Haskell thread be GC&#x27;d if blocked indefinitely on an MVar/Chan/TQueue read? Will a Haskell thread be GC&#x27;d if blocked indefinitely on an MVar/Chan/TQueue read? multithreading haskell Will Haskell MVar Chan TQueue Will a Haskell thread be GC'd if blocked indefinitely on an MVar/Chan/TQueue read? I have a...
[ 0.00183868408203125, 0.0223388671875, 0.03466796875, -0.002532958984375, -0.0048828125, -0.00604248046875, 0.0103759765625, -0.007049560546875, 0.004547119140625, -0.037841796875, 0.0135498046875, -0.020751953125, -0.0032196044921875, 0.00482177734375, -0.0033111572265625, 0.0228271484...
[ 20255, 20625, 142508, 86997, 69657, 3768, 2174, 46389, 297, 49919, 66160, 147, 127008, 41732, 13388, 12301, 618, 3869, 65847, 1556, 30448, 384, 71, 119140, 51776, 1295, 9433, 31247, 47143, 91067, 26866, 538, 27289, 119371, 12601, 8633, 19514, ...
[ 0.0355224609375, 0.1431884765625, 0.251953125, 0.236572265625, 0.19189453125, 0.011749267578125, 0.012054443359375, 0.1812744140625, 0.05438232421875, 0.1451416015625, 0.09625244140625, 0.1490478515625, 0.1500244140625, 0.1185302734375, 0.1236572265625, 0.1712646484375, 0.00524902343...
embed
25693483_c0
25693483
haskell
0
Title: Generalized Newtype Deriving Problem title: Generalized Newtype Deriving Tags: state-monad, deriving, haskell, monads, newtype Problem: Generalized Newtype Deriving Haskell can derive the instance for MonadState s in T1 below but not in T2 which is however a very similar type. In which way should I modify the co...
Generalized Newtype Deriving Generalized Newtype Deriving state-monad deriving haskell monads newtype Control.Monad.Reader Control.Monad.State Generalized Newtype Deriving MonadState LANGUAGE GeneralizedNewtypeDeriving runT1 ReaderT State Monad MonadReader runT2 StateT Generalized Newtype Deriving Haskell can derive th...
[ -0.0198974609375, 0.00994873046875, -0.00775146484375, -0.005157470703125, 0.01483154296875, 0.007781982421875, -0.017333984375, 0.0057373046875, -0.0034332275390625, -0.0203857421875, 0.0203857421875, 0.0101318359375, 0.0026702880859375, -0.000873565673828125, -0.021240234375, -0.0030...
[ 9082, 29367, 2356, 50986, 1310, 14, 11341, 3796, 712, 16406, 6496, 1556, 142508, 2667, 3525, 27131, 46674, 31345, 135206, 13, 60331, 71, 3358, 98064, 46568, 47731, 11675, 618, 418, 122636, 22836, 304, 20625, 122, 5844, 110527, 91, 384, 3506...
[ 0.1005859375, 0.04730224609375, 0.110107421875, 0.2423095703125, 0.09881591796875, 0.041900634765625, 0.1021728515625, 0.06744384765625, 0.111572265625, 0.153564453125, 0.040191650390625, 0.0980224609375, 0.238525390625, 0.086669921875, 0.0213165283203125, 0.110107421875, 0.036315917...
embed
26446393_c0
26446393
haskell
0
Title: translating Scheme call/cc to Haskell callCC Problem title: translating Scheme call/cc to Haskell callCC Tags: continuations, haskell, scheme Problem: translating Scheme call/cc to Haskell callCC Let us consider breaking out of an otherwise non-terminating fold: (call/cc (lambda (folded) (stream-fold (lambda (ac...
translating Scheme call/cc to Haskell callCC translating Scheme call/cc to Haskell callCC continuations haskell scheme Scheme Haskell v:acc translating Scheme call/cc to Haskell callCC Let us consider breaking out of an otherwise non-terminating fold: The Haskell equivalent of the above code would be This code does not...
[ -0.0250244140625, 0.02001953125, 0.0205078125, 0.00139617919921875, 0.01092529296875, -0.01470947265625, -0.00244140625, -0.0186767578125, 0.0030975341796875, -0.052490234375, 0.002777099609375, -0.011474609375, -0.009765625, -0.0037841796875, 0.0079345703125, -0.01434326171875, -0.0...
[ 3900, 143, 34702, 282, 11782, 64, 10060, 47, 20625, 142508, 13709, 9454, 1556, 150370, 81, 116987, 1810, 111, 120262, 351, 30524, 26518, 42822, 183234, 36917, 18151, 3293, 959, 9969, 186992, 2886, 64549, 54241, 10644, 125195, 18344, 48141, 50...
[ 0.08038330078125, 0.1068115234375, 0.173828125, 0.08642578125, 0.16552734375, 0.0187530517578125, 0.1417236328125, 0.0780029296875, 0.127197265625, 0.21435546875, 0.157470703125, 0.084228515625, 0.1134033203125, 0.1629638671875, 0.047760009765625, 0.10748291015625, 0.105224609375, ...
embed
75724067_c0
75724067
haskell
0
Title: Are all curried functions considered higher-order functions? Problem title: Are all curried functions considered higher-order functions? Tags: haskell, higher-order-functions, definition, currying Problem: Are all curried functions considered higher-order functions? If you take the definition from wikipedia of a...
Are all curried functions considered higher-order functions? Are all curried functions considered higher-order functions? haskell higher-order-functions definition currying Are all curried functions considered higher-order functions? If you take the definition from wikipedia of a higher-order function, it is a function...
[ 0.00872802734375, -0.039794921875, 0.01153564453125, -0.0081787109375, 0.0228271484375, 0.004638671875, 0.006591796875, -0.03564453125, 0.004638671875, -0.00762939453125, 0.0155029296875, -0.021240234375, -0.0166015625, -0.01104736328125, -0.009765625, -0.016357421875, -0.00430297851...
[ 756, 9709, 46572, 32354, 7, 90698, 77546, 80596, 1556, 142508, 9, 137175, 80934, 198555, 214, 15901, 7168, 111, 10, 40101, 51776, 15700, 237, 10750, 30646, 93343, 100094, 81814, 12989, 26946, 144429, 6626, 1286, 5701, 2806, 3249, 137567, 1500...
[ 0.143310546875, 0.1724853515625, 0.263671875, 0.241943359375, 0.10284423828125, 0.1046142578125, 0.2236328125, 0.2607421875, 0.1302490234375, 0.240234375, 0.06231689453125, 0.2353515625, 0.170166015625, 0.2464599609375, 0.1651611328125, 0.01568603515625, 0.11767578125, 0.0214691162...
embed
42495196_c0
42495196
haskell
0
Title: Haskell - Taking input during runtime Problem title: Haskell - Taking input during runtime Tags: haskell Problem: Haskell - Taking input during runtime I'm new to Haskell and I can't figure out how to accept input from the user during code execution. Say I type this code: import System.IO main = do putStrLn "Hi,...
Haskell - Taking input during runtime Haskell - Taking input during runtime haskell System.IO Haskell Taking Haskell - Taking input during runtime I'm new to Haskell and I can't figure out how to accept input from the user during code execution. Say I type this code: Well, I want the text "Hi, what's your name?" to sho...
[ -0.00946044921875, 0.00390625, 0.00860595703125, 0.0238037109375, -0.004364013671875, 0.01202392578125, -0.005889892578125, 0.00372314453125, 0.00159454345703125, -0.043701171875, 0.0032806396484375, -0.01470947265625, -0.0250244140625, 0.01116943359375, -0.00897216796875, 0.0190429687...
[ 20625, 142508, 2561, 214, 107730, 20271, 11675, 6032, 20, 1556, 12353, 17780, 3525, 47, 831, 26366, 3642, 26946, 1295, 38937, 18151, 71924, 1830, 10644, 903, 3444, 7986, 20861, 2367, 935, 9351, 7639, 8108, 23, 759, 28412, 17932, 13315, 4, ...
[ 0.1741943359375, 0.289794921875, 0.1826171875, 0.0887451171875, 0.251220703125, 0.1722412109375, 0.156494140625, 0.2041015625, 0.0052490234375, 0.1453857421875, 0.1241455078125, 0.157470703125, 0.05694580078125, 0.00860595703125, 0.00347900390625, 0.06024169921875, 0.0180206298828125...
embed
15216202_c0
15216202
haskell
0
Title: Should I use a lexer when using a parser combinator library like Parsec? Problem title: Should I use a lexer when using a parser combinator library like Parsec? Tags: parsec, lexer, haskell Problem: Should I use a lexer when using a parser combinator library like Parsec? When writing a parser in a parser combina...
Should I use a lexer when using a parser combinator library like Parsec? Should I use a lexer when using a parser combinator library like Parsec? parsec lexer haskell a Should Parsec Token Should I use a lexer when using a parser combinator library like Parsec? When writing a parser in a parser combinator library like ...
[ -0.013671875, 0.01141357421875, 0.006500244140625, 0.0250244140625, -0.006317138671875, -0.0001506805419921875, 0.018310546875, -0.00250244140625, 0.012451171875, -0.0247802734375, 0.00909423828125, 0.00714111328125, -0.0048828125, 0.0038299560546875, -0.008056640625, 0.002395629882812...
[ 151117, 4527, 10, 95, 34058, 17368, 366, 2189, 22321, 1290, 35773, 2392, 39797, 1884, 1556, 142508, 717, 1098, 32562, 20625, 116, 44126, 601, 18781, 65450, 23351, 107730, 47, 84694, 51339, 6953, 98, 7763, 42666, 33022, 22230, 214, 55300, 10...
[ 0.1202392578125, 0.1180419921875, 0.051177978515625, 0.1461181640625, 0.3115234375, 0.044525146484375, 0.1658935546875, 0.23583984375, 0.1981201171875, 0.106689453125, 0.147216796875, 0.130859375, 0.2449951171875, 0.007476806640625, 0.0469970703125, 0.1922607421875, 0.068359375, 0....
embed
53257977_c0
53257977
haskell
0
Title: Yesod app on keter with read-only access to DB Problem title: Yesod app on keter with read-only access to DB Tags: haskell, yesod, keter Problem: Yesod app on keter with read-only access to DB I have couple yesod apps deployed using keter with PostgreSQL. The thing I really like about them is the automatic DB mi...
Yesod app on keter with read-only access to DB Yesod app on keter with read-only access to DB haskell yesod keter Yesod ALTER TABLE Yesod app on keter with read-only access to DB I have couple yesod apps deployed using keter with PostgreSQL. The thing I really like about them is the automatic DB migration that happens ...
[ 0.01239013671875, 0.02294921875, -0.00084686279296875, -0.029296875, -0.004302978515625, 0.01239013671875, -0.005706787109375, -0.038330078125, -0.00080108642578125, -0.01220703125, 0.0157470703125, -0.00830078125, -0.0079345703125, 0.0166015625, 0.00933837890625, -0.0179443359375, 0...
[ 32635, 2199, 4027, 98, 311, 720, 678, 12301, 191, 538, 17203, 57976, 1556, 142508, 2422, 23722, 9804, 14755, 384, 183057, 24941, 49966, 13158, 2795, 7134, 158897, 6183, 1884, 101038, 212416, 8, 2577, 19336, 2967, 5423, 143126, 15700, 20513, ...
[ 0.1888427734375, 0.28125, 0.17138671875, 0.047088623046875, 0.150634765625, 0.235595703125, 0.04058837890625, 0.2008056640625, 0.1485595703125, 0.03948974609375, 0.13232421875, 0.1722412109375, 0.1019287109375, 0.20068359375, 0.1278076171875, 0.2379150390625, 0.1505126953125, 0.181...
embed
22209982_c0
22209982
haskell
0
Title: How to modify using a monadic function with lenses? Problem title: How to modify using a monadic function with lenses? Tags: haskell, haskell-lens, monads Problem: How to modify using a monadic function with lenses? I needed a lens function that works like over , but with monadic operations: overM :: (Monad m) =...
How to modify using a monadic function with lenses? How to modify using a monadic function with lenses? haskell haskell-lens monads a Control.Applicative Control.Lens How Monad Lens WrappedMonad LANGUAGE RankNTypes Functor WrapMonad How to modify using a monadic function with lenses? I needed a lens function that works...
[ -0.017822265625, -0.0019378662109375, -0.01055908203125, -0.0081787109375, 0.01007080078125, -0.004180908203125, -0.0224609375, -0.0169677734375, -0.00787353515625, -0.040283203125, 0.0030059814453125, 0.00433349609375, -0.003631591796875, -0.01177978515625, 0.0400390625, 0.00482177734...
[ 11249, 2811, 40383, 17368, 2667, 11, 18403, 32354, 678, 96, 47754, 47, 1556, 142508, 1977, 7, 712, 27131, 11048, 866, 1755, 60331, 71, 18226, 219, 48398, 46674, 98064, 134405, 196707, 28670, 18770, 13631, 44841, 3098, 43240, 1884, 645, 1284...
[ 0.06048583984375, 0.1566162109375, 0.1455078125, 0.1171875, 0.15771484375, 0.1109619140625, 0.1551513671875, 0.1888427734375, 0.138916015625, 0.1533203125, 0.1943359375, 0.018157958984375, 0.09991455078125, 0.2186279296875, 0.1607666015625, 0.0731201171875, 0.1251220703125, 0.15063...
embed
67210945_c1
67210945
haskell
1
14:27: error: • Couldn't match type ‘(Name, Coordinates, TotalPop)’ with ‘[([Char], (a0, a1), [a2])]’ Expected type: [([Char], (a0, a1), [a2])] Actual type: Place • In the first argument of ‘showPlace’, namely ‘p’ In the first argument of ‘(++)’, namely ‘showPlace p’ In the expression: showPlace p ++ "\n" | 14 | showPl...
14:27: error: • Couldn't match type ‘(Name, Coordinates, TotalPop)’ with ‘[([Char], (a0, a1), [a2])]’ Expected type: [([Char], (a0, a1), [a2])] Actual type: Place • In the first argument of ‘showPlace’, namely ‘p’ In the first argument of ‘(++)’, namely ‘showPlace p’ In the expression: showPlace p ++ "\n" | 14 | showPl...
[ -0.00518798828125, -0.007110595703125, 0.004852294921875, -0.007049560546875, -0.013916015625, 0.01141357421875, 0.0167236328125, -0.021728515625, 0.019775390625, 0.0269775390625, 0.0081787109375, -0.027099609375, 0.01239013671875, -0.0196533203125, -0.0201416015625, -0.004638671875, ...
[ 616, 27592, 18499, 768, 191147, 18, 14858, 10644, 163612, 1311, 43297, 1636, 33867, 127642, 678, 84068, 11, 2389, 10, 17727, 90173, 60075, 13, 100582, 41076, 5117, 10750, 31374, 143, 329, 110987, 254, 37223, 915, 125195, 7639, 19, 5170, 240...
[ 0.1649169921875, 0.177001953125, 0.20947265625, 0.07958984375, 0.1614990234375, 0.119873046875, 0.23193359375, 0.2352294921875, 0.15576171875, 0.07623291015625, 0.2041015625, 0.07086181640625, 0.1351318359375, 0.2296142578125, 0.115966796875, 0.2440185546875, 0.10400390625, 0.12927...
embed
59236163_c0
59236163
haskell
0
Title: print regards following functions as arguments Problem title: print regards following functions as arguments Tags: haskell-platform, haskell, monads Problem: print regards following functions as arguments So I'm learning Haskell and have a broader programm which i want to run, but I managed to narrow down why it...
print regards following functions as arguments print regards following functions as arguments haskell-platform haskell monads Sample Text Three x-1 Not print regards following functions as arguments So I'm learning Haskell and have a broader programm which i want to run, but I managed to narrow down why it doesn't work...
[ -0.004119873046875, 0.0162353515625, -0.008544921875, 0.00628662109375, 0.0142822265625, 0.00084686279296875, 0.000888824462890625, -0.0035552978515625, 0.0019378662109375, -0.00653076171875, 0.00714111328125, -0.01422119140625, -0.003265380859375, -0.0126953125, 0.004486083984375, -0....
[ 28412, 28601, 7, 25632, 32354, 237, 10750, 1556, 142508, 172121, 2667, 712, 947, 33209, 24129, 129335, 1022, 5759, 11205, 52080, 20625, 28966, 11675, 118201, 4488, 2967, 36917, 18151, 22027, 18, 9969, 1340, 3884, 294, 47290, 329, 51776, 7477,...
[ 0.2109375, 0.231201171875, 0.0261688232421875, 0.2071533203125, 0.18359375, 0.075927734375, 0.246337890625, 0.100341796875, 0.190185546875, 0.0826416015625, 0.05035400390625, 0.0806884765625, 0.002349853515625, 0.115478515625, 0.1234130859375, 0.1187744140625, 0.0667724609375, 0.11...
embed
61232910_c0
61232910
haskell
0
Title: Couldn&#x27;t match expected type ‘IO ()’ with actual type [Place] Problem title: Couldn&#x27;t match expected type ‘IO ()’ with actual type [Place] Tags: haskell Problem: Couldn't match expected type ‘IO ()’ with actual type [Place] Trying to run some haskell code, but it's not running. Gives me the error seen ...
Couldn&#x27;t match expected type ‘IO ()’ with actual type [Place] Couldn&#x27;t match expected type ‘IO ()’ with actual type [Place] haskell Couldn Place Name Location Float RainfallFigures London Cardiff Couldn't match expected type ‘IO ()’ with actual type [Place] Trying to run some haskell code, but it's not runnin...
[ 0.00421142578125, -0.0048828125, -0.00640869140625, -0.0059814453125, -0.003997802734375, 0.013427734375, -0.003448486328125, -0.01336669921875, 0.0026702880859375, 0.0079345703125, -0.015625, -0.030517578125, -0.009765625, -0.02490234375, 0.002471923828125, -0.0106201171875, 0.00466...
[ 191147, 19, 3768, 18, 14858, 84751, 10644, 17780, 678, 8561, 143, 1556, 142508, 41076, 15757, 90788, 38699, 82507, 9146, 6159, 6795, 9020, 3980, 152462, 40858, 11675, 18151, 1284, 959, 51042, 18499, 51592, 212059, 74918, 98, 4568, 13315, 5339...
[ 0.123291015625, 0.123046875, 0.09625244140625, 0.10009765625, 0.2279052734375, 0.177978515625, 0.17919921875, 0.2193603515625, 0.13525390625, 0.1658935546875, 0.12060546875, 0.1678466796875, 0.2568359375, 0.1927490234375, 0.1697998046875, 0.1920166015625, 0.149169921875, 0.15270996...
embed
6283681_c0
6283681
haskell
0
Title: Why is GHCi typing this statement oddly? Problem title: Why is GHCi typing this statement oddly? Tags: ghc, ghci, haskell, typing Problem: Why is GHCi typing this statement oddly? In answering a question on stackoverflow, I noticed that GHCi (interactive) is assigning a too-restrictive type in a let statement. N...
Why is GHCi typing this statement oddly? Why is GHCi typing this statement oddly? ghc ghci haskell typing Control.Arrow Why GHCi Prelude Ord Why is GHCi typing this statement oddly? In answering a question on stackoverflow, I noticed that GHCi (interactive) is assigning a too-restrictive type in a let statement. Namely...
[ -0.008056640625, -0.0177001953125, 0.0126953125, 0.01708984375, -0.00081634521484375, 0.0137939453125, -0.0034332275390625, -0.0034332275390625, 0.006988525390625, -0.0108642578125, -0.00653076171875, -0.0106201171875, -0.007080078125, 0.00469970703125, 0.0162353515625, -0.008605957031...
[ 44084, 527, 73265, 14, 11417, 214, 903, 63805, 70270, 538, 31380, 238, 318, 1556, 142508, 27131, 7614, 15555, 1914, 822, 112, 35379, 177261, 5465, 118664, 10433, 71232, 95486, 5792, 144225, 10644, 2633, 18151, 192, 53950, 316, 6562, 71013, ...
[ 0.10675048828125, 0.0841064453125, 0.126220703125, 0.1971435546875, 0.1785888671875, 0.031524658203125, 0.051025390625, 0.146240234375, 0.095458984375, 0.06463623046875, 0.1087646484375, 0.083740234375, 0.15478515625, 0.0970458984375, 0.1884765625, 0.1817626953125, 0.0423583984375, ...
embed
12536333_c0
12536333
haskell
0
Title: Syntax for class constructors Problem title: Syntax for class constructors Tags: haskell Problem: Syntax for class constructors I have this code: data SafeValue a = SafeValue a a a deriving Eq class Safe a where check::a->Bool (+++)::a->a->a instance (Num a, Eq a) => Safe (SafeValue a) where check (SafeValue x y...
Syntax for class constructors Syntax for class constructors haskell Syntax SafeValue Safe check::a Bool Num new_val Error make_new make_new::b Syntax for class constructors I have this code: I would like to add to class Safe a function such as: I don't know how to add it, since the tipy should be something like: but in...
[ -0.00909423828125, 0.0113525390625, -0.0020294189453125, 0.00958251953125, -0.00482177734375, 0.0223388671875, -0.016357421875, -0.004730224609375, 0.017822265625, 0.00167083740234375, -0.0059814453125, -0.02783203125, 0.0240478515625, -0.00653076171875, -0.019287109375, -0.01696777343...
[ 19010, 86531, 100, 18507, 64549, 25251, 1556, 142508, 115527, 856, 50770, 12765, 11, 2460, 929, 52782, 3525, 1405, 212059, 3249, 54936, 275, 18151, 2806, 1884, 15190, 47, 10, 32354, 6044, 237, 3714, 3642, 442, 151860, 116071, 21635, 31380, ...
[ 0.1561279296875, 0.2005615234375, 0.0621337890625, 0.198974609375, 0.1854248046875, 0.14111328125, 0.111328125, 0.1986083984375, 0.265380859375, 0.1458740234375, 0.1251220703125, 0.179931640625, 0.032958984375, 0.0338134765625, 0.1368408203125, 0.1072998046875, 0.034271240234375, 0...
embed
36563479_c0
36563479
haskell
0
Title: Real World Haskell&#x27;s CSV Parser implementation Problem title: Real World Haskell&#x27;s CSV Parser implementation Tags: haskell, parsing, csv Problem: Real World Haskell's CSV Parser implementation Goerzen et al present a simple implementation of a CSV file parser to teach readers of Real World Haskell abou...
Real World Haskell&#x27;s CSV Parser implementation Real World Haskell&#x27;s CSV Parser implementation haskell parsing csv ParseError Text.ParserCombinators.Parsec Real World Haskell CSV Parser Either Real World Haskell's CSV Parser implementation Goerzen et al present a simple implementation of a CSV file parser to t...
[ 0.004547119140625, 0.002899169921875, 0.006134033203125, 0.05126953125, 0.0013580322265625, 0.0322265625, -0.0048828125, -0.01068115234375, -0.0125732421875, -0.0019378662109375, -0.0233154296875, -0.026123046875, 0.00347900390625, 0.01190185546875, -0.01043701171875, 0.00811767578125,...
[ 5120, 6661, 20625, 142508, 3768, 313, 43486, 2392, 2189, 208124, 1556, 366, 6953, 20763, 334, 184, 18468, 31611, 24129, 28636, 19155, 22230, 39797, 2016, 3121, 8781, 11435, 94957, 120709, 22321, 1290, 35773, 11389, 318, 1528, 18151, 127877, 8...
[ 0.14111328125, 0.16796875, 0.12451171875, 0.2236328125, 0.07244873046875, 0.04827880859375, 0.246826171875, 0.134521484375, 0.132080078125, 0.13818359375, 0.129638671875, 0.141845703125, 0.0361328125, 0.096923828125, 0.1868896484375, 0.0257720947265625, 0.0888671875, 0.012420654296...
embed
38144930_c1
38144930
haskell
1
\Main.o ) Linking C:\Users\Manfred\AppData\Local\Temp\stack4480\call-haskell-from-anything-1.0.1.0\.stack-work\dist\2672c1f3\setup\setup.exe ... Configuring call-haskell-from-anything-1.0.1.0... Determining GHC version: 7.10.3 setup.exe: Missing dependency on a foreign library: * Missing C library: HSrts-ghc7.10.3 This...
\Main.o ) Linking C:\Users\Manfred\AppData\Local\Temp\stack4480\call-haskell-from-anything-1.0.1.0\.stack-work\dist\2672c1f3\setup\setup.exe ... Configuring call-haskell-from-anything-1.0.1.0... Determining GHC version: 7.10.3 setup.exe: Missing dependency on a foreign library: * Missing C library: HSrts-ghc7.10.3 This...
[ 0.01007080078125, 0.011962890625, -0.00323486328125, -0.01104736328125, 0.005279541015625, 0.01220703125, 0.007781982421875, -0.01507568359375, -0.00299072265625, -0.0133056640625, -0.0281982421875, -0.0286865234375, -0.00119781494140625, 0.013427734375, 0.0172119140625, -0.00909423828...
[ 168793, 5, 31, 12779, 214, 313, 12, 1062, 7, 1314, 12662, 41347, 39179, 137989, 203758, 159065, 590, 2594, 617, 104519, 85763, 10557, 142508, 161063, 4848, 64113, 102107, 18244, 46295, 4046, 12825, 363, 3509, 2037, 46480, 59994, 11782, 30524,...
[ 0.1832275390625, 0.0869140625, 0.2060546875, 0.1917724609375, 0.118896484375, 0.1241455078125, 0.002685546875, 0.0257720947265625, 0.1014404296875, 0.05950927734375, 0.054534912109375, 0.251220703125, 0.0753173828125, 0.154052734375, 0.1005859375, 0.1761474609375, 0.045928955078125, ...
embed
19884915_c1
19884915
haskell
1
a variables which it considers separate. GHC considers the a in maxBound :: a to indicate that it can use any type here (!) and therefore complains because "any type" isn't restrictive enough. This is using GHC version 7.6.3 as supplied in the (I think) most recent Haskell Platform. I've had similar issues before, but...
a variables which it considers separate. GHC considers the a in maxBound :: a to indicate that it can use any type here (!) and therefore complains because "any type" isn't restrictive enough. This is using GHC version 7.6.3 as supplied in the (I think) most recent Haskell Platform. I've had similar issues before, but...
[ 0.0067138671875, -0.00109100341796875, -0.001953125, -0.00396728515625, -0.01171875, 0.00836181640625, -0.007781982421875, -0.00927734375, 0.0247802734375, -0.004791259765625, -0.00885009765625, -0.01904296875, -0.0027008056640625, 0.02001953125, 0.01300048828125, -0.00946044921875, ...
[ 10, 77336, 7, 3129, 16916, 84797, 527, 73265, 18389, 12647, 7030, 1984, 117414, 831, 4527, 2499, 10644, 3688, 72896, 186992, 4848, 18, 173072, 5844, 20174, 11389, 200768, 120384, 20625, 142508, 70968, 21373, 37348, 11343, 17664, 2967, 188347, ...
[ 0.158935546875, 0.261962890625, 0.0188140869140625, 0.011016845703125, 0.127197265625, 0.1954345703125, 0.11083984375, 0.22265625, 0.16650390625, 0.1395263671875, 0.1802978515625, 0.111572265625, 0.083251953125, 0.086669921875, 0.09814453125, 0.07391357421875, 0.1934814453125, 0.04...
embed
8029988_c0
8029988
haskell
0
Title: Number of elements in list bigger than average Problem title: Number of elements in list bigger than average Tags: haskell Problem: Number of elements in list bigger than average I'm trying to write a program in Haskell that gets a list (of integer) and prints out the number of elements that are bigger than the ...
Number of elements in list bigger than average Number of elements in list bigger than average haskell Number Integer Double Couldn Expected Inferred Number of elements in list bigger than average I'm trying to write a program in Haskell that gets a list (of integer) and prints out the number of elements that are bigger...
[ -0.0125732421875, -0.0027313232421875, 0.0032958984375, 0.00982666015625, 0.00323486328125, 0.0224609375, -0.00238037109375, 0.005889892578125, 0.0201416015625, 0.00811767578125, 0.0054931640625, -0.028076171875, -0.006103515625, -0.00927734375, -0.0081787109375, -0.01190185546875, 0...
[ 103332, 111, 80854, 23, 5303, 167785, 3501, 83080, 1556, 142508, 44401, 107172, 191147, 19, 60075, 13, 89829, 360, 2875, 2822, 31577, 33022, 1528, 20625, 62163, 4390, 892, 1505, 28412, 1810, 14012, 621, 2060, 37842, 31635, 20949, 903, 18499, ...
[ 0.132568359375, 0.044342041015625, 0.218505859375, 0.1044921875, 0.206298828125, 0.1944580078125, 0.1414794921875, 0.234130859375, 0.1322021484375, 0.217529296875, 0.1695556640625, 0.173583984375, 0.1463623046875, 0.06719970703125, 0.14404296875, 0.1478271484375, 0.1072998046875, 0...
embed
9611904_c0
9611904
haskell
0
Title: Haskell: Lists, Arrays, Vectors, Sequences Problem title: Haskell: Lists, Arrays, Vectors, Sequences Tags: haskell Problem: Haskell: Lists, Arrays, Vectors, Sequences I'm learning Haskell and read a couple of articles regarding performance differences of Haskell lists and (insert your language)'s arrays. Being a...
Haskell: Lists, Arrays, Vectors, Sequences Haskell: Lists, Arrays, Vectors, Sequences haskell Haskell Lists Arrays Vectors Sequences Haskell: Lists, Arrays, Vectors, Sequences I'm learning Haskell and read a couple of articles regarding performance differences of Haskell lists and (insert your language)'s arrays. Being...
[ 0.0220947265625, 0.038330078125, -0.015380859375, 0.0042724609375, -0.002593994140625, -0.00156402587890625, 0.00020599365234375, -0.0108642578125, -0.0029144287109375, -0.00823974609375, -0.004058837890625, -0.03955078125, 0.00030517578125, 0.0115966796875, -0.01904296875, 0.001220703...
[ 20625, 142508, 12, 32036, 7, 4, 69253, 4778, 52884, 22230, 503, 26513, 5170, 1556, 52080, 12301, 38440, 23718, 60212, 5303, 136, 33657, 46876, 10298, 873, 30698, 56, 171259, 4527, 15490, 47644, 32603, 183851, 2053, 45646, 35773, 19882, 4171, ...
[ 0.1800537109375, 0.2822265625, 0.041748046875, 0.289306640625, 0.074951171875, 0.02935791015625, 0.2069091796875, 0.225830078125, 0.2347412109375, 0.1925048828125, 0.131591796875, 0.229736328125, 0.035186767578125, 0.0816650390625, 0.1014404296875, 0.02899169921875, 0.016342163085937...
embed
69420617_c0
69420617
haskell
0
Title: What pattern is suitable for expressing Null value in a SBV formula Problem title: What pattern is suitable for expressing Null value in a SBV formula Tags: haskell, sbv Problem: What pattern is suitable for expressing Null value in a SBV formula I am translating SQL predicate into Z3 language. SQL predicate exp...
What pattern is suitable for expressing Null value in a SBV formula What pattern is suitable for expressing Null value in a SBV formula haskell sbv What SBV NullableInt What pattern is suitable for expressing Null value in a SBV formula I am translating SQL predicate into Z3 language. SQL predicate expression is very c...
[ 0.000926971435546875, 0.00823974609375, 0.00848388671875, 0.0205078125, -0.012939453125, 0.015380859375, 0.01116943359375, 0.01513671875, 0.00005602836608886719, 0.007293701171875, 0.00848388671875, 0.00136566162109375, -0.0113525390625, 0.0018463134765625, 0.01422119140625, -0.0087280...
[ 103510, 202319, 36510, 1429, 1181, 34292, 159, 77394, 26168, 1556, 142508, 91, 275, 334, 27786, 2661, 4153, 18, 143, 80866, 1653, 2063, 567, 363, 46876, 125195, 20903, 33636, 142424, 3059, 61924, 2053, 50986, 159978, 35829, 91995, 756, 1022, ...
[ 0.2127685546875, 0.1644287109375, 0.1077880859375, 0.1441650390625, 0.1544189453125, 0.1900634765625, 0.0672607421875, 0.224365234375, 0.1693115234375, 0.08184814453125, 0.1859130859375, 0.011474609375, 0.032684326171875, 0.1444091796875, 0.1512451171875, 0.111328125, 0.0111694335937...
embed
16937378_c1
16937378
haskell
1
it should, in this case, allow for f to accept any type. What I don't understand is: once within a given context, and used once, does the definition gets 'fixed' for the remaining context? It doesn't seem so, because if I replace "chips" and "rice" with Ints, the compiler still complains, so I guess I'm assuming somet...
it should, in this case, allow for f to accept any type. What I don't understand is: once within a given context, and used once, does the definition gets 'fixed' for the remaining context? It doesn't seem so, because if I replace "chips" and "rice" with Ints, the compiler still complains, so I guess I'm assuming somet...
[ 0.0078125, -0.0024871826171875, -0.0089111328125, 0.0057373046875, -0.01165771484375, -0.005889892578125, -0.0262451171875, -0.002197265625, -0.00506591796875, 0.004547119140625, -0.005462646484375, -0.0189208984375, 0.018798828125, 0.0267333984375, -0.001251220703125, 0.00753784179687...
[ 442, 5608, 7225, 63769, 1238, 47, 26946, 2499, 10644, 28219, 24145, 28032, 34475, 43701, 11814, 70, 80934, 62163, 55923, 297, 100, 47143, 48903, 91995, 95975, 7, 136, 32512, 678, 360, 933, 9969, 34759, 7464, 186992, 44691, 87388, 8668, 2228...
[ 0.06451416015625, 0.049560546875, 0.04022216796875, 0.124755859375, 0.194580078125, 0.0294647216796875, 0.1795654296875, 0.091552734375, 0.2239990234375, 0.10443115234375, 0.21728515625, 0.1014404296875, 0.0582275390625, 0.2098388671875, 0.1370849609375, 0.00628662109375, 0.238891601...
embed
37510536_c2
37510536
haskell
2
.9.32 depends on old-time-1.1.0.3 which failed to install. old-time-1.1.0.3 failed during the configure step. The exception was: ExitFailure 77 I've tried installing both MinGW+MSYS and Cygwin, but neither works. All the GHC folders are in the PATH environment variable. Code signals: Trouble, WINDOWS, system32, Resolvi...
.9.32 depends on old-time-1.1.0.3 which failed to install. old-time-1.1.0.3 failed during the configure step. The exception was: ExitFailure 77 I've tried installing both MinGW+MSYS and Cygwin, but neither works. All the GHC folders are in the PATH environment variable. Code signals: Trouble, WINDOWS, system32, Resolvi...
[ -0.017578125, 0.0147705078125, 0.031982421875, -0.013916015625, 0.01239013671875, -0.00982666015625, -0.023193359375, -0.0126953125, 0.0028228759765625, -0.0059814453125, -0.006744384765625, -0.033447265625, 0.01171875, -0.006591796875, 0.00775146484375, -0.0032196044921875, -0.01843...
[ 38331, 6460, 56566, 98, 10332, 6032, 92134, 5, 170179, 165523, 47, 20600, 20271, 222495, 29954, 131527, 5443, 217, 17647, 379, 3408, 14154, 37842, 4211, 102550, 1328, 13439, 26947, 27939, 177, 9494, 2725, 9319, 43240, 3164, 527, 73265, 78303,...
[ 0.233154296875, 0.29150390625, 0.2181396484375, 0.0178070068359375, 0.1446533203125, 0.22314453125, 0.1568603515625, 0.03497314453125, 0.266357421875, 0.209716796875, 0.00885009765625, 0.184814453125, 0.03887939453125, 0.198486328125, 0.0758056640625, 0.1983642578125, 0.1380615234375...
embed
72364851_c1
72364851
haskell
1
variable bound by the type signature for: Lattice.map :: forall v w d. (v -> w) -> LatticeSlice d v -> LatticeSlice d w at src/Lattice.hs:8:1-55 • In the first argument of ‘f’, namely ‘sl’ In the ‘slice’ field of a record In the expression: LatticeSlice {date = d, slice = f sl} • Relevant bindings include sl :: v1 (bo...
variable bound by the type signature for: Lattice.map :: forall v w d. (v -> w) -> LatticeSlice d v -> LatticeSlice d w at src/Lattice.hs:8:1-55 • In the first argument of ‘f’, namely ‘sl’ In the ‘slice’ field of a record In the expression: LatticeSlice {date = d, slice = f sl} • Relevant bindings include sl :: v1 (bo...
[ -0.01434326171875, -0.00543212890625, -0.004608154296875, 0.003570556640625, -0.0257568359375, -0.01220703125, -0.0208740234375, 0.00494384765625, 0.00093841552734375, -0.01263427734375, -0.01385498046875, -0.002349853515625, 0.0198974609375, 0.00010395050048828125, -0.016845703125, -0...
[ 77336, 99091, 390, 10644, 138256, 75346, 24494, 62346, 100, 5584, 81, 148, 104, 334, 33079, 13348, 19437, 2729, 18, 127, 1019, 112930, 5117, 10750, 420, 24861, 360, 44457, 17164, 125195, 17489, 91, 1238, 20505, 133, 30624, 128239, 418, 1126...
[ 0.254638671875, 0.198486328125, 0.06976318359375, 0.2000732421875, 0.2159423828125, 0.170166015625, 0.228759765625, 0.122802734375, 0.057373046875, 0.143798828125, 0.212158203125, 0.17236328125, 0.111572265625, 0.1829833984375, 0.1204833984375, 0.1778564453125, 0.0723876953125, 0.0...
embed
72408141_c0
72408141
haskell
0
Title: Haskell Data constructor not in scope Problem title: Haskell Data constructor not in scope Tags: haskell, functional-programming Problem: Haskell Data constructor not in scope I've been researching it and wanted to try out some code with MVar. I'm checking this code through an online compiler. Below is the code ...
Haskell Data constructor not in scope Haskell Data constructor not in scope haskell functional-programming Prelude Haskell Data main.hs:2:8 Variable main.hs:3:3 main.hs:3:8 Char Perhaps main.hs:4:8 Haskell Data constructor not in scope I've been researching it and wanted to try out some code with MVar. I'm checking thi...
[ 0.0213623046875, 0.00830078125, -0.015869140625, 0.017333984375, 0.018310546875, 0.017822265625, 0.018310546875, 0.0230712890625, 0.00433349609375, -0.032470703125, 0.0038909912109375, -0.052978515625, 0.02978515625, 0.007171630859375, 0.011474609375, 0.00244140625, -0.0098876953125,...
[ 20625, 142508, 11809, 64549, 748, 959, 23, 70820, 1556, 123309, 28966, 1914, 822, 112, 5201, 127, 304, 1019, 84572, 2886, 363, 21656, 181799, 617, 25188, 9790, 18151, 678, 66160, 147, 175199, 1118, 9969, 34759, 17336, 31577, 3034, 35064, 36...
[ 0.15625, 0.2315673828125, 0.1678466796875, 0.1944580078125, 0.121826171875, 0.162109375, 0.1370849609375, 0.232177734375, 0.14501953125, 0.1800537109375, 0.10986328125, 0.0889892578125, 0.1824951171875, 0.03289794921875, 0.09716796875, 0.1064453125, 0.011810302734375, 0.14184570312...
embed
48692129_c0
48692129
haskell
0
Title: How to use a Reader type encoded with continuation passing style Problem title: How to use a Reader type encoded with continuation passing style Tags: haskell, scott-encoding, continuation-passing, higher-rank-types Problem: How to use a Reader type encoded with continuation passing style I was under the impress...
How to use a Reader type encoded with continuation passing style How to use a Reader type encoded with continuation passing style haskell scott-encoding continuation-passing higher-rank-types How Reader How to use a Reader type encoded with continuation passing style I was under the impression that every value of type ...
[ 0.00439453125, -0.01495361328125, 0.003997802734375, -0.0123291015625, 0.0023956298828125, -0.0079345703125, 0.0025634765625, -0.01031494140625, -0.0228271484375, -0.038330078125, -0.001312255859375, -0.002593994140625, 0.0034637451171875, -0.0087890625, 0.00830078125, -0.0252685546875...
[ 11249, 4527, 122636, 10644, 22, 40899, 678, 9454, 1363, 452, 6953, 20623, 47, 10, 1556, 142508, 224708, 66332, 13409, 77546, 36467, 50986, 71, 49128, 11907, 34292, 831, 151552, 30648, 5428, 35874, 178851, 3525, 24799, 16428, 1984, 100, 5584, ...
[ 0.06781005859375, 0.1629638671875, 0.2880859375, 0.2332763671875, 0.0850830078125, 0.2147216796875, 0.063232421875, 0.19482421875, 0.051910400390625, 0.0989990234375, 0.05279541015625, 0.1937255859375, 0.003875732421875, 0.06842041015625, 0.0982666015625, 0.1929931640625, 0.116821289...
embed
7762831_c0
7762831
haskell
0
Title: Conversion between Int and fractional values Problem title: Conversion between Int and fractional values Tags: floating, haskell Problem: Conversion between Int and fractional values I am programming in Haskell and I am having trouble with the following code: exactRootList :: Int -> Int -> [Int] exactRootList in...
Conversion between Int and fractional values Conversion between Int and fractional values floating haskell Conversion myprogram.hs Error Instances Floating RealFrac Conversion between Int and fractional values I am programming in Haskell and I am having trouble with the following code: Then, when I execute: I get I do ...
[ -0.01446533203125, -0.005218505859375, 0.01263427734375, -0.005584716796875, 0.002044677734375, 0.036376953125, -0.0185546875, -0.0185546875, 0.0157470703125, 0.000667572021484375, -0.01092529296875, 0.00579833984375, 0.022705078125, 0.01019287109375, 0.004302978515625, -0.018188476562...
[ 1657, 46354, 17721, 360, 18, 136, 175921, 289, 142424, 21917, 26518, 1556, 142508, 759, 18749, 127, 7, 212059, 116071, 38699, 5120, 919, 20251, 6, 56037, 20625, 63134, 25632, 18151, 3229, 71924, 54, 959, 28219, 903, 18499, 1528, 5608, 7639,...
[ 0.0809326171875, 0.208984375, 0.1612548828125, 0.1551513671875, 0.21337890625, 0.111328125, 0.251953125, 0.1478271484375, 0.2001953125, 0.163330078125, 0.0977783203125, 0.121826171875, 0.253173828125, 0.06671142578125, 0.1866455078125, 0.119384765625, 0.022369384765625, 0.177368164...
embed
830021_c0
830021
haskell
0
Title: Haskell: Writing text files and parsing them back to original format Problem title: Haskell: Writing text files and parsing them back to original format Tags: file, haskell, parsing Problem: Haskell: Writing text files and parsing them back to original format I have a list of tuples of format [(String,String)] a...
Haskell: Writing text files and parsing them back to original format Haskell: Writing text files and parsing them back to original format file haskell parsing Haskell Writing Table database.txt sequence_ Haskell: Writing text files and parsing them back to original format I have a list of tuples of format [(String,Stri...
[ 0.0172119140625, 0.005035400390625, 0.006317138671875, 0.0296630859375, -0.0032196044921875, 0.00054168701171875, 0.0038299560546875, -0.007293701171875, 0.0118408203125, 0.01275634765625, 0.0054931640625, 0.021728515625, -0.0098876953125, 0.01141357421875, 0.00701904296875, 0.00430297...
[ 20625, 142508, 213185, 7986, 102158, 366, 6953, 4420, 47, 7311, 9384, 136, 11435, 1556, 112997, 63399, 124326, 944, 765, 5303, 370, 99726, 71713, 3871, 32354, 33022, 10941, 15700, 12301, 237, 5701, 6496, 154559, 4127, 23, 96760 ]
[ 0.1190185546875, 0.2257080078125, 0.1859130859375, 0.1297607421875, 0.137451171875, 0.1461181640625, 0.046783447265625, 0.1326904296875, 0.0989990234375, 0.1121826171875, 0.1552734375, 0.008392333984375, 0.1160888671875, 0.109130859375, 0.16748046875, 0.1502685546875, 0.1873779296875...
embed
29618967_c0
29618967
haskell
0
Title: Haskell Continuation passing style index of element in list Problem title: Haskell Continuation passing style index of element in list Tags: continuation-passing, functional-programming, haskell Problem: Haskell Continuation passing style index of element in list There's a series of examples I'm trying to do to ...
Haskell Continuation passing style index of element in list Haskell Continuation passing style index of element in list continuation-passing functional-programming haskell Haskell Continuation Haskell Continuation passing style index of element in list There's a series of examples I'm trying to do to practice Haskell. ...
[ -0.005218505859375, 0.0166015625, 0.006622314453125, -0.0184326171875, -0.0022735595703125, 0.0072021484375, 0.021240234375, -0.017578125, 0.00823974609375, -0.04150390625, -0.0281982421875, -0.021728515625, -0.0225830078125, 0.020751953125, -0.005126953125, 0.001617431640625, 0.0251...
[ 20625, 142508, 50343, 1363, 452, 20623, 63262, 12830, 5303, 23, 9454, 13409, 123309, 28966, 1556, 27781, 41361, 52080, 6953, 55681, 29479, 32354, 7413, 111, 43240, 1884, 903, 89536, 31461, 15403, 10422, 2053, 127664, 69101, 16487, 678, 100, 2...
[ 0.1304931640625, 0.2069091796875, 0.18359375, 0.047607421875, 0.105224609375, 0.1998291015625, 0.2484130859375, 0.203125, 0.19189453125, 0.06097412109375, 0.1728515625, 0.0908203125, 0.108154296875, 0.060821533203125, 0.114990234375, 0.1090087890625, 0.0728759765625, 0.008911132812...
embed
30464163_c0
30464163
haskell
0
Title: Functional Breadth First Search Problem title: Functional Breadth First Search Tags: functional-programming, haskell, ocaml, python, sml Problem: Functional Breadth First Search Functional depth first search is lovely in directed acyclic graphs. In graphs with cycles however, how do we avoid infinite recursion? ...
Functional Breadth First Search Functional Breadth First Search functional-programming haskell ocaml python sml Functional Breadth First Search Functional Breadth First Search Functional depth first search is lovely in directed acyclic graphs. In graphs with cycles however, how do we avoid infinite recursion? In a proc...
[ 0.016845703125, 0.018798828125, 0.0030059814453125, 0.01953125, 0.00531005859375, -0.009033203125, -0.0035400390625, -0.007080078125, -0.01446533203125, -0.041748046875, 0.003814697265625, -0.02783203125, -0.01092529296875, 0.02294921875, -0.0068359375, -0.0034027099609375, -0.001823...
[ 28670, 10763, 6499, 712, 927, 23972, 33086, 123309, 28966, 1556, 142508, 36, 9779, 141, 50828, 7237, 168867, 5117, 33938, 113856, 8951, 10, 187830, 41382, 360, 678, 105823, 49903, 3642, 642, 71864, 54241, 195625, 1830, 59158, 46876, 2806, 161...
[ 0.07373046875, 0.07208251953125, 0.1419677734375, 0.0889892578125, 0.0977783203125, 0.12548828125, 0.2095947265625, 0.1400146484375, 0.067626953125, 0.068115234375, 0.1651611328125, 0.039886474609375, 0.07861328125, 0.019866943359375, 0.06011962890625, 0.102294921875, 0.2218017578125...
embed
55401763_c0
55401763
haskell
0
Title: Getting non-exhaustive pattern exception on method Problem title: Getting non-exhaustive pattern exception on method Tags: haskell, non-exhaustive-patterns, accumulator Problem: Getting non-exhaustive pattern exception on method I keep getting non-exhaustive pattern exception for the following method: groups::[I...
Getting non-exhaustive pattern exception on method Getting non-exhaustive pattern exception on method haskell non-exhaustive-patterns accumulator Getting small:big x:xs y:ys x:y:ys Getting non-exhaustive pattern exception on method I keep getting non-exhaustive pattern exception for the following method: What i want to...
[ -0.0284423828125, 0.018798828125, -0.014892578125, -0.00897216796875, -0.00115203857421875, 0.013916015625, -0.0038909912109375, -0.007110595703125, 0.0186767578125, -0.0087890625, 0.025634765625, 0.00250244140625, 0.034423828125, -0.002197265625, 0.00799560546875, 0.01409912109375, ...
[ 210732, 351, 3355, 18391, 4935, 103510, 131527, 98, 55300, 1556, 142508, 4453, 22766, 183278, 1290, 19336, 32976, 1022, 425, 113, 4778, 13695, 20949, 25632, 3444, 34475, 10298, 155761, 82449, 124093, 65450, 5303, 148390, 171763, 25256, 39556, 3...
[ 0.093505859375, 0.1778564453125, 0.0287933349609375, 0.14697265625, 0.103515625, 0.203857421875, 0.2186279296875, 0.0706787109375, 0.18896484375, 0.132080078125, 0.2110595703125, 0.111328125, 0.1162109375, 0.1832275390625, 0.09771728515625, 0.12646484375, 0.043609619140625, 0.04208...
embed
36518385_c0
36518385
haskell
0
Title: Binding in expression Problem title: Binding in expression Tags: haskell Problem: Binding in expression I am trying to on wheatear argument with file name is passed to either parse the file or read from standard input: let formulae = fmap parseInput $ if isInputFile args then (hGetContents $ openFile (last args)...
Binding in expression Binding in expression haskell Binding ReadMode formula-2-bdd.hs:89:79 Couldn Handle Binding in expression I am trying to on wheatear argument with file name is passed to either parse the file or read from standard input: but of course this error occurs: If I bind IO Handle first I can't decided ac...
[ -0.0174560546875, 0.005767822265625, -0.01080322265625, 0.00872802734375, 0.0101318359375, 0.01202392578125, 0.028564453125, -0.0016632080078125, 0.01025390625, -0.01409912109375, -0.00726318359375, -0.01318359375, 0.0068359375, 0.01544189453125, 0.01416015625, -0.01495361328125, -0....
[ 1843, 33770, 23, 125195, 1556, 142508, 4764, 9083, 112, 26168, 5428, 4028, 127, 18949, 22377, 191147, 19, 10639, 133, 31577, 148, 156253, 28575, 10750, 11435, 9351, 115081, 366, 184, 12301, 5570, 107730, 18499, 74918, 68557, 17780, 5117, 831,...
[ 0.18408203125, 0.2098388671875, 0.0968017578125, 0.272705078125, 0.1365966796875, 0.2236328125, 0.1663818359375, 0.1536865234375, 0.037567138671875, 0.1783447265625, 0.06854248046875, 0.059539794921875, 0.041717529296875, 0.143310546875, 0.1453857421875, 0.0511474609375, 0.0102539062...
embed
37830211_c0
37830211
haskell
0
Title: How to implement this kind of IO-based loop using higher order functions? Problem title: How to implement this kind of IO-based loop using higher order functions? Tags: higher-order-functions, haskell Problem: How to implement this kind of IO-based loop using higher order functions? I have some code like the fol...
How to implement this kind of IO-based loop using higher order functions? How to implement this kind of IO-based loop using higher order functions? higher-order-functions haskell higher How IO-based How to implement this kind of IO-based loop using higher order functions? I have some code like the following which updat...
[ 0.00110626220703125, -0.005218505859375, 0.003997802734375, 0.005767822265625, 0.01007080078125, 0.031494140625, 0.012939453125, -0.0035858154296875, 0.00958251953125, -0.040771484375, 0.0274658203125, -0.0123291015625, -0.008544921875, -0.01556396484375, 0.01904296875, -0.004699707031...
[ 11249, 47, 29479, 903, 8562, 17780, 77007, 40956, 17368, 77546, 12989, 32354, 80596, 137175, 1556, 142508, 18151, 1884, 25632, 114419, 11341, 35509, 96759, 121413, 91, 12301, 1295, 28338, 59121, 49666, 18, 71864, 143726, 195625, 12601, 15490, 5...
[ 0.10455322265625, 0.0262298583984375, 0.2047119140625, 0.09710693359375, 0.149658203125, 0.240234375, 0.1756591796875, 0.21533203125, 0.0693359375, 0.17724609375, 0.216796875, 0.190673828125, 0.202880859375, 0.1552734375, 0.120361328125, 0.2208251953125, 0.12255859375, 0.0210876464...
embed
26456345_c0
26456345
haskell
0
Title: How to check if two lists are partially identical haskell Problem title: How to check if two lists are partially identical haskell Tags: function, haskell, functional-programming Problem: How to check if two lists are partially identical haskell This is my code im trying to check if a list can be paritially iden...
How to check if two lists are partially identical haskell How to check if two lists are partially identical haskell function haskell functional-programming How Domino Board End Bool LeftEnd RightEnd How to check if two lists are partially identical haskell This is my code im trying to check if a list can be paritially ...
[ -0.008544921875, -0.00128936767578125, 0.0162353515625, -0.002227783203125, -0.00970458984375, 0.00408935546875, 0.0123291015625, -0.0166015625, 0.01324462890625, 0.00225830078125, 0.0184326171875, -0.004730224609375, 0.0252685546875, 0.009765625, -0.02197265625, -0.0137939453125, 0....
[ 12765, 2174, 6626, 5303, 7, 621, 2878, 25958, 31943, 6827, 1556, 142508, 32354, 123309, 28966, 11249, 62687, 62554, 18878, 2460, 929, 2480, 152378, 90911, 18151, 31577, 831, 366, 1890, 3934, 15700, 6712, 96889, 18, 4153, 106098, 4043, 3564, ...
[ 0.191650390625, 0.0609130859375, 0.10736083984375, 0.208251953125, 0.02752685546875, 0.04730224609375, 0.14794921875, 0.0897216796875, 0.177001953125, 0.1217041015625, 0.09686279296875, 0.19873046875, 0.079833984375, 0.09796142578125, 0.080322265625, 0.0052490234375, 0.2236328125, ...
embed
43475251_c0
43475251
haskell
0
Title: Replacing functions in composite function in haskell Problem title: Replacing functions in composite function in haskell Tags: haskell, function Problem: Replacing functions in composite function in haskell I'm trying to become familiar with Haskell and I was wondering if the following was possible and if so, ho...
Replacing functions in composite function in haskell Replacing functions in composite function in haskell haskell function Replacing x:xs y:ys Replacing functions in composite function in haskell I'm trying to become familiar with Haskell and I was wondering if the following was possible and if so, how? Say I have a se...
[ -0.0128173828125, 0.009521484375, -0.00439453125, 0.024658203125, -0.0033416748046875, 0.0091552734375, -0.006988525390625, 0.00482177734375, 0.0263671875, 0.0030975341796875, -0.01397705078125, 0.007659912109375, -0.00885009765625, 0.001495361328125, 0.0025634765625, -0.00346374511718...
[ 853, 133266, 32354, 23, 375, 77087, 13, 1556, 142508, 1022, 12, 425, 7, 113, 4778, 16031, 20625, 7722, 5423, 420, 177, 61924, 91995, 674, 25, 501, 4527, 6097, 46132, 68034, 2203, 706, 3917, 191082, 15490, 143726, 13204, 1238, 228113, 3344...
[ 0.0908203125, 0.1834716796875, 0.2259521484375, 0.05615234375, 0.0958251953125, 0.217529296875, 0.05804443359375, 0.154541015625, 0.22705078125, 0.101318359375, 0.075927734375, 0.0892333984375, 0.0673828125, 0.0850830078125, 0.1512451171875, 0.0285797119140625, 0.124755859375, 0.09...
embed
29752557_c0
29752557
haskell
0
Title: Automatically reloading variable state into GHCi when re-loading a file Problem title: Automatically reloading variable state into GHCi when re-loading a file Tags: read-eval-print-loop, emacs, ghci, haskell Problem: Automatically reloading variable state into GHCi when re-loading a file When I'm developing some...
Automatically reloading variable state into GHCi when re-loading a file Automatically reloading variable state into GHCi when re-loading a file read-eval-print-loop emacs ghci haskell Automatically GHCi Automatically reloading variable state into GHCi when re-loading a file When I'm developing some data analyses pipeli...
[ -0.01019287109375, 0.00439453125, -0.0020904541015625, 0.0123291015625, -0.001373291015625, 0.0211181640625, -0.000946044921875, 0.02099609375, -0.0194091796875, -0.022216796875, 0.0072021484375, -0.01055908203125, -0.015625, 0.012451171875, 0.012939453125, -0.000621795654296875, -0....
[ 51719, 71407, 456, 63033, 77336, 11341, 3934, 527, 73265, 14, 3229, 214, 11435, 12301, 1405, 35662, 28354, 352, 2263, 31380, 318, 1556, 142508, 168698, 2053, 51422, 137158, 59801, 27983, 80234, 479, 54799, 72367, 43658, 136, 452, 1916, 63920,...
[ 0.1824951171875, 0.0335693359375, 0.122314453125, 0.209716796875, 0.2410888671875, 0.1474609375, 0.1141357421875, 0.0975341796875, 0.167236328125, 0.2294921875, 0.0341796875, 0.01373291015625, 0.125, 0.0675048828125, 0.1439208984375, 0.06439208984375, 0.1053466796875, 0.07836914062...
embed
60048087_c0
60048087
haskell
0
Title: Is it possible to implement this generic flip? Problem title: Is it possible to implement this generic flip? Tags: monads, reader-monad, haskell Problem: Is it possible to implement this generic flip? I would like to write an object with the type signature: genericFlip :: ( MonadReader (o (n c)) m , MonadReader ...
Is it possible to implement this generic flip? Is it possible to implement this generic flip? monads reader-monad haskell MonadReader Reader Is it possible to implement this generic flip? I would like to write an object with the type signature: That is essentially a flip for monad readers. Now it is easy enough to writ...
[ 0.01251220703125, 0.0245361328125, 0.00750732421875, 0.0028228759765625, -0.0025482177734375, 0.005584716796875, -0.0030975341796875, -0.020263671875, -0.0052490234375, -0.0150146484375, 0.0016326904296875, 0.0198974609375, -0.00274658203125, -0.0098876953125, 0.01556396484375, -0.0334...
[ 2071, 442, 7722, 47, 29479, 903, 189534, 147505, 2667, 712, 7, 155255, 3796, 1556, 142508, 60331, 71, 31345, 56, 122636, 2806, 1884, 33022, 36746, 678, 10644, 138256, 85590, 100, 120709, 23468, 20174, 11389, 33342, 161740, 103607, 86147, 7857...
[ 0.0714111328125, 0.0625, 0.208251953125, 0.0528564453125, 0.198974609375, 0.1121826171875, 0.2303466796875, 0.232421875, 0.1058349609375, 0.1522216796875, 0.05145263671875, 0.2205810546875, 0.08282470703125, 0.09033203125, 0.251953125, 0.147705078125, 0.108642578125, 0.212524414062...
embed
36696804_c0
36696804
haskell
0
Title: Most efficient way of building a list in a left fold? Problem title: Most efficient way of building a list in a left fold? Tags: haskell, fold, functional-programming Problem: Most efficient way of building a list in a left fold? When building lists, I usually use a right fold, as that lets me use the right-asso...
Most efficient way of building a list in a left fold? Most efficient way of building a list in a left fold? haskell fold functional-programming Most Most efficient way of building a list in a left fold? When building lists, I usually use a right fold, as that lets me use the right-associative : operator without affecti...
[ -0.014404296875, -0.01214599609375, 0.01446533203125, -0.0213623046875, -0.00787353515625, 0.0177001953125, -0.01708984375, 0.0020751953125, -0.00089263916015625, -0.034912109375, 0.016845703125, -0.043701171875, 0.03076171875, -0.003936767578125, -0.01336669921875, -0.0005302429199218...
[ 17006, 93766, 3917, 33976, 5303, 23, 25737, 42822, 10, 1556, 142508, 123309, 28966, 56104, 4527, 7108, 45388, 45023, 152, 39933, 15490, 52490, 12989, 16750, 37223, 46741, 119140, 43658, 12960, 181653, 180, 8353, 10461, 41018, 541, 62766, 137567...
[ 0.07464599609375, 0.2288818359375, 0.08782958984375, 0.19287109375, 0.2198486328125, 0.068603515625, 0.2296142578125, 0.2386474609375, 0.032440185546875, 0.0860595703125, 0.2039794921875, 0.1048583984375, 0.0859375, 0.0183563232421875, 0.083740234375, 0.1688232421875, 0.15771484375, ...
embed