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
18646253_c0
18646253
haskell
0
Title: How to use the comparison in GHC.TypeLits Problem title: How to use the comparison in GHC.TypeLits Tags: types, haskell, ghc Problem: How to use the comparison in GHC.TypeLits I ran into problems playing with GHC.TypeLits . Consider the following GADT: data Foo :: Nat -> * where SmallFoo :: (n <= 2) => Foo n Big...
How to use the comparison in GHC.TypeLits How to use the comparison in GHC.TypeLits types haskell ghc a How GHC.TypeLits Foo Nat SmallFoo BigFoo Possible How to use the comparison in GHC.TypeLits I ran into problems playing with GHC.TypeLits . Consider the following GADT: My understanding was, that now for every n , th...
[ -0.01019287109375, -0.009521484375, 0.00189971923828125, -0.003692626953125, 0.009521484375, -0.00145721435546875, -0.00823974609375, -0.000732421875, -0.006744384765625, -0.0035552978515625, 0.0017547607421875, -0.0135498046875, 0.01202392578125, 0.0020751953125, 0.0093994140625, -0.0...
[ 11249, 4527, 70, 225490, 527, 73265, 196707, 9506, 933, 52895, 1556, 142508, 31380, 238, 10, 9572, 31, 68875, 105508, 27591, 14195, 115861, 44402, 75169, 23749, 41072, 100094, 5036, 11907, 10644, 653, 27623, 66161, 1632, 34292, 96819, 64549, ...
[ 0.049713134765625, 0.1593017578125, 0.07562255859375, 0.2322998046875, 0.0511474609375, 0.1746826171875, 0.1719970703125, 0.1572265625, 0.1058349609375, 0.1995849609375, 0.09967041015625, 0.1888427734375, 0.0703125, 0.07763671875, 0.000335693359375, 0.1343994140625, 0.0797119140625, ...
embed
22841537_c0
22841537
haskell
0
Title: Taste of Haskell : definition of . (composition) Problem title: Taste of Haskell : definition of . (composition) Tags: haskell Problem: Taste of Haskell : definition of . (composition) In this talk at 52:40 this slide below is discussed. I don't quite understand this definition. Why is the x needed in the defini...
Taste of Haskell : definition of . (composition) Taste of Haskell : definition of . (composition) haskell Taste Haskell Taste of Haskell : definition of . (composition) In this talk at 52:40 this slide below is discussed. I don't quite understand this definition. Why is the x needed in the definition ? Why is the outpu...
[ -0.0120849609375, 0.020751953125, 0.007659912109375, 0.0027008056640625, 0.00482177734375, 0.0125732421875, -0.01025390625, 0.015625, -0.0003566741943359375, -0.0126953125, 0.00104522705078125, -0.00921630859375, -0.00421142578125, 0.00958251953125, 0.000644683837890625, -0.00245666503...
[ 9598, 67, 111, 20625, 142508, 80934, 5, 277, 40322, 1556, 22120, 7221, 22932, 122753, 35064, 45252, 2301, 18, 32233, 28219, 903, 44084, 70, 1022, 44841, 23, 140992, 959, 15400, 83, 420, 706, 33079, 113, 1238, 177, 99156, 6713, 456, 199332...
[ 0.234375, 0.1827392578125, 0.1844482421875, 0.1729736328125, 0.29541015625, 0.21630859375, 0.1971435546875, 0.12646484375, 0.195556640625, 0.144775390625, 0.08636474609375, 0.001495361328125, 0.057769775390625, 0.1260986328125, 0.037811279296875, 0.026519775390625, 0.01220703125, 0...
embed
38113153_c1
38113153
haskell
1
01s ( 0.101s elapsed) GC time 0.000s ( 0.000s elapsed) EXIT time 0.000s ( 0.000s elapsed) Total time 0.103s ( 0.102s elapsed) %GC time 0.1% (0.1% elapsed) Alloc rate 511,162 bytes per MUT second Productivity 99.8% of total user, 100.9% of total elapsed However, if I change the type of test to test :: Word -> Word , the...
01s ( 0.101s elapsed) GC time 0.000s ( 0.000s elapsed) EXIT time 0.000s ( 0.000s elapsed) Total time 0.103s ( 0.102s elapsed) %GC time 0.1% (0.1% elapsed) Alloc rate 511,162 bytes per MUT second Productivity 99.8% of total user, 100.9% of total elapsed However, if I change the type of test to test :: Word -> Word , the...
[ -0.0093994140625, -0.00592041015625, 0.01116943359375, 0.00555419921875, -0.0032196044921875, 0.00897216796875, -0.031982421875, 0.0057373046875, 0.0023956298828125, -0.002960205078125, 0.0169677734375, -0.002044677734375, 0.01190185546875, 0.00274658203125, 0.01068115234375, 0.0036621...
[ 3413, 7, 107754, 6746, 28, 127966, 71, 16, 69657, 1733, 757, 8557, 29426, 6371, 33867, 9513, 9550, 3949, 13961, 3164, 6652, 34515, 190, 1662, 2485, 304, 390, 117, 276, 17632, 17932, 73111, 54613, 53, 10078, 5, 11991, 111, 3622, 38937, 8...
[ 0.203369140625, 0.131591796875, 0.15771484375, 0.1695556640625, 0.03167724609375, 0.1988525390625, 0.034637451171875, 0.01165771484375, 0.2288818359375, 0.201171875, 0.039215087890625, 0.2293701171875, 0.153564453125, 0.1575927734375, 0.1126708984375, 0.16015625, 0.1353759765625, 0...
embed
49706694_c0
49706694
haskell
0
Title: Explanation of the findIndices function Problem title: Explanation of the findIndices function Tags: haskell Problem: Explanation of the findIndices function I said in this question that I didn't understand the source code of findIndices . In fact I didn't pay enough attention and I didn't see that there are two...
Explanation of the findIndices function Explanation of the findIndices function haskell Data.Sequence Explanation Bool USE_REPORT_PRELUDE Efficient INLINE Explanation of the findIndices function I said in this question that I didn't understand the source code of findIndices . In fact I didn't pay enough attention and I...
[ -0.00762939453125, 0.017333984375, 0.021728515625, -0.0022125244140625, 0.00830078125, 0.0029449462890625, 0.00070953369140625, -0.000530242919921875, 0.023193359375, -0.01116943359375, -0.004608154296875, -0.0272216796875, -0.0191650390625, 0.0052490234375, 0.0230712890625, 0.00457763...
[ 5443, 5868, 7413, 159310, 5170, 32354, 1556, 142508, 11809, 944, 929, 78441, 11766, 91599, 94632, 866, 171092, 24500, 5881, 57339, 28219, 31344, 18151, 6626, 80934, 903, 1957, 17932, 61924, 73342, 45367, 87, 4904, 997, 23, 2256, 71 ]
[ 0.0052490234375, 0.1580810546875, 0.20361328125, 0.23583984375, 0.173828125, 0.1748046875, 0.1019287109375, 0.2020263671875, 0.03533935546875, 0.019989013671875, 0.098876953125, 0.18115234375, 0.07366943359375, 0.198974609375, 0.114501953125, 0.1300048828125, 0.203857421875, 0.0378...
embed
66871842_c1
66871842
haskell
1
5], [4 / 255, 16 / 255, 24 / 255, 16 / 255, 4 / 255], [1 / 255, 4 / 255, 6 / 255, 4 / 255, 1 / 255]] matrixLength = length gblurMatrix offset = matrixLength `div` 2 whitePx = PixelRGBA8 255 255 255 255 zeroPx = PixelRGBA8 0 0 0 255 pxPlus :: PixelRGBA8 -> PixelRGBA8 -> PixelRGBA8 pxPlus (PixelRGBA8 r1 g1 b1 a1) (PixelR...
5], [4 / 255, 16 / 255, 24 / 255, 16 / 255, 4 / 255], [1 / 255, 4 / 255, 6 / 255, 4 / 255, 1 / 255]] matrixLength = length gblurMatrix offset = matrixLength `div` 2 whitePx = PixelRGBA8 255 255 255 255 zeroPx = PixelRGBA8 0 0 0 255 pxPlus :: PixelRGBA8 -> PixelRGBA8 -> PixelRGBA8 pxPlus (PixelRGBA8 r1 g1 b1 a1) (PixelR...
[ -0.01031494140625, 0.01171875, 0.0019989013671875, -0.020751953125, 0.0040283203125, -0.0027008056640625, -0.0189208984375, 0.01904296875, 0.01434326171875, 0.0252685546875, -0.003936767578125, 0.027099609375, 0.00469970703125, -0.007232666015625, -0.0181884765625, -0.002777099609375, ...
[ 190, 268, 4, 378, 617, 248, 86565, 611, 744, 201, 68252, 305, 50944, 425, 5267, 449, 2203, 140909, 706, 47491, 42, 4613, 87427, 5773, 3509, 30618, 116, 35011, 683, 111159, 48802, 8031, 1019, 45234, 757, 88684, 88225, 29348, 52851, 304, ...
[ 0.1514892578125, 0.02130126953125, 0.0175628662109375, 0.008880615234375, 0.1180419921875, 0.0897216796875, 0.2958984375, 0.154052734375, 0.1119384765625, 0.08270263671875, 0.0052490234375, 0.056976318359375, 0.187744140625, 0.099853515625, 0.0227813720703125, 0.0989990234375, 0.0444...
embed
67901230_c1
67901230
haskell
1
the expression: [0 .. ] In a stmt of a list comprehension: n <- [0 .. ] | 2 | gregoryleibnitz = map mul ([x | n <- [0..], x <- ((num n) / (den n))]) | ^ ej3.hs:2:51: error: • No instance for (Fractional [Double]) arising from a use of ‘/’ • In the expression: ((num n) / (den n)) In a stmt of a list comprehension: x <-...
the expression: [0 .. ] In a stmt of a list comprehension: n <- [0 .. ] | 2 | gregoryleibnitz = map mul ([x | n <- [0..], x <- ((num n) / (den n))]) | ^ ej3.hs:2:51: error: • No instance for (Fractional [Double]) arising from a use of ‘/’ • In the expression: ((num n) / (den n)) In a stmt of a list comprehension: x <-...
[ -0.043701171875, -0.0164794921875, 0.006866455078125, -0.0147705078125, 0.0084228515625, 0.02880859375, 0.002349853515625, -0.0034637451171875, -0.0030364990234375, -0.0130615234375, -0.017333984375, 0.0074462890625, 0.0191650390625, -0.020263671875, -0.0130615234375, 0.02587890625, ...
[ 125195, 2389, 1468, 360, 6138, 39, 18, 111, 5303, 46683, 3220, 6889, 653, 4426, 9, 116, 180387, 1294, 133, 2566, 133936, 2203, 22288, 16690, 425, 1022, 2606, 248, 555, 86871, 363, 127, 37374, 18499, 438, 110527, 100, 108386, 10763, 289, ...
[ 0.259033203125, 0.15478515625, 0.144287109375, 0.040924072265625, 0.114013671875, 0.052459716796875, 0.1317138671875, 0.1124267578125, 0.2125244140625, 0.1458740234375, 0.1702880859375, 0.063720703125, 0.111328125, 0.1099853515625, 0.08203125, 0.134765625, 0.137939453125, 0.1069946...
embed
3236442_c1
3236442
haskell
1
(f $!! x) >>= iterateM' (n-1) f -- Deeply stict function application. ($!!) :: (NFData a) => (a -> b) -> a -> b f $!! x = x `deepseq` f x It is certainly better than lazy composition. Unfortunately, it is not enough. -- main seems to run in O(size*iters^2) time... main :: IO () main = do (size:iters:_) <- liftM (map r...
(f $!! x) >>= iterateM' (n-1) f -- Deeply stict function application. ($!!) :: (NFData a) => (a -> b) -> a -> b f $!! x = x `deepseq` f x It is certainly better than lazy composition. Unfortunately, it is not enough. -- main seems to run in O(size*iters^2) time... main :: IO () main = do (size:iters:_) <- liftM (map r...
[ -0.01904296875, -0.004150390625, 0.0108642578125, -0.0084228515625, 0.01153564453125, 0.0125732421875, 0.024169921875, -0.0167236328125, 0.007049560546875, -0.056396484375, 0.0208740234375, 0.01171875, 0.02294921875, 0.0281982421875, 0.0126953125, 0.00439453125, 0.002349853515625, ...
[ 420, 3650, 1146, 1022, 17, 8560, 67, 594, 25, 19, 110218, 1238, 62723, 538, 28692, 18, 32354, 38415, 73493, 137989, 33079, 876, 2203, 123041, 184, 864, 68782, 11522, 21, 3285, 166577, 185397, 959, 20174, 5201, 37202, 11675, 23, 180, 62539...
[ 0.1168212890625, 0.007110595703125, 0.107177734375, 0.06549072265625, 0.060211181640625, 0.24169921875, 0.1092529296875, 0.1456298828125, 0.046539306640625, 0.0285186767578125, 0.14208984375, 0.09814453125, 0.203369140625, 0.1866455078125, 0.1807861328125, 0.1932373046875, 0.16540527...
embed
33966747_c0
33966747
haskell
0
Title: Replace a record if it exists and gracefully fail if it doesn&#x27;t? Problem title: Replace a record if it exists and gracefully fail if it doesn&#x27;t? Tags: haskell-persistent, haskell Problem: Replace a record if it exists and gracefully fail if it doesn't? Persistent comes with two operations for wholesale...
Replace a record if it exists and gracefully fail if it doesn&#x27;t? Replace a record if it exists and gracefully fail if it doesn&#x27;t? haskell-persistent haskell Replace Replace a record if it exists and gracefully fail if it doesn't? Persistent comes with two operations for wholesale replacement of records: repla...
[ -0.025634765625, 0.0203857421875, -0.000732421875, -0.00982666015625, 0.000274658203125, 0.005462646484375, -0.0038604736328125, -0.004730224609375, 0.01397705078125, 0.0172119140625, 0.005218505859375, 0.01055908203125, 0.003021240234375, -0.0263671875, 0.0033721923828125, 0.006408691...
[ 853, 23935, 10, 17164, 2174, 32316, 7, 136, 4224, 329, 126351, 35782, 22027, 3768, 18, 1556, 142508, 21777, 6892, 442, 57309, 2581, 32497, 678, 6626, 41018, 100, 28271, 1935, 91995, 674, 115923, 10958, 33657, 17106, 3525, 183540, 63399, 959...
[ 0.1138916015625, 0.24365234375, 0.053009033203125, 0.254638671875, 0.137939453125, 0.2646484375, 0.047271728515625, 0.080322265625, 0.111572265625, 0.07586669921875, 0.1124267578125, 0.223876953125, 0.1143798828125, 0.01275634765625, 0.1766357421875, 0.130859375, 0.21923828125, 0.1...
embed
37143458_c1
37143458
haskell
1
convinced it's something painfully subtle. Here's the aforementioned code: -- TestServer.hs module TestServer where import Control.Concurrent import Network.Socket import System.IO type User = (Handle, String) userName :: User -> String userName (_, name) = name main :: IO () main = do sock <- socket AF_INET Stream 0 ...
convinced it's something painfully subtle. Here's the aforementioned code: -- TestServer.hs module TestServer where import Control.Concurrent import Network.Socket import System.IO type User = (Handle, String) userName :: User -> String userName (_, name) = name main :: IO () main = do sock <- socket AF_INET Stream 0 ...
[ -0.0012054443359375, 0.006866455078125, 0.000797271728515625, 0.019775390625, -0.00347900390625, 0.01458740234375, -0.0036163330078125, 0.006317138671875, 0.00982666015625, -0.0177001953125, 0.01116943359375, -0.000156402587890625, -0.004302978515625, 0.01422119140625, -0.018310546875, ...
[ 122991, 71, 442, 25, 7, 9844, 24503, 126351, 1614, 17991, 5, 18151, 12, 8647, 193348, 127, 88996, 24927, 27131, 11935, 163812, 28997, 8912, 27853, 12353, 17780, 10644, 53400, 135679, 23351, 38937, 163612, 9351, 5201, 54, 221, 28211, 17777, ...
[ 0.162109375, 0.048065185546875, 0.1375732421875, 0.057647705078125, 0.09228515625, 0.0733642578125, 0.147216796875, 0.0926513671875, 0.168701171875, 0.2222900390625, 0.07470703125, 0.1705322265625, 0.001129150390625, 0.2357177734375, 0.2222900390625, 0.125244140625, 0.1431884765625, ...
embed
14686731_c0
14686731
haskell
0
Title: Rotate char Matrix image in Haskell Problem title: Rotate char Matrix image in Haskell Tags: rotation, matrix, list, haskell Problem: Rotate char Matrix image in Haskell I'm currently working on an assignment for my class and one of the requirements is to create a function called rotate90. This function basicall...
Rotate char Matrix image in Haskell Rotate char Matrix image in Haskell rotation matrix list haskell Rotate Matrix Haskell Picture Char rotate90 x:xs y:ys Rotate char Matrix image in Haskell I'm currently working on an assignment for my class and one of the requirements is to create a function called rotate90. This fun...
[ 0.0017852783203125, 0.00060272216796875, 0.0150146484375, 0.0022430419921875, -0.0037384033203125, -0.00927734375, -0.006591796875, -0.0052490234375, -0.01239013671875, 0.0206298828125, 0.01513671875, -0.010009765625, 0.01068115234375, 0.01239013671875, -0.03662109375, -0.0093383789062...
[ 146283, 67, 21441, 194234, 29569, 23, 20625, 142508, 2062, 22062, 50944, 5303, 1556, 158656, 21656, 47014, 5039, 12, 425, 113, 4778, 82424, 20697, 95486, 759, 18507, 96679, 28282, 32354, 198343, 51776, 84068, 136, 1636, 2510, 79385, 21135, 27...
[ 0.2132568359375, 0.1435546875, 0.2064208984375, 0.239501953125, 0.1956787109375, 0.074951171875, 0.144775390625, 0.22119140625, 0.1475830078125, 0.043609619140625, 0.1871337890625, 0.134521484375, 0.112060546875, 0.15234375, 0.1876220703125, 0.207275390625, 0.281982421875, 0.021652...
embed
16639793_c0
16639793
haskell
0
Title: Turning a tree into a heap in haskell Problem title: Turning a tree into a heap in haskell Tags: priority-queue, binary-tree, haskell Problem: Turning a tree into a heap in haskell I need to make an implementation of a priority queue with a Heap Tree in Haskell, for example: Given a list: [3,2,7,8,4,1,9] 3 is th...
Turning a tree into a heap in haskell Turning a tree into a heap in haskell priority-queue binary-tree haskell Turning Turning a tree into a heap in haskell I need to make an implementation of a priority queue with a Heap Tree in Haskell, for example: Given a list: [3,2,7,8,4,1,9] If I want to heapifiy the tree it woul...
[ 0.003936767578125, 0.0174560546875, -0.011474609375, -0.0196533203125, 0.015380859375, 0.0123291015625, -0.0284423828125, -0.0126953125, 0.011962890625, -0.04052734375, -0.007354736328125, -0.0035858154296875, 0.0196533203125, 0.025146484375, -0.0023651123046875, -0.0020904541015625, ...
[ 4252, 53201, 3934, 10, 764, 2631, 23, 1556, 142508, 25343, 53, 944, 13388, 2394, 6635, 62600, 3871, 3249, 208124, 41, 1529, 101344, 20625, 77878, 5303, 122101, 304, 136005, 617, 198889, 3444, 17305, 1434, 1029, 1884, 3564, 1126, 483, 12830,...
[ 0.119384765625, 0.2288818359375, 0.1280517578125, 0.066650390625, 0.1688232421875, 0.2138671875, 0.05999755859375, 0.148681640625, 0.2314453125, 0.1885986328125, 0.07666015625, 0.10479736328125, 0.1185302734375, 0.1260986328125, 0.06103515625, 0.1956787109375, 0.037811279296875, 0....
embed
39313267_c0
39313267
haskell
0
Title: Make this function tacit Problem title: Make this function tacit Tags: pointfree, haskell Problem: Make this function tacit I'd like to make this function point-free, in order to simplify it. I'm passing the length explicitly instead of computing it, since I also need it for other functions, and I'd like to comp...
Make this function tacit Make this function tacit pointfree haskell the Make Cycle Given Example ALLY MEET DAWN Result LYAL Make this function tacit I'd like to make this function point-free, in order to simplify it. I'm passing the length explicitly instead of computing it, since I also need it for other functions, an...
[ -0.01165771484375, 0.003997802734375, 0.0017852783203125, 0.01483154296875, 0.0184326171875, -0.0002727508544921875, -0.014892578125, -0.0269775390625, 0.0206298828125, -0.016357421875, 0.00634765625, 0.0079345703125, -0.01806640625, 0.0184326171875, -0.01300048828125, 0.00933837890625...
[ 26176, 903, 32354, 308, 12645, 6275, 32087, 1556, 142508, 151612, 13, 89536, 58837, 1723, 276, 76771, 6405, 108049, 126684, 339, 163519, 1884, 3249, 9, 112892, 18929, 452, 140909, 143726, 64457, 242122, 3871, 9969, 6743, 442, 1660, 24145, 313...
[ 0.1573486328125, 0.118896484375, 0.2310791015625, 0.1812744140625, 0.26318359375, 0.135009765625, 0.2257080078125, 0.1368408203125, 0.251220703125, 0.2120361328125, 0.07122802734375, 0.0670166015625, 0.051727294921875, 0.1163330078125, 0.1376953125, 0.1932373046875, 0.06646728515625,...
embed
20437122_c2
20437122
haskell
2
) [12 of 18] Compiling First ( src/First.lhs, dist/build/happy/happy-tmp/First.o ) [13 of 18] Compiling LALR ( src/LALR.lhs, dist/build/happy/happy-tmp/LALR.o ) [14 of 18] Compiling Paths_happy ( dist/build/autogen/Paths_happy.hs, dist/build/happy/happy-tmp/Paths_happy.o ) [15 of 18] Compiling ProduceCode ( Code signa...
) [12 of 18] Compiling First ( src/First.lhs, dist/build/happy/happy-tmp/First.o ) [13 of 18] Compiling LALR ( src/LALR.lhs, dist/build/happy/happy-tmp/LALR.o ) [14 of 18] Compiling Paths_happy ( dist/build/autogen/Paths_happy.hs, dist/build/happy/happy-tmp/Paths_happy.o ) [15 of 18] Compiling ProduceCode ( Code signa...
[ 0.0021209716796875, -0.0172119140625, 0.02978515625, -0.0034637451171875, -0.005340576171875, -0.017578125, -0.007232666015625, -0.015869140625, 0.01080322265625, 0.0162353515625, -0.0211181640625, -0.02197265625, 0.00482177734375, -0.007568359375, 0.006927490234375, 0.0003128051757812...
[ 1388, 1530, 111, 543, 268, 15612, 49725, 23972, 19437, 207263, 5, 79366, 7, 4, 45, 271, 177149, 157976, 9, 2676, 31, 378, 2681, 3358, 138535, 91, 8356, 2592, 108421, 454, 15, 64, 8913, 1409, 683, 10519, 127, 1837, 103687, 13, 114211, ...
[ 0.05474853515625, 0.144287109375, 0.06524658203125, 0.162841796875, 0.0694580078125, 0.2059326171875, 0.20703125, 0.212646484375, 0.120361328125, 0.16162109375, 0.056610107421875, 0.1488037109375, 0.11083984375, 0.00885009765625, 0.0596923828125, 0.082763671875, 0.1923828125, 0.230...
embed
30055433_c0
30055433
haskell
0
Title: Print list with space rather comma Problem title: Print list with space rather comma Tags: list, haskell Problem: Print list with space rather comma I have a problem with a function of Haskell: after converting a tree into a list I need to print it with items separated by a space instead of a comma. For example:...
Print list with space rather comma Print list with space rather comma list haskell Print Tree Empty Branch Show tree4 Main SimpleRecords Integer x:xs Print list with space rather comma I have a problem with a function of Haskell: after converting a tree into a list I need to print it with items separated by a space ins...
[ -0.0091552734375, -0.00714111328125, -0.0004711151123046875, 0.0167236328125, 0.00634765625, 0.017822265625, -0.0169677734375, -0.0264892578125, 0.01953125, -0.0022735595703125, 0.00144195556640625, -0.0242919921875, 0.004730224609375, 0.006195068359375, -0.01171875, 0.0205078125, 0....
[ 39754, 5303, 678, 32628, 43257, 96117, 1556, 142508, 101344, 31678, 939, 21110, 17367, 53201, 617, 12321, 60552, 32271, 44401, 425, 2967, 32354, 20625, 7103, 96760, 3934, 3871, 28412, 55769, 84797, 64457, 16750, 1884, 11249, 831, 54, 903, 645...
[ 0.2197265625, 0.223388671875, 0.092529296875, 0.2396240234375, 0.19384765625, 0.2406005859375, 0.1124267578125, 0.235107421875, 0.17529296875, 0.139404296875, 0.020965576171875, 0.1002197265625, 0.1307373046875, 0.1844482421875, 0.06109619140625, 0.01177978515625, 0.1136474609375, ...
embed
3258824_c0
3258824
haskell
0
Title: OOP style inheritance in Haskell Problem title: OOP style inheritance in Haskell Tags: oop, haskell, c%23 Problem: OOP style inheritance in Haskell In C# I can declare the following class A { int Field; } class B : A { int Field2; } static int f(A a) { return a.Field; } static int f(B b) { return a.Field + b.Fie...
OOP style inheritance in Haskell OOP style inheritance in Haskell oop haskell c%23 OOP Haskell Field Field2 a.Field b.Field2 Main Console.WriteLine OOP style inheritance in Haskell In C# I can declare the following In Haskell I would type out the above as What I don't like about the Haskell counterpart is that I have t...
[ 0.0157470703125, 0.00799560546875, 0.00665283203125, 0.027587890625, -0.0011444091796875, -0.00311279296875, 0.00445556640625, -0.0037689208984375, 0.003143310546875, -0.006439208984375, 0.002960205078125, -0.000972747802734375, 0.006134033203125, 0.01312255859375, 0.0152587890625, -0....
[ 180, 20880, 20623, 23, 3334, 217, 7154, 20625, 142508, 32500, 1556, 3742, 117657, 304, 10, 6159, 19388, 876, 12321, 40777, 18781, 93232, 313, 4904, 831, 159978, 25632, 360, 2806, 10644, 1810, 36917, 2301, 18, 1884, 105416, 17365, 765, 11914...
[ 0.0958251953125, 0.256103515625, 0.2227783203125, 0.08074951171875, 0.1793212890625, 0.1151123046875, 0.047393798828125, 0.1510009765625, 0.22314453125, 0.1885986328125, 0.1236572265625, 0.09503173828125, 0.14892578125, 0.086669921875, 0.0213623046875, 0.0157928466796875, 0.116577148...
embed
14513820_c0
14513820
haskell
0
Title: How do I look up Haskell commands and keywords? Problem title: How do I look up Haskell commands and keywords? Tags: haskell, ghci Problem: How do I look up Haskell commands and keywords? I'm teaching myself Haskell but one problem I'm running into a lot with haskell is that it's really hard to find the definiti...
How do I look up Haskell commands and keywords? How do I look up Haskell commands and keywords? haskell ghci How Haskell How do I look up Haskell commands and keywords? I'm teaching myself Haskell but one problem I'm running into a lot with haskell is that it's really hard to find the definitions of Haskell keywords, s...
[ 0.013916015625, 0.0087890625, 0.01806640625, 0.01287841796875, 0.000885009765625, 0.01806640625, -0.0037994384765625, 0.00075531005859375, -0.005218505859375, -0.0181884765625, 0.004180908203125, -0.041748046875, -0.00188446044921875, 0.0078125, -0.01324462890625, 0.005767822265625, ...
[ 11249, 54, 87, 6713, 1257, 20625, 142508, 75101, 7, 136, 166117, 32, 1556, 31380, 318, 128169, 35978, 2967, 51042, 3934, 5915, 678, 6183, 7941, 7413, 80934, 111, 6002, 86531, 57143, 11337, 4537, 17368, 12, 18, 23, 98893, 47, 1957, 52895, ...
[ 0.09503173828125, 0.0701904296875, 0.0655517578125, 0.194091796875, 0.197021484375, 0.1702880859375, 0.26123046875, 0.27294921875, 0.0828857421875, 0.13671875, 0.249267578125, 0.000030517578125, 0.134033203125, 0.1187744140625, 0.126708984375, 0.078369140625, 0.021728515625, 0.1162...
embed
61976568_c0
61976568
haskell
0
Title: why is it an outermost redex? Problem title: why is it an outermost redex? Tags: lazy-evaluation, haskell Problem: why is it an outermost redex? I have been reading the book "Programming in Haskell by Hutton". This is one of the exercises about lazy evaluation from the book: 1. Identify the redexes in the follow...
why is it an outermost redex? why is it an outermost redex? lazy-evaluation haskell why is it an outermost redex? I have been reading the book "Programming in Haskell by Hutton". This is one of the exercises about lazy evaluation from the book: 1. Identify the redexes in the following expressions, and determine whether...
[ 0.019287109375, -0.01397705078125, 0.004669189453125, 0.01409912109375, 0.024658203125, 0.03466796875, -0.0103759765625, -0.005035400390625, 0.0033111572265625, -0.005096435546875, 0.002197265625, -0.0439453125, -0.012451171875, -0.01123046875, 0.0159912109375, -0.0022430419921875, -...
[ 15400, 83, 442, 628, 32166, 5510, 15265, 425, 21, 3285, 159258, 1556, 142508, 142, 16454, 12877, 172895, 20625, 1507, 81979, 219836, 71257, 31195, 125195, 83324, 12638, 75414, 840, 997, 21320, 876, 54651, 661, 85398, 14137, 4734, 106, 1328, ...
[ 0.1556396484375, 0.041717529296875, 0.046173095703125, 0.1771240234375, 0.15478515625, 0.1907958984375, 0.196044921875, 0.199462890625, 0.076416015625, 0.1636962890625, 0.14599609375, 0.1058349609375, 0.2369384765625, 0.01202392578125, 0.03271484375, 0.0291595458984375, 0.06854248046...
embed
26564705_c0
26564705
haskell
0
Title: Commutative Pattern Matching Problem title: Commutative Pattern Matching Tags: pattern-matching, haskell, commutativity Problem: Commutative Pattern Matching I find it a little annoying to type (+) 0 a = a (+) a 0 = a (*) 0 _ = 0 (*) _ 0 = 0 -- etc. The following is more or less what I am trying to do f [] a = a...
Commutative Pattern Matching Commutative Pattern Matching pattern-matching haskell commutativity Commutative Pattern Matching Commutative Pattern Matching I find it a little annoying to type The following is more or less what I am trying to do Is there a way to state that a function is commutative? As in, is there a wa...
[ -0.006866455078125, -0.0074462890625, -0.00823974609375, 0.0037689208984375, -0.0016021728515625, -0.0017852783203125, -0.006988525390625, -0.0020904541015625, 0.00921630859375, -0.0238037109375, 0.00189971923828125, 0.0103759765625, 0.010498046875, 0.008056640625, 0.004180908203125, -...
[ 3288, 68754, 5844, 9876, 22766, 67407, 214, 103510, 98753, 1556, 142508, 375, 54613, 7413, 442, 10176, 8668, 38543, 10644, 25632, 40715, 31577, 2685, 10, 3917, 47, 11341, 450, 32354, 83, 4989, 171859, 17311, 34292, 7068, 16750, 5608, 221, 2...
[ 0.08349609375, 0.26806640625, 0.218505859375, 0.1513671875, 0.06561279296875, 0.2164306640625, 0.04168701171875, 0.205810546875, 0.1962890625, 0.1373291015625, 0.247802734375, 0.155029296875, 0.1478271484375, 0.059844970703125, 0.00897216796875, 0.0723876953125, 0.10662841796875, 0...
embed
27084130_c0
27084130
haskell
0
Title: Non-exhaustive pattern in function declaration Problem title: Non-exhaustive pattern in function declaration Tags: pattern-matching, non-exhaustive-patterns, haskell Problem: Non-exhaustive pattern in function declaration I'm having difficulties implementing the following function: type Tabuleiro = [String] type...
Non-exhaustive pattern in function declaration Non-exhaustive pattern in function declaration pattern-matching non-exhaustive-patterns haskell Non-exhaustive Tabuleiro Comandos Comando Coordenadas cmd:xs c1-1 c2-1 x:y:z Coord Non-exhaustive pattern in function declaration I'm having difficulties implementing the follow...
[ -0.00185394287109375, 0.00762939453125, 0.005950927734375, 0.009033203125, 0.01226806640625, -0.01055908203125, 0.000820159912109375, -0.005645751953125, 0.01171875, 0.014404296875, 0.0004405975341796875, -0.0101318359375, 0.00946044921875, -0.02294921875, 0.00750732421875, -0.00747680...
[ 3775, 3355, 18391, 4935, 103510, 23, 32354, 21635, 98753, 214, 351, 4453, 22766, 1556, 142508, 22193, 202, 11126, 3288, 3448, 38228, 8397, 1827, 71, 425, 115727, 146971, 1022, 53, 169, 1311, 6651, 34844, 3387, 29479, 25632, 9969, 34759, 186...
[ 0.177490234375, 0.03729248046875, 0.1341552734375, 0.0955810546875, 0.2373046875, 0.04107666015625, 0.16357421875, 0.1868896484375, 0.162841796875, 0.013275146484375, 0.1683349609375, 0.1419677734375, 0.151611328125, 0.1300048828125, 0.21484375, 0.076416015625, 0.07208251953125, 0....
embed
20915842_c1
20915842
haskell
1
r'' ~ (r, r')) => MonadRun (ReaderT r m a) r'' m' where monadRun outer (r, r') = monadRun (runReaderT outer r) r' instance (MonadRun (m a) () m') => MonadRun (ReaderT r m a) r m' where monadRun outer r = monadRun (runReaderT outer r) () and I will get the correct type. Now the questions: 1 . Has someone written someth...
r'' ~ (r, r')) => MonadRun (ReaderT r m a) r'' m' where monadRun outer (r, r') = monadRun (runReaderT outer r) r' instance (MonadRun (m a) () m') => MonadRun (ReaderT r m a) r m' where monadRun outer r = monadRun (runReaderT outer r) () and I will get the correct type. Now the questions: 1 . Has someone written someth...
[ -0.0003185272216796875, 0.010498046875, -0.00927734375, 0.017578125, 0.003662109375, -0.003936767578125, -0.0135498046875, -0.02685546875, 0.005462646484375, -0.0277099609375, -0.001434326171875, 0.027099609375, -0.01263427734375, 0.005157470703125, -0.00311279296875, -0.00341796875, ...
[ 1690, 4765, 6780, 42, 25, 44357, 60331, 71, 163321, 31345, 56, 618, 10, 2667, 712, 1810, 16428, 110527, 46674, 39, 2046, 26785, 10644, 17582, 59121, 1884, 903, 21771, 61799, 177261, 32997, 79825, 25072, 52344, 27169, 1295, 27781, 15, 74918,...
[ 0.07476806640625, 0.1253662109375, 0.038177490234375, 0.0941162109375, 0.11328125, 0.008941650390625, 0.1884765625, 0.11669921875, 0.2197265625, 0.1859130859375, 0.0814208984375, 0.09027099609375, 0.0845947265625, 0.141845703125, 0.1644287109375, 0.1126708984375, 0.08953857421875, ...
embed
70384430_c1
70384430
haskell
1
"] Is it possible to recursively transform type-level lists to terms? Full code: {-# LANGUAGE TypeApplications #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE PolyKinds #-} {-# LANGUAGE AllowAmbiguousTypes #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE ScopedTypeVariables #-} module T...
"] Is it possible to recursively transform type-level lists to terms? Full code: {-# LANGUAGE TypeApplications #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE PolyKinds #-} {-# LANGUAGE AllowAmbiguousTypes #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE ScopedTypeVariables #-} module T...
[ -0.00531005859375, -0.00110626220703125, -0.0120849609375, 0.0036773681640625, -0.003662109375, 0.00093841552734375, 0.012939453125, 0.0042724609375, -0.003875732421875, -0.0074462890625, 0.00579833984375, -0.029541015625, 0.0108642578125, 0.0206298828125, -0.01397705078125, 0.00117492...
[ 44, 268, 2071, 442, 7722, 195625, 5844, 27198, 10644, 67919, 5303, 47, 69407, 9312, 18151, 98064, 75930, 60457, 47677, 182867, 1191, 156823, 63306, 7250, 41566, 12282, 196707, 180842, 2661, 116071, 182783, 81827, 88996, 2994, 24927, 11809, 1075...
[ 0.0643310546875, 0.027801513671875, 0.0528564453125, 0.00994873046875, 0.1480712890625, 0.2122802734375, 0.1368408203125, 0.202392578125, 0.1961669921875, 0.2000732421875, 0.179443359375, 0.079833984375, 0.282470703125, 0.04803466796875, 0.123291015625, 0.0833740234375, 0.00183105468...
embed
76784457_c0
76784457
haskell
0
Title: Convert a sorted list to a binary tree Problem title: Convert a sorted list to a binary tree Tags: list, haskell, binary-tree, binary-search-tree, recursion Problem: Convert a sorted list to a binary tree I have encoded the following tree: as Unir (Unir (Unir Vacio 1 Vacio) 2 Vacio) 5 (Unir Vacio 8 Vacio) using ...
Convert a sorted list to a binary tree Convert a sorted list to a binary tree list haskell binary-tree binary-search-tree recursion Convert ABB Vacio Unir list2ABB Ord x:xs Convert a sorted list to a binary tree I have encoded the following tree: as using the following Algebraic Data Type: However, I defined the follow...
[ 0.003021240234375, -0.0078125, 0.02392578125, -0.00335693359375, 0.0177001953125, 0.0113525390625, -0.0230712890625, -0.02392578125, 0.021728515625, -0.00148773193359375, 0.0031280517578125, -0.01953125, 0.03564453125, 0.029296875, 0.007537841796875, -0.0169677734375, 0.0380859375, ...
[ 1657, 11549, 17497, 71, 5303, 47, 10, 2394, 6635, 53201, 1556, 142508, 62600, 86250, 195625, 62, 22312, 3453, 3521, 992, 481, 304, 284, 35379, 1022, 425, 22, 40899, 25632, 17368, 429, 2844, 11809, 60457, 61924, 32354, 71924, 12921, 16750, ...
[ 0.0499267578125, 0.165283203125, 0.193359375, 0.095947265625, 0.2308349609375, 0.09075927734375, 0.038360595703125, 0.1658935546875, 0.143310546875, 0.271728515625, 0.08172607421875, 0.195556640625, 0.2117919921875, 0.1263427734375, 0.1373291015625, 0.050750732421875, 0.2337646484375...
embed
8428386_c1
8428386
haskell
1
assumption holds true, then the functions are also equivilant for n = k + 1 (and hence they are all equivalent for all n >= 1 QED) fib' (k+1) = fib (k+1) f (k+1) 0 1 = fib k + fib (k-1) I've tried various manipulations, substituting the assumption in at the right time and so on, but I just can't get LHS to equal RHS a...
assumption holds true, then the functions are also equivilant for n = k + 1 (and hence they are all equivalent for all n >= 1 QED) fib' (k+1) = fib (k+1) f (k+1) 0 1 = fib k + fib (k-1) I've tried various manipulations, substituting the assumption in at the right time and so on, but I just can't get LHS to equal RHS a...
[ 0.01275634765625, 0.00970458984375, 0.00299072265625, -0.00274658203125, -0.005035400390625, -0.01177978515625, -0.00848388671875, -0.015869140625, 0.01708984375, -0.004974365234375, 0.01031494140625, 0.00787353515625, -0.012939453125, -0.000324249267578125, 0.005462646484375, -0.00442...
[ 237259, 16401, 7, 29568, 32354, 2843, 60715, 5115, 1236, 653, 472, 997, 106, 621, 756, 183234, 2396, 17610, 809, 275, 25, 92, 21748, 1238, 757, 110218, 37842, 45258, 161740, 339, 38131, 105950, 68416, 294, 23534, 18749, 132283, 15122, 66211...
[ 0.27978515625, 0.1453857421875, 0.01953125, 0.1800537109375, 0.1949462890625, 0.0224456787109375, 0.0625, 0.1358642578125, 0.1175537109375, 0.0927734375, 0.0860595703125, 0.173583984375, 0.07879638671875, 0.035308837890625, 0.0693359375, 0.224853515625, 0.041259765625, 0.1450195312...
embed
11474634_c0
11474634
haskell
0
Title: Computing all possibilities of replacing one character by another Problem title: Computing all possibilities of replacing one character by another Tags: char, string, replace, list, haskell Problem: Computing all possibilities of replacing one character by another > magicFunction 'l' '_' "hello world" ["he_lo wo...
Computing all possibilities of replacing one character by another Computing all possibilities of replacing one character by another char string replace list haskell Data.List Computing he_lo hel_o wor_d Network.CGI.Protocol Computing all possibilities of replacing one character by another Is there such a magic function...
[ -0.0281982421875, 0.00946044921875, 0.0125732421875, 0.0019989013671875, 0.00156402587890625, -0.004974365234375, -0.005950927734375, -0.00872802734375, 0.01611328125, 0.0034332275390625, 0.005767822265625, -0.010498046875, 0.004974365234375, -0.0028228759765625, -0.01422119140625, -0....
[ 159415, 214, 756, 97370, 2449, 456, 133266, 1632, 62816, 390, 15700, 21441, 79315, 91995, 5303, 1556, 142508, 11809, 154663, 764, 454, 365, 7943, 31, 23432, 71, 28997, 18027, 10752, 188, 8447, 111, 2685, 6044, 49846, 32354, 5570, 1914, 822,...
[ 0.2109375, 0.031982421875, 0.130615234375, 0.219482421875, 0.1112060546875, 0.12060546875, 0.1785888671875, 0.0972900390625, 0.2303466796875, 0.08929443359375, 0.14404296875, 0.1732177734375, 0.1439208984375, 0.242919921875, 0.162353515625, 0.13037109375, 0.2237548828125, 0.0766601...
embed
34023924_c0
34023924
haskell
0
Title: Haskell change the order of a list Problem title: Haskell change the order of a list Tags: haskell, module Problem: Haskell change the order of a list so I have this module that creates a list of favorites, when i add something to the list i want it to appear in the end of the list. For example let l1 = foldr ad...
Haskell change the order of a list Haskell change the order of a list haskell module Haskell MyModule ListFav Elem Bool Empty Show Haskell change the order of a list so I have this module that creates a list of favorites, when i add something to the list i want it to appear in the end of the list. For example The resul...
[ 0.00567626953125, 0.0052490234375, -0.0042724609375, -0.00165557861328125, 0.00439453125, 0.021484375, 0.00469970703125, -0.01513671875, 0.00433349609375, 0.01519775390625, 0.0247802734375, -0.0079345703125, 0.025390625, 0.018798828125, -0.020263671875, -0.01007080078125, -0.01556396...
[ 20625, 142508, 15549, 70, 12989, 111, 5303, 10, 1556, 88996, 2646, 91616, 8782, 32036, 919, 3818, 540, 195, 2460, 929, 31678, 939, 17367, 28282, 40304, 15190, 9844, 17, 3444, 108975, 3564, 16750, 5608, 71, 13, 238, 275, 3917, 110527, 2947...
[ 0.141357421875, 0.20166015625, 0.205078125, 0.0906982421875, 0.2261962890625, 0.1514892578125, 0.224853515625, 0.049163818359375, 0.1322021484375, 0.166259765625, 0.0694580078125, 0.0628662109375, 0.03472900390625, 0.1116943359375, 0.064453125, 0.13720703125, 0.035064697265625, 0.1...
embed
34624402_c0
34624402
haskell
0
Title: parse error in let binding: missing required &#x27;in&#x27; Problem title: parse error in let binding: missing required &#x27;in&#x27; Tags: functional-programming, haskell Problem: parse error in let binding: missing required 'in' I was solving a problem where is needed to split a full binary tree into a matchi...
parse error in let binding: missing required &#x27;in&#x27; parse error in let binding: missing required &#x27;in&#x27; functional-programming haskell FTree BTree LTree Leaf Empty Node Tip Fork solucaoficha9.hs:89:25 parse error in let binding: missing required 'in' I was solving a problem where is needed to split a fu...
[ 0.01458740234375, 0.01025390625, -0.025390625, 0.000274658203125, -0.006683349609375, 0.0361328125, -0.0184326171875, -0.00909423828125, -0.00360107421875, -0.015625, -0.01165771484375, -0.006195068359375, 0.0096435546875, 0.01239013671875, 0.03369140625, 0.01361083984375, -0.0061950...
[ 366, 184, 18499, 2633, 128239, 132283, 56065, 3768, 73, 123309, 28966, 1556, 142508, 62731, 107, 2407, 31678, 438, 112, 21458, 1326, 92, 31563, 123142, 1436, 18949, 21224, 2967, 44841, 65450, 4393, 2394, 6635, 53201, 3934, 14858, 115, 2661, ...
[ 0.115234375, 0.1197509765625, 0.1658935546875, 0.2015380859375, 0.2386474609375, 0.207763671875, 0.25732421875, 0.068603515625, 0.22998046875, 0.103515625, 0.0699462890625, 0.1002197265625, 0.19140625, 0.1475830078125, 0.064697265625, 0.1192626953125, 0.099609375, 0.0770263671875, ...
embed
35650696_c0
35650696
haskell
0
Title: Uplifting strategies when working with Functors Problem title: Uplifting strategies when working with Functors Tags: haskell Problem: Uplifting strategies when working with Functors Assume that I have a function foo :: a -> b -> c -> d -> e foo a b c d = somefn a b c d and some functions that return me a, b, c a...
Uplifting strategies when working with Functors Uplifting strategies when working with Functors haskell Uplifting Functors Uplifting strategies when working with Functors Assume that I have a function and some functions that return me a, b, c and d repsectively only that the function returning c is return a functor wit...
[ 0.01275634765625, 0.0223388671875, 0.007354736328125, -0.0038604736328125, 0.0189208984375, -0.00836181640625, -0.00909423828125, -0.0096435546875, 0.01495361328125, -0.0157470703125, -0.0007476806640625, -0.01708984375, -0.0003757476806640625, 0.0224609375, 0.0023956298828125, -0.0277...
[ 10091, 177691, 50531, 20697, 678, 28670, 18770, 1556, 142508, 66596, 765, 32354, 136, 30646, 163, 876, 501, 104, 10958, 7, 100034, 4734, 7477, 11782, 1764, 171259, 23742, 18, 4488, 2046, 441, 959, 68034, 3917, 37202, 8781, 47, 5775, 31, 7...
[ 0.103515625, 0.2347412109375, 0.1904296875, 0.1285400390625, 0.0716552734375, 0.168212890625, 0.1871337890625, 0.1334228515625, 0.259521484375, 0.049468994140625, 0.0169677734375, 0.1650390625, 0.00897216796875, 0.1580810546875, 0.06011962890625, 0.013580322265625, 0.09039306640625, ...
embed
14676737_c0
14676737
haskell
0
Title: Why Haskell uses bottom instead of null in partial functions? Problem title: Why Haskell uses bottom instead of null in partial functions? Tags: types, haskell Problem: Why Haskell uses bottom instead of null in partial functions? I'm reading about Haskell denotational semantics ( http://en.wikibooks.org/wiki/Ha...
Why Haskell uses bottom instead of null in partial functions? Why Haskell uses bottom instead of null in partial functions? types haskell Why Haskell Why Haskell uses bottom instead of null in partial functions? I'm reading about Haskell denotational semantics ( http://en.wikibooks.org/wiki/Haskell/Denotational_semanti...
[ -0.000743865966796875, 0.006744384765625, 0.0233154296875, -0.017822265625, -0.007659912109375, 0.00811767578125, 0.0069580078125, -0.02587890625, -0.005218505859375, -0.0038909912109375, 0.0004367828369140625, -0.0185546875, 0.005706787109375, 0.002777099609375, 0.01416015625, 0.00273...
[ 44084, 20625, 142508, 4527, 103136, 64457, 56574, 2878, 289, 32354, 7, 111, 23, 52895, 1556, 8, 58358, 43315, 484, 109109, 81415, 6495, 4657, 5765, 35782, 15400, 10644, 27494, 13, 158012, 15700, 17366, 154186, 33176, 142424, 831, 103510, 1485...
[ 0.10467529296875, 0.1279296875, 0.2471923828125, 0.10986328125, 0.283447265625, 0.129638671875, 0.2103271484375, 0.1414794921875, 0.06396484375, 0.1427001953125, 0.03271484375, 0.004852294921875, 0.004730224609375, 0.162841796875, 0.10601806640625, 0.049774169921875, 0.1510009765625,...
embed
78055354_c1
78055354
haskell
1
't match type ‘StateT Classroom Data.Functor.Identity.Identity TestResult’ with ‘TestResult’ Expected: TestResult Actual: State Classroom TestResult • In the second argument of ‘foldM’, namely ‘worst’ In the expression: foldM better worst (tests students) In an equation for ‘brightest’: brightest students = foldM bette...
't match type ‘StateT Classroom Data.Functor.Identity.Identity TestResult’ with ‘TestResult’ Expected: TestResult Actual: State Classroom TestResult • In the second argument of ‘foldM’, namely ‘worst’ In the expression: foldM better worst (tests students) In an equation for ‘brightest’: brightest students = foldM bette...
[ -0.01531982421875, -0.006011962890625, 0.000728607177734375, 0.00927734375, -0.010986328125, -0.0020294189453125, -0.029052734375, -0.023193359375, 0.00799560546875, 0.01043701171875, 0.003662109375, 0.004852294921875, -0.01708984375, 0.0147705078125, -0.006256103515625, -0.00085067749...
[ 18, 14858, 10644, 135206, 13, 618, 35014, 28905, 11809, 97249, 18770, 568, 37379, 2481, 8647, 4332, 7, 7136, 678, 111337, 60075, 89829, 100582, 22836, 17932, 10750, 42822, 594, 23432, 271, 125195, 11522, 130481, 6954, 25921, 5490, 54969, 525,...
[ 0.0897216796875, 0.229248046875, 0.2122802734375, 0.0638427734375, 0.12841796875, 0.1453857421875, 0.1275634765625, 0.161376953125, 0.102294921875, 0.08026123046875, 0.058746337890625, 0.015045166015625, 0.164306640625, 0.058349609375, 0.166259765625, 0.05291748046875, 0.113403320312...
embed
12884598_c0
12884598
haskell
0
Title: Haskell: Using a function of a type class in a module without an instance Problem title: Haskell: Using a function of a type class in a module without an instance Tags: typeclass, haskell Problem: Haskell: Using a function of a type class in a module without an instance I have a module that defines and exports a...
Haskell: Using a function of a type class in a module without an instance Haskell: Using a function of a type class in a module without an instance typeclass haskell Haskell Using AABB Boundable Vec3 Haskell: Using a function of a type class in a module without an instance I have a module that defines and exports a typ...
[ 0.003631591796875, 0.0167236328125, 0.000965118408203125, 0.01190185546875, 0.01104736328125, 0.0164794921875, 0.016845703125, -0.00982666015625, 0.006439208984375, -0.005706787109375, -0.0186767578125, -0.034423828125, 0.02099609375, 0.004486083984375, 0.006744384765625, -0.0297851562...
[ 20625, 142508, 345, 6953, 32354, 10644, 18507, 88996, 15490, 110527, 67413, 1556, 56558, 22312, 6990, 2661, 52884, 363, 111, 23, 61924, 31255, 136, 2967, 831, 18, 48903, 4527, 903, 110, 14373, 527, 73265, 18499, 138256, 11, 10545, 21, 22824...
[ 0.1282958984375, 0.24658203125, 0.1158447265625, 0.039459228515625, 0.1888427734375, 0.25927734375, 0.2381591796875, 0.1981201171875, 0.1397705078125, 0.21826171875, 0.1402587890625, 0.1053466796875, 0.124267578125, 0.244140625, 0.1546630859375, 0.135986328125, 0.1458740234375, 0.1...
embed
35465807_c1
35465807
haskell
1
Text.Parsec.Prim to do exactly this², but because it uses symbols that are not exported by Parsec I can't compile it. Is there a way to write the same thing using higher-level constructs that are exported by Parsec? My (uncompilable) implementation for followedBy is: import Text.Parsec.Prim followedBy :: ParsecT s u m...
Text.Parsec.Prim to do exactly this², but because it uses symbols that are not exported by Parsec I can't compile it. Is there a way to write the same thing using higher-level constructs that are exported by Parsec? My (uncompilable) implementation for followedBy is: import Text.Parsec.Prim followedBy :: ParsecT s u m...
[ -0.016357421875, 0.026123046875, 0.0103759765625, 0.0277099609375, 0.0108642578125, 0.0245361328125, -0.000732421875, -0.0286865234375, 0.009033203125, -0.025634765625, 0.005615234375, 0.014404296875, 0.01171875, -0.005035400390625, -0.0074462890625, 0.00665283203125, -0.002365112304...
[ 24129, 28636, 39797, 145111, 54, 66161, 903, 304, 4527, 26582, 7, 959, 31255, 2392, 831, 18, 9969, 1340, 3917, 33022, 5701, 13580, 17368, 77546, 67919, 64549, 390, 309, 277, 5974, 2886, 208124, 134629, 75358, 24927, 618, 876, 28864, 126596,...
[ 0.1893310546875, 0.1480712890625, 0.2276611328125, 0.23681640625, 0.042724609375, 0.0994873046875, 0.1336669921875, 0.0908203125, 0.09033203125, 0.2119140625, 0.051910400390625, 0.08233642578125, 0.1845703125, 0.135498046875, 0.07861328125, 0.07000732421875, 0.1429443359375, 0.1278...
embed
38986004_c0
38986004
haskell
0
Title: Haskell parser combinator - do notation Problem title: Haskell parser combinator - do notation Tags: parser-combinators, haskell, do-notation Problem: Haskell parser combinator - do notation I was reading a tutorial regarding building a parser combinator library and i came across a method which i don't quite und...
Haskell parser combinator - do notation Haskell parser combinator - do notation parser-combinators haskell do-notation Haskell Parser chainl1 Haskell parser combinator - do notation I was reading a tutorial regarding building a parser combinator library and i came across a method which i don't quite understand. the bin...
[ -0.01611328125, 0.00213623046875, 0.012451171875, 0.0181884765625, -0.00897216796875, 0.0296630859375, -0.0013427734375, -0.025390625, 0.0167236328125, -0.044189453125, 0.006866455078125, -0.00921630859375, 0.0027313232421875, -0.007354736328125, 0.01019287109375, 0.01507568359375, -...
[ 20625, 142508, 366, 2189, 22321, 1290, 54, 110, 22062, 277, 19155, 22230, 1556, 157, 2392, 121293, 141, 418, 57143, 33976, 35773, 55300, 2301, 18, 32233, 28219, 70, 68557, 83, 208124, 30813, 1369, 39933, 2046, 3642, 32354, 43240, 125663, 12...
[ 0.1331787109375, 0.219970703125, 0.1527099609375, 0.16845703125, 0.2108154296875, 0.1346435546875, 0.122802734375, 0.157470703125, 0.1143798828125, 0.0419921875, 0.1937255859375, 0.0782470703125, 0.1373291015625, 0.1552734375, 0.1502685546875, 0.19140625, 0.16650390625, 0.149291992...
embed
73091186_c0
73091186
haskell
0
Title: Parameterized type: Expected one more argument Problem title: Parameterized type: Expected one more argument Tags: haskell Problem: Parameterized type: Expected one more argument Four years ago I defined a multivariate polynomial type with Haskell: data Polynomial = Zero | M Monomial | Polynomial :+: Polynomial ...
Parameterized type: Expected one more argument Parameterized type: Expected one more argument haskell Parameterized Expected Polynomial Zero Monomial Show Double Seq LANGUAGE DatatypeContexts Num Parameterized type: Expected one more argument Four years ago I defined a multivariate polynomial type with Haskell: It is r...
[ -0.0220947265625, 0.0242919921875, -0.0036163330078125, 0.0130615234375, -0.001800537109375, 0.0184326171875, 0.005859375, -0.004486083984375, -0.003570556640625, -0.01806640625, 0.004852294921875, -0.047119140625, -0.00494384765625, -0.01129150390625, -0.0260009765625, -0.013427734375...
[ 1720, 29089, 29367, 10644, 60075, 13, 89829, 1632, 1286, 10750, 1556, 142508, 63306, 1687, 15403, 83947, 77879, 266, 289, 17367, 107172, 503, 864, 98064, 11809, 50986, 22829, 52782, 5369, 61924, 6024, 124640, 35874, 678, 20625, 173072, 47, 55...
[ 0.0850830078125, 0.1685791015625, 0.1470947265625, 0.218505859375, 0.13134765625, 0.1427001953125, 0.114990234375, 0.111328125, 0.1678466796875, 0.2283935546875, 0.115478515625, 0.231689453125, 0.1348876953125, 0.1417236328125, 0.0771484375, 0.1181640625, 0.08428955078125, 0.082763...
embed
7799345_c0
7799345
haskell
0
Title: Works in ghci but not in the file Problem title: Works in ghci but not in the file Tags: haskell Problem: Works in ghci but not in the file instance Showable String where showManyP str = str instance (Showable s,Format a) => Showable (a->s) where showManyP str a = showManyP (format str a) class Format a where fo...
Works in ghci but not in the file Works in ghci but not in the file haskell a the Data.List Works printf.hs:37:19 Ambiguous Format printf.hs:37:19-27 Num printf.hs:37:34-35 Probable Failed LANGUAGE OverlappingInstances UndecidableInstances FlexibleInstances TypeSynonymInstances Showable Char x:xs y:ys x:y Works in ghci...
[ -0.0123291015625, 0.005035400390625, 0.00732421875, 0.0128173828125, -0.0201416015625, 0.0150146484375, 0.0050048828125, -0.001983642578125, 0.039306640625, 0.0201416015625, -0.00732421875, -0.034912109375, 0.0050048828125, -0.01287841796875, -0.0032958984375, 0.003997802734375, -0.0...
[ 27985, 23, 31380, 318, 1284, 959, 11435, 1556, 142508, 11809, 154663, 28412, 127, 30225, 23988, 10250, 12282, 60972, 50994, 52782, 40176, 1250, 275, 190355, 98064, 9578, 143, 26783, 116071, 24750, 2661, 180842, 60457, 45757, 17367, 2886, 21656,...
[ 0.15478515625, 0.1239013671875, 0.1326904296875, 0.1767578125, 0.1075439453125, 0.1749267578125, 0.1741943359375, 0.131591796875, 0.2347412109375, 0.0980224609375, 0.1424560546875, 0.060028076171875, 0.0216522216796875, 0.05438232421875, 0.07928466796875, 0.0186614990234375, 0.076049...
embed
9486874_c0
9486874
haskell
0
Title: How do I access a list element I&#x27;ve added with the cons (:) operator? Problem title: How do I access a list element I&#x27;ve added with the cons (:) operator? Tags: haskell, list, winghci, functional-programming Problem: How do I access a list element I've added with the cons (:) operator? I'm new to Haske...
How do I access a list element I&#x27;ve added with the cons (:) operator? How do I access a list element I&#x27;ve added with the cons (:) operator? haskell list winghci functional-programming How How do I access a list element I've added with the cons (:) operator? I'm new to Haskell (and functional programming in ge...
[ -0.0142822265625, 0.0184326171875, 0.00677490234375, 0.006011962890625, 0.00494384765625, 0.0047607421875, -0.0126953125, 0.01708984375, 0.015869140625, -0.04296875, 0.0301513671875, -0.0225830078125, 0.01129150390625, -0.0032958984375, -0.005218505859375, -0.032470703125, 0.01953125...
[ 11249, 17203, 5303, 12830, 87, 3768, 272, 49814, 678, 158, 7, 12, 39933, 1556, 142508, 14775, 127, 318, 123309, 28966, 54, 3525, 20625, 56037, 449, 17368, 17686, 41877, 40658, 28282, 5117, 105876, 30646, 106, 34292, 21185, 114689, 12912, 97...
[ 0.0482177734375, 0.204345703125, 0.2191162109375, 0.188720703125, 0.05615234375, 0.053436279296875, 0.1119384765625, 0.158935546875, 0.066162109375, 0.2135009765625, 0.151123046875, 0.163818359375, 0.212158203125, 0.05828857421875, 0.2108154296875, 0.045440673828125, 0.00479125976562...
embed
10547019_c0
10547019
haskell
0
Title: changing the value succ and pred functions returns Problem title: changing the value succ and pred functions returns Tags: haskell Problem: changing the value succ and pred functions returns I would like to define a generic function that gets the next value in a range. I have the following function definition: n...
changing the value succ and pred functions returns changing the value succ and pred functions returns haskell Enum Num changing the value succ and pred functions returns I would like to define a generic function that gets the next value in a range. I have the following function definition: The problem with the above de...
[ -0.017333984375, -0.0027008056640625, 0.0059814453125, 0.0341796875, 0.013671875, 0.0235595703125, -0.0166015625, 0.0084228515625, 0.01153564453125, -0.0029449462890625, -0.0018768310546875, 0.0146484375, 0.0040283203125, -0.0093994140625, 0.018310546875, 0.0108642578125, -0.02062988...
[ 151134, 34292, 166, 10060, 136, 1653, 32354, 30646, 1556, 142508, 357, 316, 52782, 1884, 61924, 189534, 62163, 11737, 23, 37457, 80934, 2967, 7868, 10763, 142424, 15549, 158661, 678, 175399, 53855, 126175, 3444, 42272, 4153, 1052, 51459, 2499, ...
[ 0.191162109375, 0.1790771484375, 0.16650390625, 0.2333984375, 0.09210205078125, 0.24462890625, 0.2236328125, 0.1951904296875, 0.10400390625, 0.203369140625, 0.07647705078125, 0.162353515625, 0.1865234375, 0.0419921875, 0.0953369140625, 0.2054443359375, 0.06884765625, 0.160400390625...
embed
13035655_c1
13035655
haskell
1
Command is " ++ show n)) <$> eCommandChanged I believe bGameState needs to use eCommandChange, but I run into a problem with the types stepper :: a -> Event t a -> Behavior t a this leads me to believe I need to transform eInput :: Event t PlayerCommand into a eGameState :: Event t GameState , which I can use with step...
Command is " ++ show n)) <$> eCommandChanged I believe bGameState needs to use eCommandChange, but I run into a problem with the types stepper :: a -> Event t a -> Behavior t a this leads me to believe I need to transform eInput :: Event t PlayerCommand into a eGameState :: Event t GameState , which I can use with step...
[ -0.0201416015625, 0.0179443359375, -0.0030059814453125, -0.00144195556640625, 0.031982421875, 0.01409912109375, -0.0250244140625, -0.006103515625, -0.0020599365234375, -0.0089111328125, 0.0184326171875, 0.0093994140625, 0.0157470703125, 0.02392578125, -0.0174560546875, -0.00634765625, ...
[ 123573, 83, 37223, 7639, 653, 4369, 28, 10770, 12018, 127008, 17704, 18822, 876, 107576, 135206, 13, 27117, 4527, 429, 11675, 10, 2967, 52895, 2288, 8079, 36943, 808, 873, 98409, 748, 3871, 27198, 4153, 7077, 60560, 3934, 1984, 13547, 678, ...
[ 0.2529296875, 0.08380126953125, 0.18701171875, 0.1466064453125, 0.05267333984375, 0.037353515625, 0.140625, 0.15185546875, 0.1954345703125, 0.1939697265625, 0.1199951171875, 0.0374755859375, 0.119873046875, 0.1746826171875, 0.1947021484375, 0.044891357421875, 0.050933837890625, 0.0...
embed
42751175_c0
42751175
haskell
0
Title: Abstraction for asynchronous streamed results Problem title: Abstraction for asynchronous streamed results Tags: stream, asynchronous, haskell Problem: Abstraction for asynchronous streamed results When doing an asynchronous call, there are multiple ways of passing back the result. A nice abstraction is [ Async ...
Abstraction for asynchronous streamed results Abstraction for asynchronous streamed results stream asynchronous haskell Abstraction Async ConduitM Abstraction for asynchronous streamed results When doing an asynchronous call, there are multiple ways of passing back the result. A nice abstraction is [ Async ], which all...
[ -0.006866455078125, 0.00135040283203125, 0.00946044921875, -0.017578125, 0.00897216796875, 0.003753662109375, 0.01116943359375, -0.0179443359375, 0.0081787109375, -0.000476837158203125, -0.002716064453125, -0.011962890625, 0.01446533203125, 0.0228271484375, 0.009765625, 0.0010604858398...
[ 233973, 1830, 100, 10, 12654, 101966, 75973, 50339, 297, 1556, 142508, 1657, 112061, 594, 11782, 48716, 48322, 452, 6953, 4420, 16750, 26267, 164789, 62, 238, 114864, 97351, 140992, 34292, 32997, 53017, 18499, 175199, 964, 142424, 25842, 21373,...
[ 0.2310791015625, 0.0941162109375, 0.02984619140625, 0.0576171875, 0.231689453125, 0.18505859375, 0.2109375, 0.205810546875, 0.010101318359375, 0.0941162109375, 0.1937255859375, 0.06817626953125, 0.1649169921875, 0.15576171875, 0.1678466796875, 0.1251220703125, 0.087890625, 0.061737...
embed
8075746_c1
8075746
haskell
1
illegal), it makes sense to say something about all a in the class signature (line 2 below). Below shows the intended code. instance (PrintSuitable m, MonadTrans t, (forall a. Suitable (t m) a => Suitable m a), -- rank 2 constraint ) => PrintSuitable (t m) where printSuitable = lift ... -- MyMonadT doesn't change what...
illegal), it makes sense to say something about all a in the class signature (line 2 below). Below shows the intended code. instance (PrintSuitable m, MonadTrans t, (forall a. Suitable (t m) a => Suitable m a), -- rank 2 constraint ) => PrintSuitable (t m) where printSuitable = lift ... -- MyMonadT doesn't change what...
[ -0.027587890625, -0.00762939453125, 0.00299072265625, -0.014404296875, -0.0115966796875, -0.00994873046875, -0.01123046875, -0.0174560546875, 0.00946044921875, -0.0133056640625, -0.011962890625, -0.01202392578125, 0.004669189453125, 0.007415771484375, -0.00909423828125, -0.006286621093...
[ 85325, 247, 30482, 10422, 5154, 9844, 1672, 756, 10, 23, 18507, 138256, 17336, 45831, 179140, 18151, 110527, 112079, 18, 14168, 14, 22819, 347, 60331, 71, 62624, 808, 2472, 5584, 1832, 30648, 116, 158, 2816, 4288, 39754, 28412, 60520, 2646,...
[ 0.27294921875, 0.0028076171875, 0.015716552734375, 0.1239013671875, 0.113037109375, 0.0196685791015625, 0.086669921875, 0.18017578125, 0.174072265625, 0.011444091796875, 0.2191162109375, 0.263427734375, 0.007049560546875, 0.01531982421875, 0.1236572265625, 0.2166748046875, 0.20239257...
embed
65396364_c0
65396364
haskell
0
Title: Haskell how to add instance that can handle List of Maybe Problem title: Haskell how to add instance that can handle List of Maybe Tags: haskell Problem: Haskell how to add instance that can handle List of Maybe I haven't found any good examples of this kind of situations. I have this kind of datatypes and a cla...
Haskell how to add instance that can handle List of Maybe Haskell how to add instance that can handle List of Maybe haskell Haskell List Maybe Type1 Const1 Const2 Show Type2 Nothing Just x:sx Haskell how to add instance that can handle List of Maybe I haven't found any good examples of this kind of situations. I have t...
[ -0.0113525390625, -0.00537109375, 0.0234375, -0.01611328125, 0.0025177001953125, 0.03173828125, 0.0014190673828125, -0.00537109375, 0.01214599609375, -0.0306396484375, -0.007659912109375, -0.019287109375, 0.00089263916015625, 0.01556396484375, 0.0003223419189453125, -0.0291748046875, ...
[ 20625, 142508, 3642, 15190, 110527, 450, 831, 34831, 32036, 111, 83425, 1556, 60457, 418, 1657, 271, 304, 17367, 182747, 9563, 1022, 425, 27781, 113949, 8562, 2053, 50986, 18507, 151117, 9969, 6743, 903, 3917, 32354, 127794, 11935, 10461, 177...
[ 0.1375732421875, 0.224853515625, 0.053558349609375, 0.171142578125, 0.28125, 0.04925537109375, 0.1025390625, 0.2054443359375, 0.2027587890625, 0.156982421875, 0.265625, 0.1175537109375, 0.178466796875, 0.0606689453125, 0.046539306640625, 0.14794921875, 0.06121826171875, 0.086914062...
embed
11566378_c0
11566378
haskell
0
Title: haskell - LYAH - Making our own Types and our Type Classes Problem title: haskell - LYAH - Making our own Types and our Type Classes Tags: haskell, typeclass, types Problem: haskell - LYAH - Making our own Types and our Type Classes The haskell code below compiles, Ok. data Point = Point Float Float data Radius ...
haskell - LYAH - Making our own Types and our Type Classes haskell - LYAH - Making our own Types and our Type Classes haskell typeclass types LYAH Making Types Type Classes Point Float Radius Shape Circle LengthQty Length Width haskell - LYAH - Making our own Types and our Type Classes The haskell code below compiles, ...
[ 0.00689697265625, 0.01953125, -0.01409912109375, 0.0162353515625, -0.00457763671875, 0.0147705078125, -0.0096435546875, 0.00457763671875, 0.00848388671875, -0.002960205078125, -0.03369140625, -0.025390625, 0.007476806640625, -0.01275634765625, -0.018310546875, 0.01220703125, 0.026611...
[ 1556, 142508, 339, 192583, 13676, 10002, 60457, 2446, 35014, 10644, 67413, 52895, 41097, 38699, 26368, 7224, 163731, 77554, 2737, 939, 927, 58302, 18151, 35064, 9969, 1340, 9972, 2071, 7722, 33022, 9844, 13315, 678, 114211, 35782, 49725, 77298,...
[ 0.1527099609375, 0.252197265625, 0.029571533203125, 0.202880859375, 0.0250396728515625, 0.06036376953125, 0.1820068359375, 0.0235748291015625, 0.1533203125, 0.0877685546875, 0.1357421875, 0.086181640625, 0.1015625, 0.1202392578125, 0.139892578125, 0.06640625, 0.0836181640625, 0.145...
embed
12515655_c0
12515655
haskell
0
Title: What are the pros and cons of adding additional functions/combinators to a typeclass definition? Problem title: What are the pros and cons of adding additional functions/combinators to a typeclass definition? Tags: haskell, typeclass Problem: What are the pros and cons of adding additional functions/combinators ...
What are the pros and cons of adding additional functions/combinators to a typeclass definition? What are the pros and cons of adding additional functions/combinators to a typeclass definition? haskell typeclass What Monad INLINE What are the pros and cons of adding additional functions/combinators to a typeclass defin...
[ -0.00360107421875, 0.01080322265625, 0.0291748046875, 0.0084228515625, 0.005706787109375, -0.015869140625, -0.01373291015625, -0.005340576171875, -0.00897216796875, -0.01470947265625, -0.009033203125, -0.0235595703125, -0.01409912109375, 0.006744384765625, 0.006317138671875, -0.0073242...
[ 38280, 136, 158, 7, 154107, 78301, 32354, 277, 19155, 22230, 47, 10644, 67413, 80934, 1556, 142508, 4865, 60331, 71, 5881, 57339, 64, 31344, 6396, 10, 114977, 208124, 90698, 4127, 707, 6494, 41361, 15400, 26698, 1290, 23, 101904, 84797, 507...
[ 0.1708984375, 0.13818359375, 0.188232421875, 0.032135009765625, 0.173095703125, 0.1688232421875, 0.187744140625, 0.07379150390625, 0.194580078125, 0.135986328125, 0.056488037109375, 0.2159423828125, 0.2342529296875, 0.1558837890625, 0.1083984375, 0.240966796875, 0.0047607421875, 0....
embed
52350969_c1
52350969
haskell
1
work with some scala libraries in clojure and face certain obstacles: Scala, like clojure also has immutable data structures, but they are defined very differently from clojure data structures Scala functions inherit from scala.Function and so need to be wrapped to clojure.lang.IFn Scala datastructures do not inherit ...
work with some scala libraries in clojure and face certain obstacles: Scala, like clojure also has immutable data structures, but they are defined very differently from clojure data structures Scala functions inherit from scala.Function and so need to be wrapped to clojure.lang.IFn Scala datastructures do not inherit ...
[ 0.012939453125, 0.01202392578125, 0.006103515625, -0.01165771484375, -0.010986328125, -0.006378173828125, 0.0133056640625, -0.0026397705078125, -0.00051116943359375, -0.02294921875, -0.01806640625, -0.0093994140625, -0.0087890625, 0.00762939453125, 0.01104736328125, -0.0166015625, -0...
[ 4488, 678, 146232, 35773, 10484, 20450, 461, 107, 2577, 24233, 174408, 152653, 11, 1884, 1556, 566, 561, 22819, 2053, 45646, 61924, 4552, 12921, 32354, 23, 3334, 217, 1295, 97249, 10763, 3871, 137565, 20051, 47, 3066, 29836, 137656, 959, 79...
[ 0.1004638671875, 0.1031494140625, 0.25830078125, 0.18798828125, 0.1064453125, 0.1507568359375, 0.1881103515625, 0.13720703125, 0.0926513671875, 0.007659912109375, 0.1878662109375, 0.250244140625, 0.1722412109375, 0.034454345703125, 0.011688232421875, 0.0173187255859375, 0.10516357421...
embed
74291605_c0
74291605
haskell
0
Title: (Template?) Haskell get name of function at run or compile time Problem title: (Template?) Haskell get name of function at run or compile time Tags: haskell, template-haskell Problem: (Template?) Haskell get name of function at run or compile time I have a list of imported functions as a top level binding. I wan...
(Template?) Haskell get name of function at run or compile time (Template?) Haskell get name of function at run or compile time haskell template-haskell qualified Template Haskell Module function1 function2 Module.function1 Module.function2 ListE TupE Just VarE Module.Function (Template?) Haskell get name of function a...
[ 0.00008440017700195312, -0.00775146484375, 0.0023651123046875, 0.0096435546875, -0.0130615234375, 0.01434326171875, -0.0004482269287109375, 0.0038299560546875, -0.0003032684326171875, -0.03662109375, -0.0172119140625, -0.025146484375, -0.0084228515625, 0.0216064453125, 0.00830078125, 0...
[ 159065, 19309, 20625, 142508, 2046, 9351, 111, 32354, 99, 11675, 707, 9969, 1340, 1733, 1556, 110934, 10557, 217225, 196631, 63014, 304, 137175, 32036, 647, 1371, 9563, 3323, 97249, 5303, 76242, 2663, 17366, 128239, 3444, 47, 12638, 15490, 79...
[ 0.183349609375, 0.1895751953125, 0.1187744140625, 0.231201171875, 0.13525390625, 0.1875, 0.1470947265625, 0.2430419921875, 0.1195068359375, 0.189697265625, 0.072021484375, 0.146240234375, 0.176513671875, 0.1622314453125, 0.103515625, 0.2626953125, 0.0552978515625, 0.153076171875, ...
embed
46010524_c0
46010524
haskell
0
Title: parse error on input `let&#x27; with multiple let blocks Problem title: parse error on input `let&#x27; with multiple let blocks Tags: haskell, syntax Problem: parse error on input `let' with multiple let blocks I am trying to define a function with a number of let statements, but I keep getting an error parse e...
parse error on input `let&#x27; with multiple let blocks parse error on input `let&#x27; with multiple let blocks haskell syntax prev_string prev_int new_string new_int new_int_1 myPred1 new_int_2 myPred2 myPred3 parse error on input `let' with multiple let blocks I am trying to define a function with a number of let s...
[ -0.004150390625, 0.006591796875, -0.0211181640625, 0.031494140625, 0.006500244140625, 0.0203857421875, 0.00006103515625, -0.0250244140625, 0.0155029296875, -0.0194091796875, -0.01043701171875, -0.01019287109375, 0.02685546875, 0.00152587890625, 0.004730224609375, 0.02294921875, -0.01...
[ 366, 184, 18499, 98, 107730, 1974, 3768, 678, 48716, 2633, 46389, 1556, 142508, 6002, 86531, 28468, 91693, 4288, 3525, 115187, 759, 19273, 71, 304, 363, 61924, 32354, 14012, 111, 63805, 13695, 20625, 216806, 2967, 134598, 54, 5201, 31089, 5...
[ 0.1556396484375, 0.133544921875, 0.2064208984375, 0.0272369384765625, 0.176025390625, 0.259033203125, 0.089111328125, 0.05419921875, 0.1719970703125, 0.224853515625, 0.210205078125, 0.118896484375, 0.2139892578125, 0.05303955078125, 0.042724609375, 0.1602783203125, 0.14404296875, 0...
embed
36045423_c1
36045423
haskell
1
on here? [EDIT] A minimum verifiable example is pretty hard to provide in this case (the work is done in processMessage , but comprises a lot of moving parts, any of which might be the problem). Instead, I'm looking for high-level pointers to things I could investigate. Here is data from an example run (send the serve...
on here? [EDIT] A minimum verifiable example is pretty hard to provide in this case (the work is done in processMessage , but comprises a lot of moving parts, any of which might be the problem). Instead, I'm looking for high-level pointers to things I could investigate. Here is data from an example run (send the serve...
[ -0.000507354736328125, 0.00958251953125, -0.01019287109375, -0.0191650390625, -0.00189971923828125, -0.006103515625, -0.000362396240234375, -0.0084228515625, 0.0133056640625, -0.01397705078125, 0.02978515625, -0.012939453125, 0.01220703125, 0.007720947265625, -0.019775390625, 0.0148315...
[ 98, 3688, 32, 15440, 173, 58726, 27781, 28875, 7941, 4488, 9433, 594, 6011, 429, 48402, 5915, 98567, 63920, 13648, 2967, 194, 16487, 67919, 6275, 1314, 8966, 5809, 32603, 2053, 1295, 11675, 39285, 10723, 135587, 50336, 147306, 164917, 40715, ...
[ 0.1558837890625, 0.1673583984375, 0.008941650390625, 0.114501953125, 0.0966796875, 0.08453369140625, 0.1920166015625, 0.010498046875, 0.0509033203125, 0.0599365234375, 0.2010498046875, 0.104248046875, 0.163818359375, 0.121826171875, 0.00384521484375, 0.013336181640625, 0.048187255859...
embed
28824414_c0
28824414
haskell
0
Title: How to understand the function definitions of curry/uncurry Problem title: How to understand the function definitions of curry/uncurry Tags: haskell Problem: How to understand the function definitions of curry/uncurry A definition about curry/uncurry(schönfinkel/unschönfinkel) from http://www.seas.upenn.edu/~cis...
How to understand the function definitions of curry/uncurry How to understand the function definitions of curry/uncurry haskell How How to understand the function definitions of curry/uncurry A definition about curry/uncurry(schönfinkel/unschönfinkel) from http://www.seas.upenn.edu/~cis194/lectures/02-lists.html , but ...
[ 0.0167236328125, -0.01165771484375, 0.03515625, 0.004547119140625, 0.003997802734375, 0.0029754638671875, 0.00069427490234375, -0.030029296875, 0.0118408203125, 0.00531005859375, 0.01043701171875, -0.042236328125, -0.01953125, 0.00946044921875, 0.008544921875, -0.0137939453125, 0.001...
[ 11249, 47, 28219, 32354, 80934, 7, 111, 198555, 64, 90081, 56216, 1556, 142508, 1672, 175203, 5983, 2590, 309, 184, 162, 15246, 2947, 6562, 5351, 36917, 5608, 8781, 187136 ]
[ 0.0423583984375, 0.0322265625, 0.161865234375, 0.1932373046875, 0.19091796875, 0.05889892578125, 0.033203125, 0.2442626953125, 0.04852294921875, 0.105712890625, 0.213623046875, 0.1097412109375, 0.2294921875, 0.035064697265625, 0.1309814453125, 0.111572265625, 0.174072265625, 0.0587...
embed
46324842_c1
46324842
haskell
1
<++ (munch PP.nonDigit >> munch PP.floatDot) Using the <++ left biased choice. It however doesn't change my output: [("","1"),("","2"),("","3"),("","4"),("2.500E-01","5")] Edit: The log file is something like this (Focusing on the LOAD INCREMENT line): STEP 4 INITIATED: LOAD INCREMENT: START STEPS * 1.000E-01 SPARSE: ...
<++ (munch PP.nonDigit >> munch PP.floatDot) Using the <++ left biased choice. It however doesn't change my output: [("","1"),("","2"),("","3"),("","4"),("2.500E-01","5")] Edit: The log file is something like this (Focusing on the LOAD INCREMENT line): STEP 4 INITIATED: LOAD INCREMENT: START STEPS * 1.000E-01 SPARSE: ...
[ -0.0111083984375, 0.005889892578125, -0.0177001953125, -0.00506591796875, -0.00347900390625, 0.0189208984375, 0.00726318359375, -0.0135498046875, 0.0089111328125, -0.0096435546875, 0.010009765625, 0.031005859375, -0.0014190673828125, -0.0206298828125, 0.0181884765625, 0.005035400390625...
[ 4426, 37223, 12303, 206, 12211, 6431, 14055, 15769, 4829, 52347, 257, 8331, 18, 345, 6953, 70, 25737, 96402, 5281, 44126, 49903, 22027, 15549, 759, 140992, 418, 304, 363, 617, 5442, 4283, 647, 55667, 758, 12684, 11435, 1884, 27591, 11680, ...
[ 0.243408203125, 0.2998046875, 0.1622314453125, 0.162353515625, 0.2158203125, 0.1357421875, 0.0843505859375, 0.148193359375, 0.1416015625, 0.1494140625, 0.050689697265625, 0.1328125, 0.042724609375, 0.06817626953125, 0.01556396484375, 0.007110595703125, 0.1798095703125, 0.2108154296...
embed
79475101_c0
79475101
haskell
0
Title: Removing ambiguous packages in Haskell Problem title: Removing ambiguous packages in Haskell Tags: cabal, haskell Problem: Removing ambiguous packages in Haskell I originally had Data.Matrix installed via cabal install --lib matrix . For some testing, I needed to reinstall the library with profiling, which I did...
Removing ambiguous packages in Haskell Removing ambiguous packages in Haskell cabal haskell Data.Matrix Removing Haskell MainEquations.hs:16:1 Ambiguous matrix-0.3.6.3 ghc-9.4.8 package.conf.d aarch64-darwin-9.4.8 Removing ambiguous packages in Haskell I originally had Data.Matrix installed via cabal install --lib matr...
[ 0.007476806640625, 0.004974365234375, 0.00738525390625, 0.01446533203125, 0.007598876953125, -0.00872802734375, -0.006103515625, 0.029052734375, 0.0054931640625, -0.00341796875, 0.0005035400390625, -0.0289306640625, 0.000789642333984375, -0.000522613525390625, -0.01092529296875, 0.0186...
[ 853, 432, 920, 12282, 10821, 98169, 20625, 142508, 23, 109524, 1556, 11809, 4613, 87427, 12321, 13722, 127, 22354, 19721, 10250, 50944, 425, 170179, 200768, 31380, 238, 15205, 29485, 70547, 59438, 13307, 9494, 6496, 5, 20600, 1829, 5612, 1342...
[ 0.013885498046875, 0.130859375, 0.163818359375, 0.21875, 0.096435546875, 0.22314453125, 0.1607666015625, 0.240966796875, 0.019622802734375, 0.1927490234375, 0.1280517578125, 0.1014404296875, 0.0750732421875, 0.126220703125, 0.0836181640625, 0.12353515625, 0.0303802490234375, 0.0682...
embed
55794071_c0
55794071
haskell
0
Title: Setting a custom prompt in GHCI leads to lots of error messages on standard types Problem title: Setting a custom prompt in GHCI leads to lots of error messages on standard types Tags: ghci, haskell, ghc Problem: Setting a custom prompt in GHCI leads to lots of error messages on standard types I'm currently lear...
Setting a custom prompt in GHCI leads to lots of error messages on standard types Setting a custom prompt in GHCI leads to lots of error messages on standard types ghci haskell ghc Setting GHCI Hello Not Error Setting a custom prompt in GHCI leads to lots of error messages on standard types I'm currently learning some ...
[ 0.0118408203125, -0.0017852783203125, -0.01287841796875, 0.0177001953125, -0.01544189453125, 0.012939453125, 0.0023193359375, 0.017333984375, 0.00171661376953125, -0.006317138671875, 0.00958251953125, -0.04736328125, -0.004364013671875, -0.00506591796875, 0.00714111328125, 0.0102539062...
[ 503, 114122, 105876, 41877, 17304, 37105, 71358, 18499, 89914, 5570, 52895, 31380, 318, 1556, 142508, 238, 35378, 11205, 212059, 52080, 20625, 1096, 18548, 89110, 29644, 582, 39, 53550, 13416, 10644, 21635, 9486, 11435, 58055, 58134, 127308, 61...
[ 0.1051025390625, 0.1893310546875, 0.252197265625, 0.1395263671875, 0.179443359375, 0.0616455078125, 0.09228515625, 0.1522216796875, 0.0999755859375, 0.123046875, 0.1468505859375, 0.083740234375, 0.17041015625, 0.04534912109375, 0.1732177734375, 0.015289306640625, 0.13037109375, 0.0...
embed
56332075_c0
56332075
haskell
0
Title: Haskell: Modifying value at specific index of array Problem title: Haskell: Modifying value at specific index of array Tags: haskell, functional-programming Problem: Haskell: Modifying value at specific index of array New to Haskell. I have created an char array and I am trying to figure out the best way to modi...
Haskell: Modifying value at specific index of array Haskell: Modifying value at specific index of array haskell functional-programming System.Random Control.Monad Data.Array Data.List Haskell Modifying Array Char MODIFY INDEX:i i-1 Haskell: Modifying value at specific index of array New to Haskell. I have created an ch...
[ -0.0186767578125, 0.0093994140625, -0.0024566650390625, -0.00001633167266845703, 0.0181884765625, -0.0098876953125, 0.003021240234375, 0.004119873046875, 0.00811767578125, 0.029296875, 0.0018768310546875, -0.0247802734375, -0.01104736328125, -0.01409912109375, 0.00238037109375, -0.0058...
[ 20625, 142508, 16269, 151138, 34292, 99, 29458, 63262, 111, 10298, 53, 12, 1556, 123309, 28966, 12353, 126525, 3815, 27131, 46674, 712, 11809, 7092, 154663, 69253, 21656, 98610, 29836, 1723, 51383, 26939, 14, 17, 5759, 2356, 47, 75935, 21441,...
[ 0.153076171875, 0.262939453125, 0.20751953125, 0.14990234375, 0.214111328125, 0.114990234375, 0.210205078125, 0.2406005859375, 0.0692138671875, 0.1756591796875, 0.059051513671875, 0.0235443115234375, 0.1302490234375, 0.10076904296875, 0.0576171875, 0.046234130859375, 0.04586791992187...
embed
34505104_c0
34505104
haskell
0
Title: Haskell: Create a show instance for 2 dimensional ZipLists Problem title: Haskell: Create a show instance for 2 dimensional ZipLists Tags: typeclass, haskell Problem: Haskell: Create a show instance for 2 dimensional ZipLists I wanted to create a show instance for 2 dimensional ziplists with a type of ZipList (Z...
Haskell: Create a show instance for 2 dimensional ZipLists Haskell: Create a show instance for 2 dimensional ZipLists typeclass haskell Control.Applicative Haskell Create ZipLists ZipList Show FlexibleInstances OverlappingInstances IncoherentInstances LANGUAGE Haskell: Create a show instance for 2 dimensional ZipLists ...
[ 0.004913330078125, -0.00121307373046875, 0.007110595703125, 0.0242919921875, -0.0184326171875, 0.03564453125, -0.005950927734375, -0.00136566162109375, 0.01043701171875, 0.032470703125, -0.0174560546875, -0.0191650390625, 0.007659912109375, 0.012451171875, -0.03125, 0.021728515625, -...
[ 20625, 142508, 151313, 7639, 110527, 100, 116, 157955, 162150, 154663, 12, 10, 10644, 67413, 1556, 27131, 11048, 17367, 180842, 2661, 116071, 9578, 143, 26783, 360, 587, 3334, 3358, 98064, 36663, 28282, 68330, 6562, 1511, 3442, 35064, 81887, ...
[ 0.1163330078125, 0.237548828125, 0.121337890625, 0.2218017578125, 0.251708984375, 0.03546142578125, 0.123291015625, 0.1484375, 0.1922607421875, 0.23291015625, 0.004852294921875, 0.1090087890625, 0.10174560546875, 0.1263427734375, 0.107177734375, 0.1397705078125, 0.0195465087890625, ...
embed
21218745_c1
21218745
haskell
1
't match expected type `IO b0' with actual type `Task' In a stmt of a 'do' block: (Tas {id_Task = pk_task, name = showName x, descr = showDescr x, day = in_day, month = in_month, year = in_year, hour = getHour x, minute = getMinute x, fulfill = 0, repeatT = getRepeatT x}) In the expression: do { (in_year, in_month, in_...
't match expected type `IO b0' with actual type `Task' In a stmt of a 'do' block: (Tas {id_Task = pk_task, name = showName x, descr = showDescr x, day = in_day, month = in_month, year = in_year, hour = getHour x, minute = getMinute x, fulfill = 0, repeatT = getRepeatT x}) In the expression: do { (in_year, in_month, in_...
[ -0.017333984375, 0.00127410888671875, -0.001220703125, 0.00958251953125, -0.0030059814453125, 0.005218505859375, -0.037109375, -0.0086669921875, 0.01226806640625, 0.01483154296875, 0.00457763671875, -0.0194091796875, 0.01116943359375, -0.000881195068359375, 0.0026397705078125, 0.003097...
[ 18, 14858, 84751, 10644, 17780, 876, 2389, 678, 8561, 9874, 1042, 360, 6138, 39, 246, 46389, 7, 532, 38988, 1073, 92, 9351, 7639, 163612, 1022, 224, 23150, 73347, 5155, 23, 5636, 31150, 15477, 6602, 46799, 56816, 2046, 11193, 15393, 16992...
[ 0.1412353515625, 0.20556640625, 0.2110595703125, 0.183349609375, 0.1917724609375, 0.04815673828125, 0.1363525390625, 0.086669921875, 0.1431884765625, 0.2030029296875, 0.1875, 0.038848876953125, 0.1280517578125, 0.0850830078125, 0.1998291015625, 0.239990234375, 0.1136474609375, 0.10...
embed
33004897_c0
33004897
haskell
0
Title: Class for newtype Problem title: Class for newtype Tags: typeclass, haskell, ghc Problem: Class for newtype I have a newtype newtype ScopedTable sym = ScopedTable { tab_stack :: [ Map String sym ] } because I want to have a symbol-table-like structure for different symbol types. On my first try, I wrote a class ...
Class for newtype Class for newtype typeclass haskell ghc st_table the a ScopedTable tab_stack Map STScopedTable Lens OpPState _opp_table Operator opp_table Language Angler MixfixParser.hs:74:20 Couldn Functor MixfixParser.hs:74:9 Expected Actual Relevant MultiParamTypeClasses MonadState Monad.hs:79:12 Could sym0 Monad...
[ -0.01220703125, -0.0047607421875, -0.0003757476806640625, -0.0062255859375, 0.000576019287109375, -0.000293731689453125, 0.01336669921875, 0.00127410888671875, -0.003997802734375, -0.00177764892578125, 0.001678466796875, -0.00164031982421875, -0.01141357421875, -0.0014801025390625, -0.00...
[ 35014, 100, 3525, 50986, 10644, 67413, 1556, 142508, 31380, 238, 6138, 22819, 70, 182783, 297, 618, 2886, 20928, 42719, 587, 20051, 18226, 2331, 19888, 22404, 150922, 2343, 83658, 2393, 603, 37286, 55923, 28636, 2189, 127, 16360, 16619, 19114...
[ 0.2108154296875, 0.06829833984375, 0.1453857421875, 0.276611328125, 0.2064208984375, 0.170654296875, 0.10333251953125, 0.205078125, 0.07110595703125, 0.04937744140625, 0.027618408203125, 0.171630859375, 0.009857177734375, 0.186279296875, 0.08526611328125, 0.1292724609375, 0.174926757...
embed
10513007_c0
10513007
haskell
0
Title: Freeing memory allocated with newCString Problem title: Freeing memory allocated with newCString Tags: memory-management, haskell, ffi, memory Problem: Freeing memory allocated with newCString As library docs say CString created with newCString must be freed with free function. I have been expecting that when CS...
Freeing memory allocated with newCString Freeing memory allocated with newCString memory-management haskell ffi memory Foreign Foreign.C.String System.IO Freeing CString Main Press Freeing memory allocated with newCString As library docs say CString created with newCString must be freed with free function. I have been ...
[ 0.01904296875, 0.0274658203125, -0.002838134765625, 0.03271484375, 0.0027008056640625, -0.00604248046875, -0.001983642578125, 0.02783203125, -0.01165771484375, -0.005859375, 0.006134033203125, -0.0167236328125, 0.00982666015625, 0.021728515625, -0.0101318359375, 0.0034942626953125, 0...
[ 5153, 98323, 144, 116292, 678, 3525, 19283, 18, 2852, 87140, 1556, 142508, 24500, 184293, 441, 71713, 214, 12353, 17780, 25841, 12321, 21072, 35773, 75935, 8110, 4092, 71, 32354, 41206, 5646, 3060, 121447, 127689, 2806, 738, 7565, 1284, 15935...
[ 0.181396484375, 0.1976318359375, 0.073486328125, 0.1651611328125, 0.0831298828125, 0.1558837890625, 0.08660888671875, 0.06280517578125, 0.2454833984375, 0.1307373046875, 0.09930419921875, 0.196533203125, 0.1273193359375, 0.1177978515625, 0.01165771484375, 0.1678466796875, 0.056549072...
embed
12203655_c1
12203655
haskell
1
000) main :: IO () main = do let n = 8 forks <- replicateM n $ newTVarIO False buffer <- newTChanIO forM_ [0 .. n - 1] $ \i -> do let left = forks !! i right = forks !! ((i + 1) `mod` n) name = philosopherNames !! i forkIO $ forever $ philosopher name buffer left right forever $ do str <- atomically $ firstLogEntry buf...
000) main :: IO () main = do let n = 8 forks <- replicateM n $ newTVarIO False buffer <- newTChanIO forM_ [0 .. n - 1] $ \i -> do let left = forks !! i right = forks !! ((i + 1) `mod` n) name = philosopherNames !! i forkIO $ forever $ philosopher name buffer left right forever $ do str <- atomically $ firstLogEntry buf...
[ -0.0089111328125, 0.005645751953125, 0.002655029296875, -0.0115966796875, -0.01483154296875, 0.010009765625, -0.002685546875, -0.0123291015625, -0.00017642974853515625, -0.0537109375, 0.0123291015625, 0.00927734375, -0.0111083984375, -0.005462646484375, 0.0196533203125, 0.0113525390625...
[ 2445, 5201, 1984, 17780, 2203, 54, 2633, 653, 382, 100, 1224, 143126, 67, 594, 3650, 3525, 5343, 147, 22225, 373, 18234, 1121, 2389, 20, 106, 14, 25737, 6506, 17, 7108, 997, 4879, 13415, 9351, 119598, 56, 163612, 92, 136993, 7704, 34627...
[ 0.2032470703125, 0.18798828125, 0.0736083984375, 0.2235107421875, 0.01995849609375, 0.045684814453125, 0.1103515625, 0.06298828125, 0.1669921875, 0.1585693359375, 0.14111328125, 0.1793212890625, 0.0556640625, 0.054718017578125, 0.044708251953125, 0.03173828125, 0.07568359375, 0.112...
embed
37115390_c0
37115390
haskell
0
Title: Relational Mapper for C# that keeps the relational model Problem title: Relational Mapper for C# that keeps the relational model Tags: haskell, dsl, orm, c%23, ado.net Problem: Relational Mapper for C# that keeps the relational model Currently my Application uses ADO.Net and manual mapping of the results. The re...
Relational Mapper for C# that keeps the relational model Relational Mapper for C# that keeps the relational model haskell dsl orm c%23 ado.net Relational Mapper ado.net Relational Mapper for C# that keeps the relational model Currently my Application uses ADO.Net and manual mapping of the results. The reasons for that ...
[ -0.0089111328125, 0.0283203125, 0.01519775390625, 0.00018024444580078125, -0.012451171875, 0.004150390625, -0.009033203125, 0.01055908203125, -0.009765625, -0.0439453125, -0.00823974609375, -0.01129150390625, -0.01519775390625, 0.0081787109375, 0.0003032684326171875, -0.003219604492187...
[ 116822, 289, 911, 8079, 100, 313, 4904, 450, 13695, 7, 41911, 3299, 1556, 142508, 104, 24861, 707, 39, 3742, 1138, 1179, 104921, 4527, 41388, 24447, 23009, 291, 26783, 50339, 89397, 5941, 180, 25656, 48903, 19714, 5609, 171760, 21, 3285, ...
[ 0.211669921875, 0.1192626953125, 0.2030029296875, 0.1934814453125, 0.03973388671875, 0.04718017578125, 0.2254638671875, 0.0360107421875, 0.1636962890625, 0.011566162109375, 0.1968994140625, 0.216552734375, 0.111572265625, 0.2091064453125, 0.0233001708984375, 0.1588134765625, 0.081176...
embed
41313014_c0
41313014
haskell
0
Title: Path variables in cabal configuration file Problem title: Path variables in cabal configuration file Tags: configuration-files, cabal, haskell, windows Problem: Path variables in cabal configuration file On Windows, I want to change the default per-user installation directories of cabal . The relevant part of th...
Path variables in cabal configuration file Path variables in cabal configuration file configuration-files cabal haskell windows Path build.log Path variables in cabal configuration file On Windows, I want to change the default per-user installation directories of cabal . The relevant part of the config file is: What ar...
[ 0.010009765625, -0.004791259765625, 0.006500244140625, 0.006317138671875, -0.01312255859375, 0.007781982421875, -0.006988525390625, 0.01202392578125, 0.0084228515625, 0.0181884765625, -0.01953125, -0.010986328125, -0.0034027099609375, 0.000408172607421875, 0.005340576171875, 0.00772094...
[ 108421, 77336, 23, 109524, 180346, 11435, 29822, 1556, 142508, 54825, 45367, 4867, 3773, 3444, 15549, 114977, 117, 65918, 59720, 14364, 3387, 111, 29191, 2831, 153837, 4865, 621, 3650, 14508, 136, 38988, 52493, 10660, 959, 61924, 765, 10, 342...
[ 0.2396240234375, 0.25634765625, 0.0528564453125, 0.28125, 0.2225341796875, 0.135986328125, 0.1083984375, 0.1068115234375, 0.1981201171875, 0.09320068359375, 0.1236572265625, 0.1536865234375, 0.125, 0.0489501953125, 0.1453857421875, 0.2099609375, 0.06158447265625, 0.09326171875, 0...
embed
49829666_c0
49829666
haskell
0
Title: Why has Haskell decided against using `+` for string (list) concatenation? Problem title: Why has Haskell decided against using `+` for string (list) concatenation? Tags: haskell Problem: Why has Haskell decided against using `+` for string (list) concatenation? Since I had trouble googling this question I thoug...
Why has Haskell decided against using `+` for string (list) concatenation? Why has Haskell decided against using `+` for string (list) concatenation? haskell Why Haskell Why has Haskell decided against using `+` for string (list) concatenation? Since I had trouble googling this question I thought I'd post it here. I'm ...
[ -0.00677490234375, -0.0062255859375, 0.006805419921875, 0.0244140625, -0.004302978515625, 0.010498046875, 0.0030975341796875, -0.00982666015625, -0.00020694732666015625, -0.0169677734375, -0.00045013427734375, -0.044677734375, 0.005401611328125, -0.014404296875, -0.02099609375, -0.0096...
[ 44084, 1556, 20625, 142508, 68872, 26548, 17368, 1328, 79315, 6562, 158, 4460, 33, 100, 2320, 60892, 62775, 50155, 179505, 205537, 4527, 37223, 64457, 10644, 67413, 33478, 6626, 5303, 678, 997, 28987, 92610, 89397, 136, 32354, 61924, 79, 330,...
[ 0.09197998046875, 0.107421875, 0.1256103515625, 0.2462158203125, 0.06243896484375, 0.1158447265625, 0.0777587890625, 0.2294921875, 0.2119140625, 0.1844482421875, 0.0687255859375, 0.1378173828125, 0.10400390625, 0.021148681640625, 0.001556396484375, 0.0275115966796875, 0.09814453125, ...
embed
9077799_c1
9077799
haskell
1
All threads are created by calling forkIO . Not the more expensive forkOS . Profiling Results Profiling does not give me a clear reason for the drop in performance. According to the profiling report, both versions spend more than 99% of their time in System.IO.hFlush and Data.ByteString.hGetSome . The number of times ...
All threads are created by calling forkIO . Not the more expensive forkOS . Profiling Results Profiling does not give me a clear reason for the drop in performance. According to the profiling report, both versions spend more than 99% of their time in System.IO.hFlush and Data.ByteString.hGetSome . The number of times ...
[ -0.0022735595703125, 0.0035858154296875, -0.00653076171875, -0.005523681640625, -0.01080322265625, 0.0031280517578125, -0.0034027099609375, 0.005279541015625, 0.0011444091796875, -0.01544189453125, 0.00335693359375, -0.0133056640625, 0.000518798828125, -0.0118408203125, 0.01470947265625,...
[ 3164, 86997, 7, 621, 75935, 390, 159029, 100, 92, 17780, 11205, 135587, 7285, 58848, 214, 146104, 959, 34735, 31635, 36069, 23, 23718, 9468, 13416, 15044, 11389, 47445, 1286, 83147, 1733, 12353, 127, 919, 5782, 136, 11809, 75358, 71713, 724...
[ 0.082763671875, 0.24951171875, 0.06195068359375, 0.012786865234375, 0.148681640625, 0.005218505859375, 0.1181640625, 0.124755859375, 0.102294921875, 0.2069091796875, 0.0247650146484375, 0.083740234375, 0.1827392578125, 0.2327880859375, 0.12060546875, 0.1246337890625, 0.01473999023437...
embed
6736482_c0
6736482
haskell
0
Title: Literate Haskell: References And Indexing Problem title: Literate Haskell: References And Indexing Tags: literate-programming, haskell Problem: Literate Haskell: References And Indexing Does Literate Haskell support indexing function names, typeclasses and variable references? Is there a filter I can run on Lite...
Literate Haskell: References And Indexing Literate Haskell: References And Indexing literate-programming haskell Literate Haskell References Indexing func2 Literate Haskell: References And Indexing Does Literate Haskell support indexing function names, typeclasses and variable references? Is there a filter I can run on...
[ 0.01251220703125, 0.01129150390625, 0.0013275146484375, -0.0035247802734375, -0.0218505859375, -0.0013885498046875, -0.0120849609375, -0.003753662109375, 0.003662109375, -0.021728515625, -0.00872802734375, -0.02294921875, -0.019287109375, 0.00506591796875, 0.00933837890625, -0.00234985...
[ 135940, 67, 20625, 142508, 215996, 7, 3493, 31471, 214, 80109, 13, 28966, 1556, 7477, 238, 304, 8060, 63262, 32354, 123055, 10644, 67413, 136, 77336, 91067, 46312, 11675, 31344, 26267, 6859, 23009, 59058, 10187, 19097, 12937, 66139, 110, 1405...
[ 0.2015380859375, 0.150146484375, 0.136962890625, 0.26171875, 0.225830078125, 0.0141143798828125, 0.083740234375, 0.2022705078125, 0.0927734375, 0.145751953125, 0.072998046875, 0.08056640625, 0.1239013671875, 0.1014404296875, 0.0229644775390625, 0.1507568359375, 0.161865234375, 0.18...
embed
10230950_c1
10230950
haskell
1
able to call a function like f(2 + 3, a, b[0]) and this is why I used TFunction [Exp]. Function declaration and definition is a statement and is defined: data Function_def = Func Type_specifier Declarator Compound_stm deriving (Eq,Ord,Show) where Declarator is: data Declarator = FuncDec Ident Parameter_declarations Pa...
able to call a function like f(2 + 3, a, b[0]) and this is why I used TFunction [Exp]. Function declaration and definition is a statement and is defined: data Function_def = Func Type_specifier Declarator Compound_stm deriving (Eq,Ord,Show) where Declarator is: data Declarator = FuncDec Ident Parameter_declarations Pa...
[ 0.00653076171875, -0.0174560546875, -0.005462646484375, -0.00084686279296875, -0.0003204345703125, -0.0264892578125, 0.01361083984375, -0.004913330078125, 0.010009765625, -0.0234375, -0.01434326171875, -0.0023345947265625, -0.01165771484375, 0.0089111328125, 0.0252685546875, -0.0112304...
[ 19048, 11782, 32354, 1238, 54753, 997, 138, 10, 876, 2389, 11814, 384, 97249, 10763, 19279, 254, 28670, 21635, 1363, 136, 80934, 83, 63805, 61924, 2053, 112, 420, 60457, 16711, 85789, 98501, 1290, 31, 7030, 271, 39, 864, 143045, 168660, 1...
[ 0.107421875, 0.15380859375, 0.2073974609375, 0.1002197265625, 0.06427001953125, 0.1727294921875, 0.1221923828125, 0.001220703125, 0.036712646484375, 0.0745849609375, 0.09515380859375, 0.1070556640625, 0.20068359375, 0.1644287109375, 0.0947265625, 0.1439208984375, 0.2091064453125, 0...
embed
28852762_c0
28852762
haskell
0
Title: How to define an enumerating type includng an already existing type in Haskell Problem title: How to define an enumerating type includng an already existing type in Haskell Tags: haskell Problem: How to define an enumerating type includng an already existing type in Haskell I'm implementing the game of Go in Has...
How to define an enumerating type includng an already existing type in Haskell How to define an enumerating type includng an already existing type in Haskell haskell How Haskell Point Move Pass Multiple How to define an enumerating type includng an already existing type in Haskell I'm implementing the game of Go in Has...
[ 0.01165771484375, 0.004913330078125, -0.0021820068359375, 0.0026092529296875, 0.0037689208984375, -0.01214599609375, -0.0130615234375, 0.013916015625, 0.0113525390625, -0.0390625, 0.000698089599609375, -0.01434326171875, 0.005950927734375, 0.01385498046875, -0.00701904296875, 0.0143432...
[ 11249, 61924, 189085, 1916, 10644, 189118, 21771, 144573, 20625, 142508, 142, 449, 23, 1556, 41097, 135828, 28872, 19335, 8705, 29479, 6712, 111, 2016, 58735, 6275, 98, 120067, 15700, 33636, 70541, 25813, 198343, 5303, 91, 65042, 80934, 2367, ...
[ 0.05413818359375, 0.226806640625, 0.2412109375, 0.1256103515625, 0.26416015625, 0.1807861328125, 0.1751708984375, 0.240966796875, 0.1541748046875, 0.2386474609375, 0.007781982421875, 0.029754638671875, 0.09521484375, 0.134765625, 0.197265625, 0.1981201171875, 0.1385498046875, 0.170...
embed
9226780_c0
9226780
haskell
0
Title: how to add a new source inside a conduit haskell Problem title: how to add a new source inside a conduit haskell Tags: conduit, haskell Problem: how to add a new source inside a conduit haskell I have a problem with the following code using network-conduit : import Data.Conduit.List as CL import Data.Conduit.Tex...
how to add a new source inside a conduit haskell how to add a new source inside a conduit haskell conduit haskell Data.Conduit.List Data.Conduit.Text qualified Data.ByteString.Char8 Data.Text ResourceT Integer Source Application CT.decode CT.ascii CL.map Left S8.pack Error Right T.pack how to add a new source inside a ...
[ -0.0042724609375, 0.003326416015625, 0.00171661376953125, 0.025634765625, 0.0062255859375, -0.0017242431640625, 0.00007677078247070312, -0.00445556640625, 0.01324462890625, -0.041259765625, 0.010009765625, -0.032470703125, 0.026611328125, 0.01190185546875, 0.01312255859375, -0.00038146...
[ 3642, 15190, 10, 3525, 31344, 46132, 120565, 1556, 142508, 47, 11809, 11935, 112061, 154663, 174379, 217225, 67, 84068, 1019, 152055, 618, 44401, 77641, 104921, 71885, 112, 40899, 26506, 62346, 2480, 159, 29102, 212059, 90911, 384, 2967, 25632,...
[ 0.055267333984375, 0.1968994140625, 0.0836181640625, 0.1678466796875, 0.24267578125, 0.1934814453125, 0.2440185546875, 0.1512451171875, 0.23583984375, 0.030792236328125, 0.0272674560546875, 0.037200927734375, 0.1854248046875, 0.0325927734375, 0.091796875, 0.09930419921875, 0.00106811...
embed
59752713_c1
59752713
haskell
1
0) peerHandler sock = do msg <- recv sock 1024 putStrLn ("Incoming :" ++ (show msg)) runClient :: HostName -> ServiceName -> (Socket -> IO a) -> IO a runClient host port client = withSocketsDo $ do addr <- resolve E.bracket (open addr) close client where resolve = do let hints = defaultHints {addrSocketType = Stream} h...
0) peerHandler sock = do msg <- recv sock 1024 putStrLn ("Incoming :" ++ (show msg)) runClient :: HostName -> ServiceName -> (Socket -> IO a) -> IO a runClient host port client = withSocketsDo $ do addr <- resolve E.bracket (open addr) close client where resolve = do let hints = defaultHints {addrSocketType = Stream} h...
[ -0.00634765625, 0.0145263671875, -0.014892578125, 0.0166015625, 0.022216796875, 0.004180908203125, -0.01080322265625, -0.0201416015625, -0.0012664794921875, -0.034423828125, 0.0294189453125, 0.004913330078125, 0.01458740234375, 0.0111083984375, -0.00958251953125, -0.015869140625, 0.0...
[ 757, 280, 56, 135679, 603, 221, 2594, 2203, 54, 68163, 177, 21954, 334, 140154, 3884, 71713, 19, 277, 37223, 31374, 11675, 441, 150, 2517, 100932, 163612, 12349, 8912, 27853, 17780, 10, 27980, 11469, 23282, 678, 15190, 42, 103608, 241, 28...
[ 0.0667724609375, 0.2308349609375, 0.1533203125, 0.247314453125, 0.2159423828125, 0.1597900390625, 0.162841796875, 0.0357666015625, 0.053955078125, 0.043365478515625, 0.0830078125, 0.041900634765625, 0.1241455078125, 0.179443359375, 0.0987548828125, 0.0787353515625, 0.0218353271484375...
embed
16439025_c0
16439025
haskell
0
Title: What is so special about Monads? Problem title: What is so special about Monads? Tags: haskell, math, monads, functional-programming, structure Problem: What is so special about Monads? A monad is a mathematical structure which is heavily used in (pure) functional programming, basically Haskell. However, there a...
What is so special about Monads? What is so special about Monads? haskell math monads functional-programming structure What Monads What is so special about Monads? A monad is a mathematical structure which is heavily used in (pure) functional programming, basically Haskell. However, there are many other mathematical st...
[ -0.002105712890625, 0.0189208984375, 0.00830078125, -0.0031585693359375, 0.005584716796875, 0.02001953125, 0.01220703125, -0.00011968612670898438, 0.01171875, 0.00872802734375, -0.01422119140625, -0.0230712890625, -0.0181884765625, 0.01123046875, 0.003387451171875, 0.006256103515625, ...
[ 4865, 83, 221, 5361, 1672, 60331, 6468, 32, 1556, 142508, 48909, 2667, 712, 7, 123309, 28966, 214, 45646, 62, 10, 291, 140363, 70760, 3129, 17305, 5115, 53, 11814, 23, 4717, 13, 16, 56037, 449, 4, 198343, 20625, 33306, 2685, 621, 5941, ...
[ 0.1275634765625, 0.1014404296875, 0.1314697265625, 0.240966796875, 0.13720703125, 0.2841796875, 0.2998046875, 0.025054931640625, 0.1534423828125, 0.281982421875, 0.194091796875, 0.25732421875, 0.30419921875, 0.163818359375, 0.20703125, 0.146728515625, 0.00665283203125, 0.2534179687...
embed
19203753_c0
19203753
haskell
0
Title: Convert haskell record insert function to a more generic type Problem title: Convert haskell record insert function to a more generic type Tags: record, insert, haskell Problem: Convert haskell record insert function to a more generic type I have a sample type like this: data Sample_Type = Sample_Type { field1 :...
Convert haskell record insert function to a more generic type Convert haskell record insert function to a more generic type record insert haskell Convert Sample_Type field1 field2 field3 Show x:xs Convert haskell record insert function to a more generic type I have a sample type like this: I'm using this function to ap...
[ -0.027587890625, -0.00506591796875, 0.016357421875, 0.01214599609375, -0.01300048828125, 0.000850677490234375, -0.041748046875, -0.0089111328125, 0.0185546875, -0.01129150390625, 0.016357421875, -0.010009765625, 0.01275634765625, -0.0172119140625, -0.00537109375, -0.0166015625, 0.002...
[ 1657, 11549, 1556, 142508, 17164, 183540, 32354, 47, 1286, 189534, 10644, 947, 33209, 196707, 44457, 304, 363, 17367, 425, 121413, 17368, 114689, 71, 5303, 46132, 31577, 96760, 36917, 3173, 5941, 115923, 2053, 50986, 1632, 27117, 150011, 25632,...
[ 0.0242919921875, 0.1649169921875, 0.1357421875, 0.203369140625, 0.225341796875, 0.255615234375, 0.161376953125, 0.052703857421875, 0.1065673828125, 0.2200927734375, 0.1705322265625, 0.043212890625, 0.1644287109375, 0.197021484375, 0.127685546875, 0.0009765625, 0.1068115234375, 0.11...
embed
20898129_c0
20898129
haskell
0
Title: Shared data in Yesod Problem title: Shared data in Yesod Tags: yesod, haskell Problem: Shared data in Yesod I want to share some data across requests in Yesod. In my case that data is a MVar (Data.Map Text ReadWriteLock) , but I don't think the format of the data being shared matters too much here. In Foundation...
Shared data in Yesod Shared data in Yesod yesod haskell Shared Yesod MVar Data.Map Text ReadWriteLock TVar STM Shared data in Yesod I want to share some data across requests in Yesod. In my case that data is a MVar (Data.Map Text ReadWriteLock) , but I don't think the format of the data being shared matters too much he...
[ -0.01385498046875, 0.046630859375, 0.004638671875, -0.017822265625, -0.0023956298828125, 0.00958251953125, 0.00034332275390625, -0.008056640625, 0.00921630859375, -0.05224609375, 0.0184326171875, -0.0025634765625, -0.0115966796875, 0.015625, 0.0106201171875, 0.003631591796875, -0.005...
[ 29790, 71, 2053, 32635, 2199, 23, 2422, 23722, 1556, 142508, 66160, 147, 11809, 166179, 24129, 4764, 1456, 18781, 209848, 1910, 159, 10111, 3444, 12008, 36880, 50336, 137989, 9384, 99764, 26866, 32807, 127, 6868, 831, 15190, 44457, 5659, 1190...
[ 0.195068359375, 0.033966064453125, 0.1846923828125, 0.18115234375, 0.25634765625, 0.026275634765625, 0.1195068359375, 0.2249755859375, 0.1043701171875, 0.2110595703125, 0.1173095703125, 0.188232421875, 0.1187744140625, 0.125244140625, 0.1551513671875, 0.1199951171875, 0.0458068847656...
embed
75655488_c0
75655488
haskell
0
Title: Take first elements of &#x27;xs&#x27; that are equal to &#x27;a&#x27; without using takeWhile Problem title: Take first elements of &#x27;xs&#x27; that are equal to &#x27;a&#x27; without using takeWhile Tags: filter, list, haskell Problem: Take first elements of 'xs' that are equal to 'a' without using takeWhile...
Take first elements of &#x27;xs&#x27; that are equal to &#x27;a&#x27; without using takeWhile Take first elements of &#x27;xs&#x27; that are equal to &#x27;a&#x27; without using takeWhile filter list haskell takeWhile Take Take first elements of 'xs' that are equal to 'a' without using takeWhile I want to write a funct...
[ 0.005859375, 0.0025787353515625, 0.00159454345703125, -0.01263427734375, -0.0015106201171875, -0.01470947265625, 0.0189208984375, -0.004150390625, 0.01373291015625, -0.0159912109375, 0.0205078125, 0.0223388671875, -0.0062255859375, 0.0189208984375, 0.0125732421875, -0.005523681640625, ...
[ 46673, 5117, 80854, 3768, 425, 7, 105950, 47, 11, 15490, 17368, 5646, 1456, 979, 133, 46312, 5303, 1556, 142508, 3444, 33022, 32354, 1238, 1984, 10, 33079, 6044, 1022, 83, 70541, 2174, 959, 4034, 678, 201505, 209052, 50218, 31089, 20662, ...
[ 0.1365966796875, 0.1563720703125, 0.1812744140625, 0.088623046875, 0.15185546875, 0.108154296875, 0.161376953125, 0.0836181640625, 0.1158447265625, 0.0936279296875, 0.028106689453125, 0.1683349609375, 0.0221405029296875, 0.1309814453125, 0.059661865234375, 0.143310546875, 0.15625, ...
embed
44877444_c0
44877444
haskell
0
Title: Is this an appropriate use of ContT? Problem title: Is this an appropriate use of ContT? Tags: continuations, monads, haskell Problem: Is this an appropriate use of ContT? I'm working on a project that requires me to write a small interpreter. The instructions have a simple tree structure and one of the commands...
Is this an appropriate use of ContT? Is this an appropriate use of ContT? continuations monads haskell Control.Monad.Cont ContT Instruction Print Halt Block Show a:as Is this an appropriate use of ContT? I'm working on a project that requires me to write a small interpreter. The instructions have a simple tree structur...
[ -0.00433349609375, 0.00128936767578125, 0.0128173828125, -0.000385284423828125, -0.002532958984375, -0.0002498626708984375, 0.020263671875, -0.028564453125, -0.0093994140625, -0.05322265625, -0.032958984375, -0.01153564453125, -0.00823974609375, 0.01708984375, -0.00127410888671875, -0....
[ 903, 95307, 4527, 1657, 18, 618, 142, 9454, 5256, 2667, 712, 1556, 142508, 27131, 46674, 11935, 72022, 39754, 4772, 80231, 17367, 10, 162, 2071, 20697, 13452, 19336, 29481, 56, 167934, 8781, 53201, 45646, 75101, 21543, 1870, 1916, 71924, 27...
[ 0.0765380859375, 0.1724853515625, 0.1290283203125, 0.14990234375, 0.1541748046875, 0.21240234375, 0.00787353515625, 0.1490478515625, 0.009185791015625, 0.06378173828125, 0.059814453125, 0.0523681640625, 0.1676025390625, 0.1466064453125, 0.043243408203125, 0.1036376953125, 0.106262207...
embed
33827040_c1
33827040
haskell
1
tried this: guiAnswer :: GUI -> IO() guiAnswer gui = do a<-forM [1..40] (\t -> postGUIAsync $ labelSetText (display gui) (show $ fib t)) --labelSetText (display gui) "WELCOME!!" --mainContextIteration mainContextDefault False print "" but without success (it still displays only the final number), and I'm not sure abou...
tried this: guiAnswer :: GUI -> IO() guiAnswer gui = do a<-forM [1..40] (\t -> postGUIAsync $ labelSetText (display gui) (show $ fib t)) --labelSetText (display gui) "WELCOME!!" --mainContextIteration mainContextDefault False print "" but without success (it still displays only the final number), and I'm not sure abou...
[ 0.006591796875, -0.0106201171875, 0.000270843505859375, -0.0140380859375, 0.01129150390625, -0.004974365234375, 0.016845703125, 0.00830078125, 0.01043701171875, -0.04052734375, -0.011474609375, -0.03173828125, 0.0013427734375, -0.005584716796875, 0.01263427734375, -0.0035552978515625, ...
[ 37842, 903, 17086, 7251, 7, 6488, 1984, 195490, 17780, 132, 54, 10, 16093, 2472, 594, 2839, 18, 1305, 43578, 17481, 12654, 3650, 67967, 294, 126, 174379, 3827, 20706, 31374, 809, 275, 808, 152526, 24592, 26943, 91245, 1146, 24931, 22829, ...
[ 0.11669921875, 0.051849365234375, 0.2454833984375, 0.142822265625, 0.11328125, 0.1956787109375, 0.0072021484375, 0.2109375, 0.200927734375, 0.0791015625, 0.0625, 0.079833984375, 0.0572509765625, 0.144775390625, 0.1378173828125, 0.1497802734375, 0.06341552734375, 0.08624267578125, ...
embed
49722964_c0
49722964
haskell
0
Title: Haskell - How to create a function that does an if check and then returns a value? Problem title: Haskell - How to create a function that does an if check and then returns a value? Tags: haskell, functional-programming Problem: Haskell - How to create a function that does an if check and then returns a value? I ...
Haskell - How to create a function that does an if check and then returns a value? Haskell - How to create a function that does an if check and then returns a value? haskell functional-programming Haskell How Haskell - How to create a function that does an if check and then returns a value? I have this piece of python ...
[ -0.0014801025390625, 0.0002231597900390625, -0.011962890625, 0.009521484375, 0.0025787353515625, -0.0036773681640625, 0.01055908203125, 0.0048828125, -0.0031890869140625, 0.003448486328125, -0.000896453857421875, 0.00299072265625, -0.021240234375, 0.01470947265625, -0.0025482177734375, ...
[ 20625, 142508, 11249, 28282, 32354, 450, 14602, 2174, 12765, 136, 7068, 30646, 7, 34292, 47, 142, 1556, 123309, 28966, 17198, 50828, 18151, 3900, 19309, 3444, 19048, 23, 831, 54, 903, 1528, 85590, 5646, 1295, 107730, 5117, 13315, 14012, 303...
[ 0.1485595703125, 0.262939453125, 0.09521484375, 0.2010498046875, 0.2177734375, 0.064453125, 0.0799560546875, 0.2548828125, 0.295166015625, 0.0848388671875, 0.12158203125, 0.21484375, 0.055999755859375, 0.1810302734375, 0.0740966796875, 0.03375244140625, 0.1419677734375, 0.111816406...
embed
28892191_c1
28892191
haskell
1
(EitherT e m a) -- Defined in ‘Control.Monad.Trans.Either’ λ However , if I run cabal get either to get the source code for the package, and open that in cabal repl , it does have all the instances. So... uh... why doesn't it know about those instances when I import the package instead of loading the source code? EDIT...
(EitherT e m a) -- Defined in ‘Control.Monad.Trans.Either’ λ However , if I run cabal get either to get the source code for the package, and open that in cabal repl , it does have all the instances. So... uh... why doesn't it know about those instances when I import the package instead of loading the source code? EDIT...
[ 0.000553131103515625, -0.01312255859375, 0.01434326171875, -0.01214599609375, -0.00347900390625, -0.000728607177734375, 0.00018024444580078125, -0.009033203125, 0.0062255859375, -0.01324462890625, -0.005584716796875, -0.0081787109375, -0.005615234375, -0.00634765625, 0.003387451171875, ...
[ 647, 14, 9319, 618, 28, 347, 10, 262, 5983, 175904, 46674, 712, 62624, 111147, 33306, 11675, 109524, 2046, 40101, 31344, 18151, 98169, 9803, 456, 2424, 14602, 765, 756, 70, 110527, 15400, 22027, 18, 3714, 1672, 8382, 24927, 64457, 72367, ...
[ 0.05780029296875, 0.07086181640625, 0.21044921875, 0.224853515625, 0.083984375, 0.00341796875, 0.087890625, 0.07525634765625, 0.18701171875, 0.1917724609375, 0.068603515625, 0.125, 0.245849609375, 0.150634765625, 0.04248046875, 0.11083984375, 0.230224609375, 0.058013916015625, 0....
embed
14420712_c0
14420712
haskell
0
Title: haskell segmentation fault with factorial Problem title: haskell segmentation fault with factorial Tags: segmentation-fault, haskell Problem: haskell segmentation fault with factorial GHCi, version 7.4.2: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integ...
haskell segmentation fault with factorial haskell segmentation fault with factorial segmentation-fault haskell GHCi www.haskell.org Loading Prelude Segmentation Integer haskell segmentation fault with factorial does anyone have any idea why this would be happening? fac 10000 works running on OS X 10.8.2 hmm, so loading...
[ 0.0069580078125, 0.01214599609375, 0.00080108642578125, 0.00836181640625, 0.00128936767578125, -0.015625, 0.00188446044921875, -0.0025482177734375, -0.02490234375, -0.03759765625, 0.0002841949462890625, -0.0106201171875, 0.00115966796875, 0.000865936279296875, 0.0079345703125, -0.00509...
[ 1556, 142508, 33180, 2320, 193857, 678, 31461, 15403, 1021, 7136, 527, 73265, 14, 10557, 228006, 1914, 822, 38462, 674, 44401, 35672, 6528, 15400, 123087, 7808, 77433, 43240, 51042, 11787, 1193, 4068, 128423, 72367, 11435, 127877, 49041, 17368,...
[ 0.1165771484375, 0.2431640625, 0.24609375, 0.06512451171875, 0.234130859375, 0.07366943359375, 0.16845703125, 0.1556396484375, 0.1502685546875, 0.1951904296875, 0.011749267578125, 0.05377197265625, 0.0877685546875, 0.0914306640625, 0.168701171875, 0.051788330078125, 0.151123046875, ...
embed
40342060_c0
40342060
haskell
0
Title: Convert a tuple of lists of the same length to a list of tuples for arbitrary -- Haskell Problem title: Convert a tuple of lists of the same length to a list of tuples for arbitrary -- Haskell Tags: tuples, haskell Problem: Convert a tuple of lists of the same length to a list of tuples for arbitrary -- Haskell ...
Convert a tuple of lists of the same length to a list of tuples for arbitrary -- Haskell Convert a tuple of lists of the same length to a list of tuples for arbitrary -- Haskell tuples haskell Convert Haskell a:as b:bs c:cs d:ds e:es f:fs g:gs h:hs Convert a tuple of lists of the same length to a list of tuples for arb...
[ 0.00823974609375, 0.0224609375, -0.008056640625, -0.00543212890625, -0.01336669921875, 0.0211181640625, -0.0286865234375, -0.011474609375, 0.0155029296875, -0.002655029296875, 0.0019073486328125, -0.01239013671875, 0.0140380859375, 0.0238037109375, -0.0064697265625, 0.00799560546875, ...
[ 1657, 11549, 370, 8705, 5303, 7, 5701, 140909, 47, 99726, 100, 61799, 1294, 20625, 142508, 1556, 10, 162, 876, 12, 16145, 4439, 104, 6468, 1238, 17447, 9405, 1096, 31577, 96760, 4153, 18, 1468, 360, 163846, 1653, 30524, 13267, 25632, 1815...
[ 0.03240966796875, 0.14208984375, 0.1639404296875, 0.1971435546875, 0.230224609375, 0.03411865234375, 0.1263427734375, 0.1358642578125, 0.0869140625, 0.2352294921875, 0.03399658203125, 0.1490478515625, 0.06787109375, 0.1297607421875, 0.2210693359375, 0.10028076171875, 0.0487060546875,...
embed
74617593_c0
74617593
haskell
0
Title: Haskell - Couldn&#x27;t match expected type `(a2, a6)&#x27; with actual type `Pos&#x27; Problem title: Haskell - Couldn&#x27;t match expected type `(a2, a6)&#x27; with actual type `Pos&#x27; Tags: functional-programming, haskell Problem: Haskell - Couldn't match expected type `(a2, a6)' with actual type `Pos' In...
Haskell - Couldn&#x27;t match expected type `(a2, a6)&#x27; with actual type `Pos&#x27; Haskell - Couldn&#x27;t match expected type `(a2, a6)&#x27; with actual type `Pos&#x27; functional-programming haskell Haskell Couldn Pos Char Show Haskell - Couldn't match expected type `(a2, a6)' with actual type `Pos' In my code ...
[ -0.00799560546875, 0.01116943359375, -0.01055908203125, 0.01458740234375, -0.00104522705078125, 0.01031494140625, -0.00933837890625, -0.0150146484375, 0.0052490234375, 0.021240234375, 0.0235595703125, 0.00079345703125, 0.0086669921875, 0.00897216796875, -0.024658203125, -0.003738403320...
[ 20625, 142508, 191147, 3768, 18, 14858, 84751, 10644, 11, 304, 10, 59690, 678, 8561, 7192, 7, 123309, 28966, 1556, 19, 13498, 21656, 17367, 18151, 2053, 32354, 116, 110527, 3444, 30646, 79315, 98363, 24233, 7225, 903, 1250, 2661, 3688, 2170...
[ 0.1251220703125, 0.2239990234375, 0.0753173828125, 0.0809326171875, 0.0467529296875, 0.156494140625, 0.166748046875, 0.166748046875, 0.06048583984375, 0.1048583984375, 0.06024169921875, 0.1334228515625, 0.0312042236328125, 0.1048583984375, 0.1466064453125, 0.1396484375, 0.1005859375,...
embed
32511000_c0
32511000
haskell
0
Title: Haskell implicit String polymorphism Problem title: Haskell implicit String polymorphism Tags: haskell, polymorphism Problem: Haskell implicit String polymorphism How can I reduce effort in writing scripts that need to convert between different string representations? For example, how to create a polymorphic set...
Haskell implicit String polymorphism Haskell implicit String polymorphism haskell polymorphism Network.HTTP.Types Data.Foldable qualified Haskell B.ByteString T.Text Data.ByteString Data.Text.IO B.getContents traverse_ T.putStrLn Haskell implicit String polymorphism How can I reduce effort in writing scripts that need ...
[ -0.000682830810546875, 0.0020294189453125, -0.00872802734375, 0.019775390625, 0.00042724609375, 0.0174560546875, 0.01513671875, -0.029052734375, 0.00135040283203125, -0.00823974609375, 0.0238037109375, -0.03759765625, 0.00201416015625, -0.000698089599609375, -0.015869140625, -0.0143432...
[ 20625, 142508, 165164, 23351, 35874, 178851, 8780, 1556, 28997, 18544, 23658, 196707, 11809, 18345, 2886, 217225, 335, 75358, 71713, 174379, 17780, 3794, 11935, 25352, 37317, 7077, 866, 214, 831, 34390, 71834, 32562, 26499, 3871, 96760, 17721, ...
[ 0.1358642578125, 0.2052001953125, 0.2261962890625, 0.1983642578125, 0.1796875, 0.2120361328125, 0.0184783935546875, 0.12548828125, 0.0704345703125, 0.013275146484375, 0.078125, 0.166748046875, 0.036529541015625, 0.0921630859375, 0.059783935546875, 0.1365966796875, 0.0270843505859375,...
embed
37328625_c0
37328625
haskell
0
Title: Haskell Nested List Generators Problem title: Haskell Nested List Generators Tags: haskell, list-comprehension Problem: Haskell Nested List Generators This is a problem I've been working through on List comprehension. I know that it should be solved with recursion, but I am not sure exactly how the Haskell synta...
Haskell Nested List Generators Haskell Nested List Generators haskell list-comprehension Haskell Nested List Generators Dict Haskell Nested List Generators This is a problem I've been working through on List comprehension. I know that it should be solved with recursion, but I am not sure exactly how the Haskell syntax ...
[ -0.02490234375, 0.0096435546875, -0.003997802734375, 0.01031494140625, 0.00994873046875, 0.018798828125, -0.012451171875, -0.01611328125, 0.004974365234375, -0.00872802734375, -0.017822265625, -0.03466796875, 0.033203125, 0.016357421875, -0.01470947265625, -0.0052490234375, 0.0034942...
[ 20625, 142508, 28701, 71, 32036, 222518, 1556, 5303, 277, 4692, 3220, 60897, 18, 2967, 8305, 46683, 86869, 678, 195625, 1830, 9077, 6002, 86531, 43240, 5844, 7225, 37842, 2060, 11675, 3034, 17262, 77336, 4734, 140992, 12 ]
[ 0.1212158203125, 0.2210693359375, 0.2044677734375, 0.034454345703125, 0.158203125, 0.1988525390625, 0.1044921875, 0.111328125, 0.002685546875, 0.0997314453125, 0.116455078125, 0.1365966796875, 0.06298828125, 0.05657958984375, 0.0123291015625, 0.1094970703125, 0.0943603515625, 0.006...
embed
20602775_c0
20602775
haskell
0
Title: Standard practices in concurrent/parallel processing? Problem title: Standard practices in concurrent/parallel processing? Tags: concurrency, scala, heroku, haskell, erlang Problem: Standard practices in concurrent/parallel processing? Simply, in what use case is it best to have many processes that get a msg off...
Standard practices in concurrent/parallel processing? Standard practices in concurrent/parallel processing? concurrency scala heroku haskell erlang Standard Clean Laundry Wash Store Transaction Tell Standard practices in concurrent/parallel processing? Simply, in what use case is it best to have many processes that get...
[ 0.0020751953125, -0.001708984375, -0.006011962890625, 0.0218505859375, -0.010498046875, -0.0025634765625, 0.0024871826171875, -0.0103759765625, -0.00116729736328125, -0.007568359375, -0.006134033203125, 0.03466796875, 0.004364013671875, 0.004791259765625, -0.028564453125, 0.03125, 0....
[ 20744, 41361, 133244, 6276, 1229, 141, 9433, 214, 108636, 982, 146232, 40814, 319, 1556, 142508, 72, 3066, 73133, 23684, 138918, 5282, 127, 14934, 11062, 59488, 4527, 2965, 5941, 68163, 177, 5773, 41, 28484, 66211, 26548, 12447, 243228, 63923...
[ 0.255615234375, 0.2359619140625, 0.2430419921875, 0.08709716796875, 0.134765625, 0.05810546875, 0.1519775390625, 0.05462646484375, 0.1256103515625, 0.06585693359375, 0.1729736328125, 0.0968017578125, 0.129150390625, 0.05230712890625, 0.18701171875, 0.009002685546875, 0.203369140625, ...
embed
78804973_c0
78804973
haskell
0
Title: How does liftM2 work like the S&#x27; combinator in Haskell? Problem title: How does liftM2 work like the S&#x27; combinator in Haskell? Tags: apl, monads, combinatory-logic, haskell Problem: How does liftM2 work like the S' combinator in Haskell? I was watching a video by code_report ( Link ) where he mentions ...
How does liftM2 work like the S&#x27; combinator in Haskell? How does liftM2 work like the S&#x27; combinator in Haskell? apl monads combinatory-logic haskell How liftM2 Haskell How does liftM2 work like the S' combinator in Haskell? I was watching a video by code_report ( Link ) where he mentions liftM2 works like the...
[ -0.0172119140625, 0.024169921875, 0.00335693359375, 0.02490234375, 0.0164794921875, 0.0174560546875, -0.010986328125, -0.0164794921875, 0.0093994140625, -0.019287109375, 0.02099609375, -0.00135040283203125, -0.0026092529296875, -0.001556396484375, -0.00616455078125, -0.0101318359375, ...
[ 11249, 60520, 594, 304, 4488, 1884, 159, 3768, 22321, 1290, 20625, 142508, 2424, 2667, 712, 31667, 137043, 1556, 14602, 25, 23, 100244, 1202, 18151, 79770, 12779, 43240, 62775, 27781, 74481, 881, 64, 24084, 12830, 10298, 51776, 22109, 71, 2...
[ 0.058837890625, 0.229248046875, 0.1883544921875, 0.239501953125, 0.1309814453125, 0.126220703125, 0.140869140625, 0.04248046875, 0.193359375, 0.105224609375, 0.106689453125, 0.2357177734375, 0.060760498046875, 0.049407958984375, 0.096435546875, 0.040740966796875, 0.04962158203125, ...
embed
64510193_c1
64510193
haskell
1
5146410341fc169e381513f21d026d12cb649688c6644f5c69c/8.8.4/pkgdb/package.cache: GHC.PackageDb.readPackageDb: inappropriate type (not enough bytes) I'm not sure how to interpret this error ... " not enough bytes " ? Update : tried deleting ~/.stack , didn't help: ➜ rm -rf ~/.stack Preparing to install GHC (tinfo6) to an ...
5146410341fc169e381513f21d026d12cb649688c6644f5c69c/8.8.4/pkgdb/package.cache: GHC.PackageDb.readPackageDb: inappropriate type (not enough bytes) I'm not sure how to interpret this error ... " not enough bytes " ? Update : tried deleting ~/.stack , didn't help: ➜ rm -rf ~/.stack Preparing to install GHC (tinfo6) to an ...
[ 0.0029144287109375, 0.00921630859375, 0.025390625, 0.007781982421875, -0.006378173828125, 0.006591796875, -0.02197265625, -0.01312255859375, -0.00482177734375, 0.01165771484375, 0.0244140625, -0.00518798828125, -0.01239013671875, -0.01190185546875, 0.01104736328125, 0.01104736328125, ...
[ 8651, 160775, 141492, 10991, 910, 238, 275, 167377, 134900, 202824, 758, 14212, 23538, 5, 163883, 64, 8517, 48073, 29102, 4588, 408, 1430, 527, 73265, 205956, 397, 39116, 12, 189958, 67, 10644, 10869, 20174, 390, 1636, 9077, 29481, 903, 184...
[ 0.049652099609375, 0.054962158203125, 0.07379150390625, 0.00897216796875, 0.1693115234375, 0.1431884765625, 0.1009521484375, 0.057525634765625, 0.0202789306640625, 0.025543212890625, 0.0054931640625, 0.03631591796875, 0.06060791015625, 0.006500244140625, 0.219482421875, 0.0730590820312...
embed
13017072_c0
13017072
haskell
0
Title: Call-Site Code Replacement in Functional Programming Languages Problem title: Call-Site Code Replacement in Functional Programming Languages Tags: haskell, functional-programming Problem: Call-Site Code Replacement in Functional Programming Languages I just wonder whether it is possible in a functional language ...
Call-Site Code Replacement in Functional Programming Languages Call-Site Code Replacement in Functional Programming Languages haskell functional-programming Call-Site Replacement Functional Programming Languages Call-Site Code Replacement in Functional Programming Languages I just wonder whether it is possible in a fun...
[ 0.01348876953125, 0.0308837890625, 0.01519775390625, 0.0069580078125, -0.0026092529296875, 0.001983642578125, -0.00078582763671875, 0.005950927734375, -0.0021820068359375, -0.030029296875, -0.0023956298828125, -0.0054931640625, -0.0208740234375, -0.0029449462890625, 0.0233154296875, -0...
[ 26265, 9, 294, 1486, 28864, 853, 23935, 674, 28670, 10763, 27958, 83658, 1556, 142508, 123309, 28966, 32195, 36766, 7722, 23, 46876, 47, 54, 11782, 1764, 91995, 25826, 5361, 3173, 21, 3285, 7432, 2806, 174653, 32354, 1238, 678, 10750, 10, ...
[ 0.1663818359375, 0.002410888671875, 0.114990234375, 0.1314697265625, 0.1973876953125, 0.08428955078125, 0.1531982421875, 0.1270751953125, 0.1075439453125, 0.08612060546875, 0.10443115234375, 0.1461181640625, 0.09942626953125, 0.2159423828125, 0.26416015625, 0.1116943359375, 0.0501098...
embed
18523006_c1
18523006
haskell
1
Map. My program is a multithreaded socket server with one address being the "reader" that performs a lookup. The other socket address just pushes bytestrings onto the map. I can connect 2 sockets to the inserting and 1 socket to the reader. if I insert a bunch of times, the map won't be evaluated until my reader socke...
Map. My program is a multithreaded socket server with one address being the "reader" that performs a lookup. The other socket address just pushes bytestrings onto the map. I can connect 2 sockets to the inserting and 1 socket to the reader. if I insert a bunch of times, the map won't be evaluated until my reader socke...
[ -0.0035400390625, 0.0206298828125, 0.0113525390625, -0.00885009765625, 0.001251220703125, -0.0072021484375, -0.01446533203125, 0.000522613525390625, 0.01446533203125, -0.0296630859375, 0.038330078125, 0.01153564453125, 0.019775390625, 0.01171875, 0.00970458984375, 0.006988525390625, ...
[ 42719, 1528, 3869, 65847, 712, 221, 27853, 10723, 1632, 29823, 8035, 1283, 820, 51339, 6713, 2037, 3789, 25944, 390, 6954, 46828, 22288, 37067, 116, 183540, 155255, 147306, 20028, 23742, 18, 151575, 24189, 33342, 34292, 2806, 1884, 3229, 2811...
[ 0.27587890625, 0.134033203125, 0.042999267578125, 0.0977783203125, 0.0195465087890625, 0.047637939453125, 0.1546630859375, 0.1444091796875, 0.038330078125, 0.0999755859375, 0.0025634765625, 0.1436767578125, 0.09521484375, 0.06854248046875, 0.07879638671875, 0.1319580078125, 0.0163269...
embed
39560150_c0
39560150
haskell
0
Title: Haskell &#x27;Either&#x27; data type and readability? Problem title: Haskell &#x27;Either&#x27; data type and readability? Tags: types, haskell Problem: Haskell 'Either' data type and readability? I'm learning 'Either' data structures in Haskell and have written the following: type PhoneBook = [(String, String)]...
Haskell &#x27;Either&#x27; data type and readability? Haskell &#x27;Either&#x27; data type and readability? types haskell Haskell Either PhoneBook Use PresentInPhoneBook Present NotPresent Show IsPresent IsNotPresent Left Match Right Haskell 'Either' data type and readability? I'm learning 'Either' data structures in H...
[ 0.01025390625, -0.0024566650390625, 0.0162353515625, 0.0028533935546875, -0.0184326171875, 0.00537109375, -0.00396728515625, -0.006683349609375, 0.00933837890625, 0.00183868408203125, 0.01519775390625, -0.0152587890625, 0.01513671875, -0.0269775390625, -0.007171630859375, -0.0099487304...
[ 20625, 142508, 3768, 647, 14, 9319, 54764, 2053, 10644, 136, 12301, 41159, 52895, 1556, 4565, 41761, 37975, 36836, 97721, 4153, 163147, 11205, 19273, 12832, 17367, 2071, 122116, 636, 2480, 67407, 90911, 52080, 45646, 59121, 136912, 18151, 1286,...
[ 0.1522216796875, 0.24609375, 0.09326171875, 0.053985595703125, 0.09210205078125, 0.1949462890625, 0.00006103515625, 0.154541015625, 0.212646484375, 0.0556640625, 0.207763671875, 0.160400390625, 0.18408203125, 0.127685546875, 0.0380859375, 0.1539306640625, 0.1953125, 0.0249938964843...
embed
52202854_c0
52202854
haskell
0
Title: Is it not possible to import modules from another module if they are in the same dir? (Haskell) Problem title: Is it not possible to import modules from another module if they are in the same dir? (Haskell) Tags: ghc, winghci, haskell, haskell-platform, ghci Problem: Is it not possible to import modules from ano...
Is it not possible to import modules from another module if they are in the same dir? (Haskell) Is it not possible to import modules from another module if they are in the same dir? (Haskell) ghc winghci haskell haskell-platform ghci modules another Haskell Is it not possible to import modules from another module if th...
[ -0.01397705078125, 0.00872802734375, 0.0031585693359375, 0.015625, -0.0103759765625, 0.001708984375, -0.0054931640625, -0.005157470703125, 0.0020904541015625, -0.0250244140625, -0.0181884765625, -0.014892578125, 0.01519775390625, 0.00994873046875, -0.00787353515625, 0.00286865234375, ...
[ 959, 7722, 24927, 88996, 7, 1295, 15700, 2174, 23, 5701, 5402, 6495, 142508, 31380, 238, 14775, 127, 318, 1556, 172121, 20625, 1836, 3034, 13452, 14364, 137989, 4734, 116, 111337, 363, 617, 201505, 100, 60042, 83279, 11809, 18499, 17686, 41...
[ 0.07159423828125, 0.1204833984375, 0.260498046875, 0.247802734375, 0.08819580078125, 0.09930419921875, 0.1231689453125, 0.038421630859375, 0.116943359375, 0.15234375, 0.17431640625, 0.04327392578125, 0.1995849609375, 0.0667724609375, 0.011260986328125, 0.0501708984375, 0.054870605468...
embed
43600051_c0
43600051
haskell
0
Title: Can&#x27;t show/print int in if-else statement Problem title: Can&#x27;t show/print int in if-else statement Tags: haskell Problem: Can't show/print int in if-else statement In the following code I am trying to show the result of factorial, which is an integer. I got the following error message, I am wondering w...
Can&#x27;t show/print int in if-else statement Can&#x27;t show/print int in if-else statement haskell Can factorial2 n-1 What Right Wrong Factorial.hs:10:20 Couldn Integer Failed Can't show/print int in if-else statement In the following code I am trying to show the result of factorial, which is an integer. I got the f...
[ -0.016357421875, 0.00096893310546875, 0.01177978515625, 0.01611328125, 0.02587890625, -0.005950927734375, 0.0166015625, -0.006622314453125, -0.007080078125, 0.026123046875, 0.0011444091796875, -0.0257568359375, 0.004241943359375, 0.005279541015625, 0.003753662109375, 0.004608154296875,...
[ 4171, 3768, 18, 7639, 64, 35662, 23, 2174, 5557, 63805, 1556, 142508, 31461, 15403, 304, 653, 5759, 90911, 35133, 117969, 127, 15110, 16619, 191147, 19, 44401, 190355, 297, 9, 25632, 18151, 31577, 16750, 892, 1505, 18499, 26008, 149016, 736...
[ 0.089111328125, 0.08349609375, 0.17041015625, 0.19970703125, 0.031982421875, 0.1927490234375, 0.1162109375, 0.1884765625, 0.2095947265625, 0.2091064453125, 0.082275390625, 0.19091796875, 0.1575927734375, 0.156494140625, 0.1422119140625, 0.01171875, 0.1265869140625, 0.0673828125, ...
embed
23145472_c0
23145472
haskell
0
Title: Syntax for multiple function calls in one line - Haskell Problem title: Syntax for multiple function calls in one line - Haskell Tags: haskell Problem: Syntax for multiple function calls in one line - Haskell This may be really straightforward but I'm new to Haskell and have no idea what I'm doing. I have three ...
Syntax for multiple function calls in one line - Haskell Syntax for multiple function calls in one line - Haskell haskell Syntax Haskell Char x:xs Syntax for multiple function calls in one line - Haskell This may be really straightforward but I'm new to Haskell and have no idea what I'm doing. I have three functions: S...
[ -0.011962890625, 0.00616455078125, 0.01171875, 0.0201416015625, -0.011474609375, 0.000644683837890625, 0.00994873046875, -0.005126953125, 0.0247802734375, -0.016357421875, 0.0038604736328125, 0.0101318359375, -0.004058837890625, -0.0012359619140625, 0.01104736328125, 0.004425048828125,...
[ 19010, 86531, 48716, 32354, 11782, 7, 23, 1632, 13315, 20625, 142508, 100, 1556, 21656, 1022, 12, 425, 3525, 110, 6528, 20594, 765, 17262, 77648, 50960, 4488, 41653, 26866, 18499, 208124, 5117, 5201, 31089, 27798, 3917, 17932, 27875, 16750, ...
[ 0.136962890625, 0.2076416015625, 0.2169189453125, 0.2459716796875, 0.2205810546875, 0.039154052734375, 0.04522705078125, 0.12109375, 0.164306640625, 0.111572265625, 0.1888427734375, 0.0186614990234375, 0.0888671875, 0.1578369140625, 0.06744384765625, 0.047576904296875, 0.111206054687...
embed
25467832_c0
25467832
haskell
0
Title: How to get source code for all build-depends using cabal? Problem title: How to get source code for all build-depends using cabal? Tags: haskell, cabal Problem: How to get source code for all build-depends using cabal? I generated a new project using Yesod and am trying to go through the source to see how the pi...
How to get source code for all build-depends using cabal? How to get source code for all build-depends using cabal? haskell cabal cabal How How to get source code for all build-depends using cabal? I generated a new project using Yesod and am trying to go through the source to see how the pieces fit together. I am stil...
[ -0.009765625, 0.006561279296875, 0.0048828125, 0.01458740234375, -0.0062255859375, 0.00970458984375, -0.00927734375, 0.004791259765625, 0.0009918212890625, -0.046630859375, 0.006683349609375, -0.05126953125, -0.005340576171875, 0.01226806640625, -0.0211181640625, -0.01336669921875, -...
[ 11249, 47, 2046, 31344, 18151, 100, 756, 45367, 9, 105254, 7, 17368, 109524, 32, 1556, 142508, 139392, 3525, 13452, 32635, 2199, 8305, 70, 1957, 126371, 11177, 25842, 10, 69211, 42, 678, 111, 52895, 31842, 9803, 28994, 133, 12862, 16635, ...
[ 0.0888671875, 0.0286102294921875, 0.1380615234375, 0.255615234375, 0.240234375, 0.09814453125, 0.13525390625, 0.168212890625, 0.05499267578125, 0.2158203125, 0.0946044921875, 0.096435546875, 0.262451171875, 0.0015869140625, 0.125244140625, 0.2242431640625, 0.0723876953125, 0.013275...
embed
29638444_c0
29638444
haskell
0
Title: use BootstrapHorizontalForm in yesod Problem title: use BootstrapHorizontalForm in yesod Tags: haskell, yesod-forms, yesod Problem: use BootstrapHorizontalForm in yesod I intend use a BootstrapHorizontalForm, use how example this guide , my code: the form churchForm :: Maybe Church -> AForm Handler (Church,Maybe...
use BootstrapHorizontalForm in yesod use BootstrapHorizontalForm in yesod haskell yesod-forms yesod BootstrapHorizontalForm Maybe Church AForm Handler FileInfo MsgName BootstrapSubmit MsgCreateAction Html renderBootstrap3 ColSm Nothing ChurchNewR use BootstrapHorizontalForm in yesod I intend use a BootstrapHorizontalFo...
[ 0.003753662109375, 0.01507568359375, 0.000331878662109375, -0.03515625, 0.00004100799560546875, 0.00592041015625, 0.0050048828125, 0.0029449462890625, 0.0020599365234375, -0.055908203125, 0.0264892578125, -0.033447265625, 0.00177001953125, 0.0157470703125, -0.01129150390625, -0.0141601...
[ 4527, 58800, 7, 107617, 91658, 14, 5870, 1803, 102973, 23, 2422, 23722, 1556, 142508, 5037, 83425, 84084, 62, 10639, 603, 42724, 93147, 163612, 96472, 70802, 63784, 10763, 7237, 89159, 30591, 363, 11554, 182747, 46568, 1052, 150661, 3642, 277...
[ 0.09857177734375, 0.1190185546875, 0.0254669189453125, 0.2342529296875, 0.07183837890625, 0.04852294921875, 0.1163330078125, 0.14697265625, 0.2646484375, 0.06298828125, 0.1199951171875, 0.224853515625, 0.0732421875, 0.1754150390625, 0.226318359375, 0.0411376953125, 0.1153564453125, ...
embed
31338823_c0
31338823
haskell
0
Title: Render Number, Bool, String as String fails in haskell Problem title: Render Number, Bool, String as String fails in haskell Tags: haskell Problem: Render Number, Bool, String as String fails in haskell I have a small program, that takes any one of Boolean, Number, String and renders it as a String. module Main ...
Render Number, Bool, String as String fails in haskell Render Number, Bool, String as String fails in haskell haskell Render Number Bool Main Value Show Couldn Char Render Number, Bool, String as String fails in haskell I have a small program, that takes any one of Boolean, Number, String and renders it as a String. re...
[ -0.0281982421875, -0.0011749267578125, 0.0093994140625, 0.021240234375, 0.002105712890625, -0.0034332275390625, -0.01190185546875, -0.0123291015625, 0.0034637451171875, 0.037109375, -0.0169677734375, -0.033935546875, 0.0004596710205078125, -0.0164794921875, -0.01416015625, 0.0192871093...
[ 63137, 56, 103332, 2460, 929, 23351, 214, 237, 35782, 1556, 142508, 23, 12321, 190060, 17367, 191147, 21656, 19336, 1528, 51776, 2499, 73783, 34677, 89159, 856, 50770, 645, 63033, 55300, 134598, 5646, 107730, 4568, 13315, 28412, 18499, 44084, ...
[ 0.1705322265625, 0.10003662109375, 0.193359375, 0.1126708984375, 0.2177734375, 0.1607666015625, 0.1556396484375, 0.08563232421875, 0.157470703125, 0.12060546875, 0.217041015625, 0.010406494140625, 0.09771728515625, 0.23388671875, 0.052978515625, 0.07421875, 0.1029052734375, 0.06072...
embed
25590915_c0
25590915
haskell
0
Title: Parsing CSV header into list of parsers Problem title: Parsing CSV header into list of parsers Tags: attoparsec, parsing, haskell Problem: Parsing CSV header into list of parsers I want to parse first line of CSV file and to get list of parsers as a result, and fail miserably. After some simplifications I got co...
Parsing CSV header into list of parsers Parsing CSV header into list of parsers attoparsec parsing haskell Data.Text Data.Attoparsec.Text Control.Applicative Parsing CSV LANGUAGE OverloadedStrings Parser FIELD1 FIELD2 Right Left Failed Parsing CSV header into list of parsers I want to parse first line of CSV file and t...
[ 0.0019378662109375, -0.00118255615234375, 0.00897216796875, 0.040283203125, -0.0196533203125, 0.005767822265625, -0.0028228759765625, -0.00323486328125, -0.0002880096435546875, 0.010986328125, -0.00128936767578125, 0.01177978515625, -0.00079345703125, 0.0101318359375, 0.0037841796875, ...
[ 2392, 313, 43486, 10336, 56, 3934, 5303, 111, 366, 7, 1314, 6953, 243, 31, 2500, 39797, 1556, 142508, 11809, 174379, 10628, 27131, 11048, 98064, 9578, 63033, 71713, 2189, 120717, 90911, 2480, 190355, 184, 5117, 13315, 11435, 2046, 35782, 76...
[ 0.1307373046875, 0.07183837890625, 0.27197265625, 0.1572265625, 0.0772705078125, 0.0721435546875, 0.1195068359375, 0.040435791015625, 0.183837890625, 0.12060546875, 0.11376953125, 0.007080078125, 0.043365478515625, 0.003662109375, 0.048309326171875, 0.1043701171875, 0.0260009765625, ...
embed
38443877_c1
38443877
haskell
1
4 1 2 widgetShowAll window mainGUI The function that shows the FileChooserDialog is the selectImages function and is an onClick function for the selectButton. This function works like this: selectImages :: LabelClass self => self -> Window -> IO () selectImages resultLabel parent = do chooser <- fileChooserDialogNew (J...
4 1 2 widgetShowAll window mainGUI The function that shows the FileChooserDialog is the selectImages function and is an onClick function for the selectButton. This function works like this: selectImages :: LabelClass self => self -> Window -> IO () selectImages resultLabel parent = do chooser <- fileChooserDialogNew (J...
[ -0.00182342529296875, 0.0031280517578125, -0.0027313232421875, 0.02880859375, -0.0167236328125, 0.00958251953125, -0.00138092041015625, -0.0098876953125, 0.004180908203125, -0.033203125, 0.025390625, -0.018310546875, 0.00439453125, 0.040283203125, 0.00148773193359375, -0.025146484375, ...
[ 148631, 168660, 43512, 76896, 5201, 43578, 32354, 45831, 42724, 107522, 232, 56, 72838, 4867, 36849, 216960, 7, 98, 181671, 82212, 1507, 43240, 1884, 129214, 140803, 176501, 17780, 16750, 4063, 49129, 55076, 42, 11435, 100184, 43079, 10763, 103...
[ 0.21630859375, 0.09765625, 0.1669921875, 0.09161376953125, 0.1134033203125, 0.093017578125, 0.17626953125, 0.13037109375, 0.1690673828125, 0.094970703125, 0.1295166015625, 0.0968017578125, 0.1270751953125, 0.193115234375, 0.1654052734375, 0.2265625, 0.0557861328125, 0.1158447265625...
embed
46242004_c0
46242004
haskell
0
Title: Parsing JSON haskell Problem title: Parsing JSON haskell Tags: haskell, functional-programming, json, request, wreq Problem: Parsing JSON haskell I am trying to access the inner Object in my request. This is my code: {-# LANGUAGE OverloadedStrings #-} import Network.Wreq import Control.Lens import Data.Aeson imp...
Parsing JSON haskell Parsing JSON haskell haskell functional-programming json request wreq Network.Wreq Control.Lens Data.Aeson Data.Map Parsing JSON Object LANGUAGE OverloadedStrings Map Resp Response Value bittrex.com v1.1 BTC-LTC Bid Number Ask Last Bool Parsing JSON haskell I am trying to access the inner Object in...
[ -0.0174560546875, 0.0223388671875, -0.0035552978515625, 0.00372314453125, -0.010498046875, 0.0130615234375, -0.0089111328125, -0.018310546875, -0.0084228515625, -0.00009965896606445312, 0.019775390625, 0.028564453125, -0.0062255859375, -0.025146484375, 0.0096435546875, 0.0118408203125,...
[ 2392, 6953, 821, 58627, 1556, 142508, 123309, 28966, 1647, 1681, 50336, 148, 107, 864, 28997, 1456, 27131, 866, 1755, 11809, 284, 90, 191, 166179, 134549, 3358, 98064, 9578, 63033, 71713, 42719, 9624, 254, 92748, 190060, 4785, 2921, 425, 27...
[ 0.1668701171875, 0.053009033203125, 0.15234375, 0.2249755859375, 0.15283203125, 0.221435546875, 0.183349609375, 0.121826171875, 0.137451171875, 0.2105712890625, 0.18798828125, 0.0584716796875, 0.2320556640625, 0.178955078125, 0.09417724609375, 0.04400634765625, 0.1767578125, 0.0808...
embed
12387260_c0
12387260
haskell
0
Title: import not found Problem title: import not found Tags: haskell Problem: import not found This program is about counting words but it gives an error in the header and I couldn't fix it. The compiler it said not found and asked me to use -v but this also gives an error. What are the other files that I need to use ...
import not found import not found haskell not qualified Data.Vector.Unboxed GHC.Base LANGUAGE BangPatterns MagicHash Data.Vector.Generic n-10 VG.unsafeIndex VU.fromList import not found This program is about counting words but it gives an error in the header and I couldn't fix it. The compiler it said not found and ask...
[ -0.0174560546875, -0.000949859619140625, -0.021484375, 0.003326416015625, -0.006561279296875, 0.01422119140625, -0.01324462890625, -0.02587890625, 0.000843048095703125, -0.03662109375, -0.01043701171875, -0.034423828125, 0.016357421875, 0.00640869140625, -0.0157470703125, -0.0065002441...
[ 24927, 959, 14037, 1556, 142508, 217225, 11809, 26455, 18770, 14256, 11728, 527, 73265, 63473, 98064, 26387, 8335, 3055, 61707, 6495, 1495, 135932, 9193, 81283, 309, 115840, 39659, 120403, 161063, 154663, 1528, 1672, 54529, 214, 34153, 1284, 76...
[ 0.25244140625, 0.1375732421875, 0.1971435546875, 0.1165771484375, 0.211181640625, 0.2044677734375, 0.08087158203125, 0.1995849609375, 0.1943359375, 0.044830322265625, 0.1573486328125, 0.021697998046875, 0.128662109375, 0.0648193359375, 0.08355712890625, 0.13623046875, 0.06689453125, ...
embed
16459484_c1
16459484
haskell
1
aller` (n `Plus` Con 1) ex3 :: Formula (Bool, (Int, ())) ex3 = Forall [False, True] $ \p -> Forall [0..2] $ \n -> Body $ p `Or` (Con 0 `Smaller` n) the solution function should return: *Solver>solutions ex1 [()] *Solver> solutions ex2 [(1,()),(2,()),(3,()),(4,()),(5,()),(6,()),(7,()),(8,()),(9,()),(10,())] solutions(Fo...
aller` (n `Plus` Con 1) ex3 :: Formula (Bool, (Int, ())) ex3 = Forall [False, True] $ \p -> Forall [0..2] $ \n -> Body $ p `Or` (Con 0 `Smaller` n) the solution function should return: *Solver>solutions ex1 [()] *Solver> solutions ex2 [(1,()),(2,()),(3,()),(4,()),(5,()),(6,()),(7,()),(8,()),(9,()),(10,())] solutions(Fo...
[ 0.0167236328125, 0.0145263671875, -0.002532958984375, 0.002685546875, 0.005035400390625, -0.000835418701171875, 0.00286865234375, -0.0029449462890625, 0.018310546875, -0.01904296875, -0.01141357421875, 0.004852294921875, 0.00830078125, 0.01422119140625, 0.01190185546875, -0.01318359375...
[ 10308, 1135, 19, 88225, 1657, 4879, 1119, 363, 1984, 72791, 12647, 929, 18, 2203, 1326, 5584, 17647, 11971, 87599, 3650, 254, 33079, 2389, 90173, 43960, 915, 19060, 11935, 757, 2749, 603, 653, 29806, 32354, 5608, 30646, 102588, 814, 166589,...
[ 0.242431640625, 0.0318603515625, 0.052337646484375, 0.208740234375, 0.1881103515625, 0.095458984375, 0.193115234375, 0.208251953125, 0.0145721435546875, 0.26123046875, 0.0543212890625, 0.1480712890625, 0.05206298828125, 0.0040283203125, 0.09912109375, 0.2193603515625, 0.049072265625,...
embed
53492106_c1
53492106
haskell
1
= Root { Map String Key } deriving (Show, Generic) data Key = Key { key1 :: String , key2 :: Maybe Int } deriving (Show, Generic) But what if it were like the first example where not only can the keys not have a value but also have completely different ones. What if in them you only cared about the numbers or the stri...
= Root { Map String Key } deriving (Show, Generic) data Key = Key { key1 :: String , key2 :: Maybe Int } deriving (Show, Generic) But what if it were like the first example where not only can the keys not have a value but also have completely different ones. What if in them you only cared about the numbers or the stri...
[ -0.0050048828125, 0.0155029296875, 0.00494384765625, 0.0030975341796875, 0.003875732421875, 0.01275634765625, -0.007659912109375, -0.0177001953125, 0.0181884765625, 0.01190185546875, -0.01123046875, -0.003662109375, 0.013427734375, 0.0172119140625, -0.0025634765625, -0.00848388671875, ...
[ 2203, 150948, 42719, 23351, 214, 26824, 16406, 6496, 168660, 88342, 1771, 2053, 22799, 418, 304, 83425, 360, 18, 1884, 5117, 27781, 831, 7, 959, 765, 34292, 64557, 12921, 4734, 517, 1672, 101935, 79315, 3917, 366, 6953, 15490, 10644, 80934,...
[ 0.047943115234375, 0.259521484375, 0.180419921875, 0.1461181640625, 0.061737060546875, 0.198974609375, 0.135009765625, 0.1126708984375, 0.1666259765625, 0.1522216796875, 0.0670166015625, 0.1146240234375, 0.2017822265625, 0.061737060546875, 0.1072998046875, 0.1700439453125, 0.03262329...
embed
27933941_c1
27933941
haskell
1
1) Status -> (lift $ putStrLn (show mnum)) *> loop mnum Quit -> return () ---------------------------------------------------------------------- -- Chan ---------------------------------------------------------------------- chanAddProducer num ch = forkIO $ chanManyLogs num ch chanManyLogs num ch = replicateM_ num (wri...
1) Status -> (lift $ putStrLn (show mnum)) *> loop mnum Quit -> return () ---------------------------------------------------------------------- -- Chan ---------------------------------------------------------------------- chanAddProducer num ch = forkIO $ chanManyLogs num ch chanManyLogs num ch = replicateM_ num (wri...
[ 0.00408935546875, 0.0159912109375, -0.00174713134765625, 0.01324462890625, 0.0029449462890625, -0.0031585693359375, 0.004791259765625, -0.02734375, 0.006256103515625, -0.033447265625, -0.0294189453125, -0.00177764892578125, 0.016357421875, 0.0118408203125, 0.01068115234375, -0.01428222...
[ 4879, 56504, 33079, 104501, 3650, 3884, 71713, 19, 31374, 347, 2606, 40956, 7644, 18, 30646, 30448, 38572, 4028, 10752, 39367, 56, 13269, 3863, 2203, 100, 92, 17780, 12662, 53, 113972, 143126, 67, 594, 454, 18781, 127008, 7, 13817, 135679, ...
[ 0.1209716796875, 0.23095703125, 0.06341552734375, 0.200927734375, 0.08642578125, 0.105712890625, 0.09375, 0.04376220703125, 0.1141357421875, 0.0197601318359375, 0.20947265625, 0.1751708984375, 0.1998291015625, 0.1268310546875, 0.1553955078125, 0.193603515625, 0.1226806640625, 0.120...
embed
73601279_c0
73601279
haskell
0
Title: Aeson decode rounding by scientific notion Problem title: Aeson decode rounding by scientific notion Tags: yesod, aeson, haskell Problem: Aeson decode rounding by scientific notion thanks for reading this , I've been struggled for a while I'm using Aeson/TH to auto generate the fromJSON/toJSON of a ADT. I'm usin...
Aeson decode rounding by scientific notion Aeson decode rounding by scientific notion yesod aeson haskell Data.Aeson Language.Haskell.TH Data.Aeson.TH Data.Aeson.Types HTTP Aeson Yesod Money USD Float _money Handler Scientific Aeson decode rounding by scientific notion thanks for reading this , I've been struggled for ...
[ -0.01153564453125, 0.01202392578125, 0.0037384033203125, 0.00823974609375, -0.0006866455078125, -0.01361083984375, 0.014404296875, 0.0198974609375, 0.003997802734375, -0.004547119140625, 0.01470947265625, 0.01495361328125, 0.002166748046875, -0.0032196044921875, 0.01068115234375, 0.002...
[ 62, 90, 191, 8, 40899, 68807, 214, 390, 57456, 110, 2422, 23722, 10, 1556, 142508, 11809, 284, 83658, 6495, 7, 23415, 196707, 135913, 32635, 2199, 81669, 19052, 38699, 257, 101, 43260, 10639, 603, 210017, 151994, 12960, 17368, 64, 1809, 1...
[ 0.1124267578125, 0.1463623046875, 0.2076416015625, 0.15283203125, 0.199462890625, 0.213623046875, 0.03936767578125, 0.04461669921875, 0.181884765625, 0.158203125, 0.119140625, 0.182373046875, 0.052886962890625, 0.09912109375, 0.1993408203125, 0.1015625, 0.0260162353515625, 0.111450...
embed
74119546_c0
74119546
haskell
0
Title: `cabal install vector` fails Problem title: `cabal install vector` fails Tags: haskell, cabal Problem: `cabal install vector` fails $ cabal install vector $ ghc --version && cabal --version The Glorious Glasgow Haskell Compilation System, version 8.10.7 cabal-install version 3.8.1.0 compiled using version 3.8.1....
`cabal install vector` fails `cabal install vector` fails haskell cabal non-upgradeable version Resolving Error Could __0 vector-0.13.0.0 __1 primitive-0.6.4.0 __2 base-4.16.3.0 installed-4.16.3.0 base-4.10.0.0 base-4.9.1.0 base-4.9.0.0 base-4.8.2.0 base-4.8.1.0 base-4.8.0.0 base-4.7.0.2 base-4.7.0.1 base-4.7.0.0 base-...
[ 0.0029449462890625, 0.0135498046875, -0.0031585693359375, 0.0108642578125, -0.004486083984375, -0.00616455078125, -0.0247802734375, -0.0240478515625, -0.0198974609375, 0.00186920166015625, -0.0096435546875, -0.028564453125, -0.0146484375, 0.0098876953125, -0.0169677734375, 0.0220947265...
[ 408, 3571, 20600, 173, 18770, 35782, 1556, 142508, 109524, 351, 2037, 44286, 2886, 11389, 132944, 212059, 191147, 2389, 23320, 2681, 99929, 128489, 13, 122887, 151152, 304, 3647, 11565, 2485, 132265, 10179, 156982, 73011, 104867, 180874, 97109, ...
[ 0.1207275390625, 0.19482421875, 0.170166015625, 0.20556640625, 0.2037353515625, 0.1910400390625, 0.1131591796875, 0.2281494140625, 0.257080078125, 0.080322265625, 0.08038330078125, 0.132568359375, 0.060394287109375, 0.1241455078125, 0.1307373046875, 0.1070556640625, 0.0906982421875, ...
embed
79433779_c0
79433779
haskell
0
Title: Is there a way to have multiple instances for bijective functional dependencies? Problem title: Is there a way to have multiple instances for bijective functional dependencies? Tags: haskell, functional-dependencies, types Problem: Is there a way to have multiple instances for bijective functional dependencies? ...
Is there a way to have multiple instances for bijective functional dependencies? Is there a way to have multiple instances for bijective functional dependencies? haskell functional-dependencies types Add1 sub1 NonNegative NonPositive Succ Prev Functional Defined BijectiveFD.hs:13:10 BijectiveFD.hs:14:10 LANGUAGE Functi...
[ -0.00115203857421875, 0.004119873046875, -0.004669189453125, 0.0081787109375, -0.028076171875, 0.0213623046875, 0.01397705078125, -0.0296630859375, 0.0003490447998046875, -0.01031494140625, -0.01019287109375, -0.0035400390625, 0.0089111328125, 0.01708984375, 0.005523681640625, -0.02526...
[ 2071, 2685, 10, 3917, 765, 48716, 110527, 7, 100, 1582, 100034, 123309, 42548, 117538, 47, 1556, 142508, 105254, 13, 52895, 29117, 418, 1614, 3775, 208, 4935, 1832, 10060, 74717, 28670, 10763, 289, 5983, 11995, 98553, 127, 15110, 98064, 465...
[ 0.04400634765625, 0.0653076171875, 0.064697265625, 0.1165771484375, 0.143310546875, 0.279541015625, 0.290771484375, 0.13232421875, 0.055267333984375, 0.139892578125, 0.2095947265625, 0.2095947265625, 0.2066650390625, 0.137939453125, 0.03173828125, 0.1011962890625, 0.2161865234375, ...
embed