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
9874226_c0
9874226
haskell
0
Title: Hugs !! Partial Application Bug Problem title: Hugs !! Partial Application Bug Tags: hugs, haskell Problem: Hugs !! Partial Application Bug Hugs seems to have a problem with several non-enbraced !! in a partial application. While this works fine in GHCi: ([[0]]!!0!!)0 Hugs reports a syntax error for the ) . Is t...
Hugs !! Partial Application Bug Hugs !! Partial Application Bug hugs haskell Hugs Partial Application Bug Hugs !! Partial Application Bug Hugs seems to have a problem with several non-enbraced !! in a partial application. While this works fine in GHCi: Hugs reports a syntax error for the ) . Is this a bug in Hugs? Addi...
[ -0.0126953125, 0.0016937255859375, 0.0022125244140625, 0.007781982421875, -0.00127410888671875, 0.012939453125, 0.004241943359375, -0.021484375, 0.00213623046875, -0.012939453125, 0.0216064453125, -0.024169921875, 0.01544189453125, 0.003570556640625, 0.0167236328125, -0.0185546875, 0...
[ 99926, 7, 6506, 9148, 289, 104921, 57279, 35875, 1556, 142508, 37202, 765, 2967, 678, 40368, 351, 33, 2844, 37534, 23, 2878, 38415, 43240, 5885, 527, 73265, 14, 117729, 10, 6002, 86531, 18499, 100, 70, 1388, 2071, 903, 54608, 62, 59725, ...
[ 0.28076171875, 0.2587890625, 0.1763916015625, 0.203125, 0.120849609375, 0.1990966796875, 0.21240234375, 0.2432861328125, 0.160888671875, 0.25439453125, 0.045928955078125, 0.01019287109375, 0.1461181640625, 0.023101806640625, 0.15087890625, 0.200927734375, 0.1016845703125, 0.1912841...
embed
30421705_c0
30421705
haskell
0
Title: Composed data type haskell Problem title: Composed data type haskell Tags: types, haskell Problem: Composed data type haskell So, I have this function: solve x y = do ... return (newx,y++[1]) where x and newx are [[Int]] and y is [Int]. And with this function, I will return a "value". Now, I would like to know h...
Composed data type haskell Composed data type haskell types haskell Composed Composed data type haskell So, I have this function: where x and newx are [[Int]] and y is [Int]. And with this function, I will return a "value". Now, I would like to know how can I "process" this value in order to extract the 2 components an...
[ -0.01092529296875, -0.00921630859375, 0.002777099609375, 0.0286865234375, -0.01324462890625, 0.0294189453125, -0.006072998046875, -0.00119781494140625, 0.003326416015625, -0.036865234375, -0.00408935546875, -0.01239013671875, 0.01287841796875, 0.006622314453125, -0.0225830078125, -0.00...
[ 3288, 144429, 2053, 10644, 1556, 142508, 52895, 1061, 765, 903, 32354, 7440, 1022, 136, 3525, 425, 621, 4153, 18, 113, 83, 678, 1221, 30646, 27494, 13, 14240, 2806, 1884, 3714, 3642, 831, 63923, 34292, 125663, 70, 116, 82761, 4527, 84797,...
[ 0.14892578125, 0.2257080078125, 0.127197265625, 0.1729736328125, 0.1649169921875, 0.255859375, 0.18408203125, 0.034576416015625, 0.04815673828125, 0.06378173828125, 0.1756591796875, 0.0712890625, 0.09033203125, 0.1177978515625, 0.1673583984375, 0.1337890625, 0.02764892578125, 0.068...
embed
64021952_c2
64021952
haskell
2
did ghc-pkg unregister regex-posix . Code signals: Unable, Configuring, threepenny-gui-0.9.0.0, Preprocessing, Building, Compiling, Foreign.JavaScript.Include, Foreign.JavaScript.Resources, ghc.exe, regex-posix-0.96.0.0, x86_64-windows-ghc-8.8.4, regex-posix-0.96.0.0-11M5Q2Uki3ACYikP2WXOuq, HSregex-posix-0.96.0.0-11M5...
did ghc-pkg unregister regex-posix . Code signals: Unable, Configuring, threepenny-gui-0.9.0.0, Preprocessing, Building, Compiling, Foreign.JavaScript.Include, Foreign.JavaScript.Resources, ghc.exe, regex-posix-0.96.0.0, x86_64-windows-ghc-8.8.4, regex-posix-0.96.0.0-11M5Q2Uki3ACYikP2WXOuq, HSregex-posix-0.96.0.0-11M5...
[ -0.03076171875, 0.009765625, 0.0017547607421875, -0.00005125999450683594, -0.002777099609375, 0.01141357421875, 0.0011749267578125, 0.0059814453125, -0.002471923828125, 0.022216796875, -0.007598876953125, 0.00958251953125, -0.0036163330078125, -0.0228271484375, -0.005096435546875, 0.00...
[ 6777, 31380, 238, 254, 8517, 51, 105199, 6835, 3355, 67890, 425, 28864, 26073, 992, 2886, 59994, 17262, 2278, 299, 17086, 143161, 99929, 1914, 63923, 104919, 15612, 49725, 184293, 156202, 147845, 29786, 60427, 46480, 5, 11648, 15276, 13307, 2...
[ 0.0745849609375, 0.1533203125, 0.175048828125, 0.03582763671875, 0.20703125, 0.13525390625, 0.270263671875, 0.1541748046875, 0.20458984375, 0.1915283203125, 0.16552734375, 0.1683349609375, 0.198486328125, 0.0794677734375, 0.1470947265625, 0.1595458984375, 0.15185546875, 0.151123046...
embed
1983047_c0
1983047
haskell
0
Title: Good Haskell coding standards Problem title: Good Haskell coding standards Tags: haskell, coding-style, conventions Problem: Good Haskell coding standards Could someone provide a link to a good coding standard for Haskell? I've found this and this , but they are far from comprehensive. Not to mention that the Ha...
Good Haskell coding standards Good Haskell coding standards haskell coding-style conventions Good Haskell Good Haskell coding standards Could someone provide a link to a good coding standard for Haskell? I've found this and this , but they are far from comprehensive. Not to mention that the HaskellWiki one includes suc...
[ 0.022705078125, 0.003021240234375, 0.0011444091796875, 0.0045166015625, 0.0037994384765625, 0.01275634765625, 0.013427734375, 0.00104522705078125, -0.002655029296875, -0.017578125, -0.01165771484375, -0.024658203125, 0.00579833984375, 0.00994873046875, -0.004730224609375, -0.0068359375...
[ 18621, 20625, 142508, 552, 6238, 5570, 1556, 40946, 101805, 3126, 4127, 100, 903, 2060, 199083, 147822, 1632, 96853, 14716, 4032, 61112, 678, 517, 49919, 128201, 23, 55923, 42485, 1314, 25737, 35773, 70035, 4734 ]
[ 0.166259765625, 0.147216796875, 0.25244140625, 0.16455078125, 0.1065673828125, 0.2064208984375, 0.1309814453125, 0.133544921875, 0.1221923828125, 0.0748291015625, 0.1461181640625, 0.021209716796875, 0.00018310546875, 0.0142059326171875, 0.017822265625, 0.1715087890625, 0.036499023437...
embed
44885661_c0
44885661
haskell
0
Title: Pattern matching on types Problem title: Pattern matching on types Tags: haskell Problem: Pattern matching on types Is there nice way to write the following "x is of type t" parts? (I suspect I should be using Data.Type.Equality but I'm not sure exactly how) f :: a -> Int g :: b -> Int h :: Typeable t => t -> Ma...
Pattern matching on types Pattern matching on types haskell Pattern Typeable Maybe Just Nothing Pattern matching on types Is there nice way to write the following "x is of type t" parts? (I suspect I should be using Data.Type.Equality but I'm not sure exactly how) Follow up question
[ -0.0027313232421875, 0.00201416015625, -0.0037689208984375, -0.0034637451171875, -0.0064697265625, -0.0137939453125, -0.0218505859375, 0.01373291015625, 0.00023746490478515625, -0.0211181640625, 0.007476806640625, -0.03271484375, 0.000972747802734375, -0.00070953369140625, 0.024047851562...
[ 9876, 22766, 14858, 214, 98, 52895, 1556, 142508, 60457, 2886, 83425, 182747, 2685, 26267, 3917, 47, 33022, 25632, 425, 83, 111, 10644, 808, 63920, 92610, 11809, 196707, 161789, 77168 ]
[ 0.1483154296875, 0.11322021484375, 0.2005615234375, 0.061370849609375, 0.07073974609375, 0.2064208984375, 0.08978271484375, 0.176025390625, 0.164794921875, 0.1461181640625, 0.0494384765625, 0.07159423828125, 0.0021686553955078125, 0.07415771484375, 0.0594482421875, 0.01410675048828125,...
embed
9356442_c0
9356442
haskell
0
Title: How do I create an operator in Haskell? Problem title: How do I create an operator in Haskell? Tags: haskell-platform, haskelldb, haskell Problem: How do I create an operator in Haskell? Making a ternary logic table, and I would like to make my own function for an operator that I'll call <=> . So, for example, I...
How do I create an operator in Haskell? How do I create an operator in Haskell? haskell-platform haskelldb haskell How Haskell Ternary Show Ord How do I create an operator in Haskell? Making a ternary logic table, and I would like to make my own function for an operator that I'll call <=> . So, for example, I want to d...
[ 0.0147705078125, -0.015869140625, 0.0361328125, 0.0162353515625, 0.01416015625, 0.00063323974609375, 0.01806640625, 0.00811767578125, -0.015869140625, -0.00408935546875, -0.017822265625, -0.0208740234375, 0.023681640625, 0.01043701171875, -0.015869140625, 0.00811767578125, 0.00053405...
[ 11249, 87, 28282, 39933, 23, 20625, 142508, 142, 1556, 172121, 48073, 2994, 76, 1294, 17367, 35379, 54, 13676, 31586, 62775, 23180, 1884, 3249, 10002, 32354, 11782, 1369, 3444, 7108, 26785 ]
[ 0.052520751953125, 0.0207977294921875, 0.1829833984375, 0.286376953125, 0.05950927734375, 0.12890625, 0.2340087890625, 0.04803466796875, 0.091796875, 0.0726318359375, 0.1002197265625, 0.1405029296875, 0.10223388671875, 0.1033935546875, 0.138916015625, 0.159423828125, 0.00827026367187...
embed
59568371_c1
59568371
haskell
1
[] aa text dictionary = findInList ((subAa text dictionary) ++ (aa (tail text) dictionary)) subAa text [] = [] subAa [] dictionary = [] subAa text dictionary = if (head text) == fst (head dictionary) then snd (head dictionary) : subAa text(tail dictionary) else subAa text (tail dictionary) Code signals: dictionary, Bo...
[] aa text dictionary = findInList ((subAa text dictionary) ++ (aa (tail text) dictionary)) subAa text [] = [] subAa [] dictionary = [] subAa text dictionary = if (head text) == fst (head dictionary) then snd (head dictionary) : subAa text(tail dictionary) else subAa text (tail dictionary) Code signals: dictionary, Bo...
[ 0.0045166015625, -0.004852294921875, 0.0218505859375, 0.0159912109375, -0.004913330078125, -0.01092529296875, 0.003509521484375, 0.0238037109375, 0.0184326171875, 0.00439453125, 0.0126953125, 0.02197265625, 0.0023345947265625, -0.007476806640625, 0.040771484375, -0.007049560546875, 0...
[ 378, 268, 10, 11, 7986, 45, 10763, 6635, 2203, 7413, 4153, 154663, 60494, 22144, 284, 37223, 46741, 1614, 2174, 31251, 69112, 1238, 271, 91, 2208, 37076, 28864, 26073, 7, 2460, 929, 10336, 82825, 418, 304, 4, 1022, 113, 4778, 3218, 1004...
[ 0.0135498046875, 0.002899169921875, 0.141357421875, 0.1912841796875, 0.2476806640625, 0.1173095703125, 0.181884765625, 0.1326904296875, 0.095947265625, 0.1717529296875, 0.1812744140625, 0.2222900390625, 0.048492431640625, 0.2320556640625, 0.1829833984375, 0.1387939453125, 0.210083007...
embed
14917407_c0
14917407
haskell
0
Title: Haskell and Regex - Why doesn&#x27;t my function eliminateRedundantSpaces work? Problem title: Haskell and Regex - Why doesn&#x27;t my function eliminateRedundantSpaces work? Tags: regex, haskell Problem: Haskell and Regex - Why doesn't my function eliminateRedundantSpaces work? Haskell and Regex - Why doesn't m...
Haskell and Regex - Why doesn&#x27;t my function eliminateRedundantSpaces work? Haskell and Regex - Why doesn&#x27;t my function eliminateRedundantSpaces work? regex haskell Text.Regex Haskell Regex Why Haskell and Regex - Why doesn't my function eliminateRedundantSpaces work? Haskell and Regex - Why doesn't my functio...
[ -0.03369140625, 0.0062255859375, 0.005889892578125, 0.024658203125, 0.011474609375, 0.0164794921875, -0.005218505859375, 0.0087890625, 0.00150299072265625, 0.01080322265625, -0.000812530517578125, 0.0177001953125, -0.003692626953125, -0.01275634765625, -0.00144195556640625, 0.017333984...
[ 20625, 142508, 136, 11678, 3355, 44084, 22027, 3768, 18, 32354, 27169, 67, 80852, 35405, 141012, 4488, 7, 6835, 1556, 24129, 54601 ]
[ 0.0882568359375, 0.2061767578125, 0.0845947265625, 0.0902099609375, 0.1834716796875, 0.072998046875, 0.05731201171875, 0.028778076171875, 0.056884765625, 0.1490478515625, 0.143798828125, 0.04248046875, 0.07183837890625, 0.1717529296875, 0.197509765625, 0.0958251953125, 0.003570556640...
embed
15510916_c0
15510916
haskell
0
Title: How to have multiple infinite ranges in list comprehensions? Problem title: How to have multiple infinite ranges in list comprehensions? Tags: haskell Problem: How to have multiple infinite ranges in list comprehensions? In haskell I have a list comprehension like this: sq = [(x,y,z) | x <- v, y <- v, z <- v, x*...
How to have multiple infinite ranges in list comprehensions? How to have multiple infinite ranges in list comprehensions? haskell How How to have multiple infinite ranges in list comprehensions? In haskell I have a list comprehension like this: However when I try take 10 sq , it just freezes... Is there a way to handle...
[ -0.019775390625, -0.0078125, 0.000850677490234375, -0.002532958984375, -0.0016632080078125, -0.01092529296875, 0.007537841796875, 0.0026702880859375, 0.01141357421875, -0.041015625, 0.00518798828125, -0.00830078125, 0.03564453125, 0.0045166015625, -0.0245361328125, 0.022216796875, 0....
[ 11249, 47, 765, 48716, 54241, 13, 37457, 7, 23, 5303, 46683, 3220, 63239, 1556, 142508, 6889, 9790, 5646, 209, 91, 864, 4092, 13105, 3917, 34831 ]
[ 0.0802001953125, 0.05377197265625, 0.116455078125, 0.2408447265625, 0.1680908203125, 0.120849609375, 0.2347412109375, 0.09228515625, 0.033843994140625, 0.1947021484375, 0.115478515625, 0.13720703125, 0.0732421875, 0.1243896484375, 0.2161865234375, 0.01776123046875, 0.075927734375, ...
embed
32369805_c1
32369805
haskell
1
be related to this particular version (git version 2.5.1.windows.1). My operating system is Windows 10 64-bit. At first I thought that this issue was related to 64-bit Git Bash, because this is the first time I've seen a 64-bit Git Bash on Windows, but I've also tried installing the 32-bit Git Bash, and it exhibits th...
be related to this particular version (git version 2.5.1.windows.1). My operating system is Windows 10 64-bit. At first I thought that this issue was related to 64-bit Git Bash, because this is the first time I've seen a 64-bit Git Bash on Windows, but I've also tried installing the 32-bit Git Bash, and it exhibits th...
[ -0.0012664794921875, 0.006317138671875, 0.003509521484375, 0.00122833251953125, -0.0130615234375, 0.0032196044921875, 0.01141357421875, 0.0010223388671875, 0.00141143798828125, 0.004547119140625, -0.003662109375, -0.0194091796875, -0.0118408203125, 0.0036468505859375, 0.01373291015625, ...
[ 186, 62548, 47, 903, 17311, 11389, 15769, 27804, 22892, 229792, 17727, 2646, 172852, 5426, 83, 3773, 209, 7911, 3137, 17569, 31089, 527, 217, 144334, 5117, 51592, 98, 37842, 20600, 2789, 442, 80788, 24763, 5701, 224833, 7722, 3249, 41877, 1...
[ 0.06756591796875, 0.145263671875, 0.025634765625, 0.07257080078125, 0.072265625, 0.1400146484375, 0.252197265625, 0.239990234375, 0.115966796875, 0.1129150390625, 0.085205078125, 0.012115478515625, 0.0960693359375, 0.04656982421875, 0.045135498046875, 0.16943359375, 0.212158203125, ...
embed
5638936_c3
5638936
haskell
3
.0.2, HsFFI.h:68, template-hsc.h:4, Text, Regex, PCRE, Wrap_hsc_make.c:1, float.h:8:24, float.h, template-hsc.h:9, stdarg.h:4:25, stdarg.h, Wrap_hsc_make.c, Wrap_hsc_make.o, i686, m32, Developer, SDKs, MacOSX10.5.sdk, D__GLASGOW_HASKELL__, Ddarwin_BUILD_OS, Ddarwin_HOST_OS, Di386_BUILD_ARCH, Di386_HOST_ARCH, DHAVE_PCRE...
.0.2, HsFFI.h:68, template-hsc.h:4, Text, Regex, PCRE, Wrap_hsc_make.c:1, float.h:8:24, float.h, template-hsc.h:9, stdarg.h:4:25, stdarg.h, Wrap_hsc_make.c, Wrap_hsc_make.o, i686, m32, Developer, SDKs, MacOSX10.5.sdk, D__GLASGOW_HASKELL__, Ddarwin_BUILD_OS, Ddarwin_HOST_OS, Di386_BUILD_ARCH, Di386_HOST_ARCH, DHAVE_PCRE...
[ 0.0013427734375, 0.0108642578125, -0.005645751953125, -0.0035247802734375, 0.0184326171875, 0.0014495849609375, 0.006805419921875, -0.00787353515625, -0.009521484375, 0.005096435546875, -0.01104736328125, -0.02490234375, 0.004058837890625, -0.01470947265625, 0.0216064453125, 0.01281738...
[ 6, 5, 133684, 572, 30110, 568, 127, 16028, 110934, 10382, 617, 24129, 4, 11678, 3355, 6107, 11766, 13631, 55898, 238, 19721, 21917, 257, 25732, 1126, 6138, 1506, 177, 21224, 31, 17, 178475, 347, 6460, 152774, 159, 45461, 4727, 7285, 1542,...
[ 0.01873779296875, 0.1015625, 0.2489013671875, 0.0518798828125, 0.10986328125, 0.0931396484375, 0.0784912109375, 0.148193359375, 0.2105712890625, 0.10357666015625, 0.0650634765625, 0.1510009765625, 0.016143798828125, 0.085693359375, 0.1297607421875, 0.054901123046875, 0.1473388671875,...
embed
14595934_c0
14595934
haskell
0
Title: Outputting Haskell GHCi command results to a txt file Problem title: Outputting Haskell GHCi command results to a txt file Tags: haskell Problem: Outputting Haskell GHCi command results to a txt file I am new to Haskell. I am having a really difficult time outputting command results from GHCi to a file. I was wo...
Outputting Haskell GHCi command results to a txt file Outputting Haskell GHCi command results to a txt file haskell Outputting Haskell GHCi Outputting Haskell GHCi command results to a txt file I am new to Haskell. I am having a really difficult time outputting command results from GHCi to a file. I was wondering if so...
[ 0.02783203125, -0.0022430419921875, -0.0025634765625, 0.021484375, 0.004547119140625, 0.0106201171875, 0.003753662109375, -0.007476806640625, -0.016845703125, -0.000431060791015625, -0.0074462890625, -0.03515625, 0.005218505859375, 0.0101318359375, -0.004425048828125, 0.006378173828125...
[ 13538, 7077, 1916, 20625, 142508, 527, 73265, 14, 75101, 50339, 47, 124326, 11435, 1556, 3525, 19441, 6183, 34844, 1733, 140992, 1295, 8781, 187136, 3642, 54, 27781, 96704 ]
[ 0.107177734375, 0.08441162109375, 0.0291748046875, 0.11669921875, 0.2069091796875, 0.083740234375, 0.1343994140625, 0.199462890625, 0.212158203125, 0.1483154296875, 0.114501953125, 0.222900390625, 0.158447265625, 0.104248046875, 0.040618896484375, 0.005035400390625, 0.00250244140625,...
embed
73310450_c0
73310450
haskell
0
Title: foldl versus foldr for merge operator Problem title: foldl versus foldr for merge operator Tags: combinators, lazy-evaluation, haskell, fold Problem: foldl versus foldr for merge operator Is the following statement equivalent? foldr (++) [ ] = foldl (++) [ ] I know that foldr (+) 0 = fold (+) 0 is equivalent and...
foldl versus foldr for merge operator foldl versus foldr for merge operator combinators lazy-evaluation haskell fold foldl versus foldr for merge operator Is the following statement equivalent? I know that foldr (+) 0 = fold (+) 0 is equivalent and for the operator (-) it's not, but how about the (++) operator ? I thin...
[ -0.012939453125, -0.0031890869140625, 0.0169677734375, 0.0003528594970703125, -0.0057373046875, 0.008544921875, -0.010986328125, 0.0022430419921875, -0.006988525390625, -0.003936767578125, 0.004180908203125, -0.01373291015625, 0.0216064453125, -0.003143310546875, 0.0006103515625, -0.01...
[ 18344, 20469, 119475, 7569, 100, 42564, 39933, 22321, 22230, 21, 3285, 159258, 1556, 142508, 42822, 2071, 25632, 63805, 183234, 22183, 757, 2203, 83, 9, 959, 37223, 5351, 16750, 5303, 5701, 10941, 1284, 15700, 12989, 29191 ]
[ 0.1492919921875, 0.2398681640625, 0.1566162109375, 0.2056884765625, 0.0295562744140625, 0.184326171875, 0.204833984375, 0.11669921875, 0.0030517578125, 0.05010986328125, 0.1383056640625, 0.10467529296875, 0.07440185546875, 0.186279296875, 0.2012939453125, 0.00836181640625, 0.04800415...
embed
24110410_c2
24110410
haskell
2
HNil hUntagTF _ = HNil instance TagUntagTF xs => TagUntagTF (x ': xs) where hTagTF (HCons x xs) = Tagged x `HCons` hTagTF xs hUntagTF (HCons Code signals: functional, Type, Tagged, LANGUAGE, DataKinds, FlexibleContexts, FlexibleInstances, FunctionalDependencies, GADTs, MultiParamTypeClasses, TypeFamilies, TypeOperator...
HNil hUntagTF _ = HNil instance TagUntagTF xs => TagUntagTF (x ': xs) where hTagTF (HCons x xs) = Tagged x `HCons` hTagTF xs hUntagTF (HCons Code signals: functional, Type, Tagged, LANGUAGE, DataKinds, FlexibleContexts, FlexibleInstances, FunctionalDependencies, GADTs, MultiParamTypeClasses, TypeFamilies, TypeOperator...
[ 0.0152587890625, 0.01513671875, 0.01458740234375, -0.0238037109375, 0.00933837890625, -0.0299072265625, 0.00002002716064453125, -0.03125, 0.01287841796875, 0.0118408203125, -0.0196533203125, -0.033203125, -0.00341796875, 0.026123046875, -0.0101318359375, -0.033203125, 0.0098266601562...
[ 79059, 379, 1096, 14256, 6936, 30992, 101, 2203, 110527, 4837, 1022, 7, 44357, 425, 242, 12, 16, 7440, 66448, 73265, 5245, 57261, 28864, 26073, 123309, 60457, 3358, 98064, 75930, 11809, 7250, 180842, 2661, 22829, 116071, 28670, 4657, 26885, ...
[ 0.1484375, 0.237548828125, 0.1326904296875, 0.1614990234375, 0.2064208984375, 0.271484375, 0.0770263671875, 0.08599853515625, 0.259033203125, 0.158203125, 0.10003662109375, 0.04296875, 0.06500244140625, 0.06610107421875, 0.0380859375, 0.029937744140625, 0.0191497802734375, 0.007415...
embed
38636436_c0
38636436
haskell
0
Title: How to uninstall a Haskell package installed with stack? Problem title: How to uninstall a Haskell package installed with stack? Tags: haskell, haskell-stack Problem: How to uninstall a Haskell package installed with stack? How can I uninstall a Haskell package installed globally with stack tool? stack --help sh...
How to uninstall a Haskell package installed with stack? How to uninstall a Haskell package installed with stack? haskell haskell-stack How Haskell DEPRECATED How to uninstall a Haskell package installed with stack? How can I uninstall a Haskell package installed globally with stack tool? stack --help shows that uninst...
[ -0.0003070831298828125, 0.0089111328125, 0.010009765625, 0.0208740234375, -0.004425048828125, 0.01336669921875, -0.0157470703125, -0.003173828125, -0.0201416015625, 0.0216064453125, -0.00128936767578125, -0.01531982421875, 0.007232666015625, 0.003265380859375, -0.0169677734375, 0.01342...
[ 11249, 47, 51, 80383, 20625, 142508, 98169, 20600, 678, 177261, 297, 1556, 590, 2594, 1514, 94632, 13133, 66458, 831, 7964, 55516, 4210, 73866, 45831, 75101, 8, 4692, 4460 ]
[ 0.045135498046875, 0.048095703125, 0.1148681640625, 0.23779296875, 0.1590576171875, 0.26904296875, 0.19677734375, 0.142333984375, 0.107177734375, 0.2259521484375, 0.00244140625, 0.1234130859375, 0.1368408203125, 0.13671875, 0.084716796875, 0.149658203125, 0.09356689453125, 0.015090...
embed
39544075_c0
39544075
haskell
0
Title: Why haskell seq function makes first argument to WHNF? Problem title: Why haskell seq function makes first argument to WHNF? Tags: haskell, seq Problem: Why haskell seq function makes first argument to WHNF? I thinks that seq is hard to understand because it makes first argument to WHNF. If seq makes first argum...
Why haskell seq function makes first argument to WHNF? Why haskell seq function makes first argument to WHNF? haskell seq Why WHNF Why haskell seq function makes first argument to WHNF? I thinks that seq is hard to understand because it makes first argument to WHNF. If seq makes first argument to normal form, it will b...
[ 0.008056640625, 0.00714111328125, 0.005523681640625, 0.031982421875, 0.01275634765625, 0.004302978515625, -0.002410888671875, 0.009521484375, 0.00665283203125, 0.0034027099609375, -0.01544189453125, 0.0032196044921875, -0.00055694580078125, 0.0235595703125, -0.00360107421875, -0.019897...
[ 44084, 1556, 142508, 40, 864, 32354, 30482, 5117, 10750, 47, 601, 841, 73493, 7941, 28219, 3638, 3173, 23468, 68073, 17368, 645, 175352, 55076 ]
[ 0.101318359375, 0.119873046875, 0.2266845703125, 0.135498046875, 0.221435546875, 0.1741943359375, 0.053955078125, 0.141357421875, 0.232421875, 0.05963134765625, 0.0841064453125, 0.1156005859375, 0.23779296875, 0.078857421875, 0.138916015625, 0.0782470703125, 0.0880126953125, 0.0290...
embed
55013159_c0
55013159
haskell
0
Title: How do you sum the individual elements of a pair in a list? Problem title: How do you sum the individual elements of a pair in a list? Tags: haskell, pattern-matching Problem: How do you sum the individual elements of a pair in a list? Im trying to take the first and second element of the pair from a list so the...
How do you sum the individual elements of a pair in a list? How do you sum the individual elements of a pair in a list? haskell pattern-matching How Double How do you sum the individual elements of a pair in a list? Im trying to take the first and second element of the pair from a list so they can be summed. Here is my...
[ -0.00567626953125, 0.0022125244140625, 0.008544921875, 0.0157470703125, -0.00384521484375, 0.0341796875, -0.02197265625, 0.00482177734375, 0.01019287109375, -0.01336669921875, 0.01904296875, -0.0113525390625, 0.003173828125, -0.017822265625, -0.00142669677734375, -0.00848388671875, -...
[ 11249, 54, 398, 10554, 70, 11651, 80854, 111, 80836, 23, 5303, 10, 1556, 142508, 103510, 98753, 214, 107172, 31577, 5646, 5117, 136, 17932, 12830, 1295, 4806, 18151, 68772, 18499 ]
[ 0.1295166015625, 0.07794189453125, 0.052001953125, 0.25341796875, 0.0248260498046875, 0.19140625, 0.201904296875, 0.0335693359375, 0.2181396484375, 0.0628662109375, 0.2154541015625, 0.008453369140625, 0.1090087890625, 0.2010498046875, 0.1956787109375, 0.1810302734375, 0.0272674560546...
embed
52496149_c2
52496149
haskell
2
_title, Amplitude, Modulation, layout_plots, Double, Renderable, G.Window, G.DrawingArea, G.windowNew, G.drawingAreaNew, G.widgetSetSizeRequest, G.onExpose, G.set, G.containerChild, Thought, UART, Serialport, G.widgetGetDrawWindow, G.widgetGetSize, G.regionRectangle, GE.Rectangle, G.drawWindowBeginPaintRegion, G.render...
_title, Amplitude, Modulation, layout_plots, Double, Renderable, G.Window, G.DrawingArea, G.windowNew, G.drawingAreaNew, G.widgetSetSizeRequest, G.onExpose, G.set, G.containerChild, Thought, UART, Serialport, G.widgetGetDrawWindow, G.widgetGetSize, G.regionRectangle, GE.Rectangle, G.drawWindowBeginPaintRegion, G.render...
[ 0.013916015625, 0.01446533203125, -0.00421142578125, 0.000827789306640625, 0.0162353515625, 0.000179290771484375, -0.002655029296875, -0.0189208984375, 0.025634765625, -0.0135498046875, 0.01300048828125, -0.033935546875, -0.00537109375, 0.005340576171875, -0.00531005859375, -0.01239013...
[ 101, 5440, 4, 169799, 3506, 13, 63014, 2320, 108802, 454, 105710, 7, 107172, 63137, 56, 2886, 527, 5, 92049, 24293, 219, 14775, 1283, 9494, 46568, 86905, 32306, 3794, 127167, 75616, 191, 19279, 78381, 3509, 98102, 20037, 102656, 145733, 345...
[ 0.0869140625, 0.208984375, 0.04119873046875, 0.2169189453125, 0.1617431640625, 0.04730224609375, 0.2432861328125, 0.0894775390625, 0.255615234375, 0.0269622802734375, 0.2174072265625, 0.0345458984375, 0.1661376953125, 0.1710205078125, 0.116943359375, 0.1605224609375, 0.1514892578125,...
embed
52871593_c0
52871593
haskell
0
Title: Limiting the depth of recursion Haskell Problem title: Limiting the depth of recursion Haskell Tags: haskell, recursion Problem: Limiting the depth of recursion Haskell How can I limit this recursion function, so it will just stop recalling after maximum 23 times? However, I wouldn't like to modify the definitio...
Limiting the depth of recursion Haskell Limiting the depth of recursion Haskell haskell recursion Limiting Haskell Double Limiting the depth of recursion Haskell How can I limit this recursion function, so it will just stop recalling after maximum 23 times? However, I wouldn't like to modify the definition of the funct...
[ -0.01055908203125, 0.01171875, 0.0035552978515625, 0.0064697265625, 0.017822265625, 0.030517578125, -0.0198974609375, 0.000759124755859375, 0.005950927734375, -0.01080322265625, 0.0228271484375, -0.029541015625, 0.00982666015625, -0.01287841796875, 0.036376953125, -0.0001678466796875, ...
[ 125177, 214, 168867, 111, 195625, 1830, 20625, 142508, 1556, 107172, 831, 17475, 903, 32354, 221, 1221, 1660, 7279, 189232, 7103, 38132, 1105, 20028, 68746, 1884, 2811, 80934, 2394, 420 ]
[ 0.234619140625, 0.1044921875, 0.2410888671875, 0.05108642578125, 0.235595703125, 0.1246337890625, 0.1693115234375, 0.254150390625, 0.1375732421875, 0.1129150390625, 0.0496826171875, 0.252197265625, 0.06439208984375, 0.1741943359375, 0.0379638671875, 0.05902099609375, 0.07373046875, ...
embed
7615310_c1
7615310
haskell
1
1 _ <- setVideoMode w h 32 [OpenGL, Resizable] matrixMode $= Projection loadIdentity perspective 45 (fromIntegral w / fromIntegral h) 0.1 10500.0 matrixMode $= Modelview 0 loadIdentity shadeModel $= Smooth hint PerspectiveCorrection $= Nicest depthFunc $= Just Lequal clearDepth $= 1.0 g Code signals: Haskell, OpenGL, U...
1 _ <- setVideoMode w h 32 [OpenGL, Resizable] matrixMode $= Projection loadIdentity perspective 45 (fromIntegral w / fromIntegral h) 0.1 10500.0 matrixMode $= Modelview 0 loadIdentity shadeModel $= Smooth hint PerspectiveCorrection $= Nicest depthFunc $= Just Lequal clearDepth $= 1.0 g Code signals: Haskell, OpenGL, U...
[ 0.00008296966552734375, 0.01544189453125, 0.01348876953125, -0.0107421875, 0.0157470703125, -0.034912109375, -0.0084228515625, -0.019775390625, 0.00274658203125, 0.0081787109375, 0.0021514892578125, -0.035888671875, 0.0125732421875, -0.03271484375, -0.031982421875, 0.006622314453125, ...
[ 106, 5423, 25073, 9083, 112, 148, 1096, 2789, 103264, 78703, 853, 4900, 2886, 50944, 425, 1369, 27331, 1830, 72367, 37379, 2481, 80280, 2678, 161063, 67, 5739, 248, 1295, 107754, 2525, 99929, 13293, 22751, 757, 9638, 140290, 57549, 29827, 5...
[ 0.01385498046875, 0.1688232421875, 0.2271728515625, 0.21875, 0.06842041015625, 0.1019287109375, 0.145751953125, 0.2198486328125, 0.12939453125, 0.2379150390625, 0.060455322265625, 0.172607421875, 0.171142578125, 0.181640625, 0.08807373046875, 0.00457763671875, 0.163330078125, 0.033...
embed
43696030_c0
43696030
haskell
0
Title: Access return value Problem title: Access return value Tags: haskell Problem: Access return value Let's say I have this function: functionName :: notimportant => a -> ([a]) I would like to recursively call this function and at each call to modify/update the return (the 2 elements from the tuple). The problem is ...
Access return value Access return value haskell Access Access return value Let's say I have this function: I would like to recursively call this function and at each call to modify/update the return (the 2 elements from the tuple). The problem is that I do not know how to pattern match the tuple in order to add at each...
[ -0.000873565673828125, 0.005523681640625, 0.00628662109375, 0.0147705078125, 0.0159912109375, -0.0026702880859375, -0.0218505859375, -0.004119873046875, 0.0224609375, -0.007659912109375, 0.02880859375, -0.00860595703125, -0.005340576171875, 0.00147247314453125, 0.0147705078125, -0.0124...
[ 40266, 30646, 34292, 1556, 142508, 5154, 765, 903, 32354, 2806, 1884, 195625, 5844, 11782, 99, 12638, 2811, 40383, 64, 117008, 116, 80854, 1295, 370, 8705, 2967, 959, 3714, 3642, 103510, 14858, 15190, 5303, 5117, 171859, 176377 ]
[ 0.251708984375, 0.25732421875, 0.197509765625, 0.1488037109375, 0.2110595703125, 0.00909423828125, 0.012969970703125, 0.0234832763671875, 0.1705322265625, 0.026031494140625, 0.0823974609375, 0.158447265625, 0.1036376953125, 0.148681640625, 0.04278564453125, 0.0677490234375, 0.1048583...
embed
65798587_c0
65798587
haskell
0
Title: RecordWildCards for non record functions Problem title: RecordWildCards for non record functions Tags: haskell Problem: RecordWildCards for non record functions Lets consider following record datatype D and function bar : data D = D { foo :: Int } bar :: D -> Int Is it somehow possible (for example by language e...
RecordWildCards for non record functions RecordWildCards for non record functions haskell RecordWildCards RecordWildCards for non record functions Lets consider following record datatype D and function bar : Is it somehow possible (for example by language extension like: RecordWildCards ) to simplify usage of bar like ...
[ -0.005401611328125, -0.00811767578125, 0.01251220703125, 0.0069580078125, 0.0106201171875, -0.004730224609375, -0.01007080078125, -0.00396728515625, -0.006317138671875, -0.03271484375, 0.006439208984375, 0.0026702880859375, 0.00628662109375, 0.0030975341796875, 0.011962890625, -0.03735...
[ 54877, 152445, 71, 156119, 100, 351, 17164, 32354, 1556, 142508, 2053, 50986, 391, 1909, 209303, 7722, 46876, 111938, 112892, 18929, 127689, 1884, 5775, 31, 83 ]
[ 0.1754150390625, 0.1795654296875, 0.08404541015625, 0.25439453125, 0.03765869140625, 0.1395263671875, 0.1845703125, 0.1690673828125, 0.10943603515625, 0.231201171875, 0.06488037109375, 0.191650390625, 0.1136474609375, 0.2039794921875, 0.038421630859375, 0.114501953125, 0.151123046875...
embed
66893497_c0
66893497
haskell
0
Title: How to get the parent(s) of a PID in Haskell? Problem title: How to get the parent(s) of a PID in Haskell? Tags: haskell Problem: How to get the parent(s) of a PID in Haskell? Haskell provides -- getProcessID calls getppid to obtain the ProcessID for the parent of the current process. getParentProcessID :: IO Pr...
How to get the parent(s) of a PID in Haskell? How to get the parent(s) of a PID in Haskell? haskell How PID Haskell ProcessID How to get the parent(s) of a PID in Haskell? Haskell provides but given an external pid, is there an idiomatic way to obtain the parent(s) of this pid , perhaps returning a list of them?
[ -0.0032196044921875, 0.0079345703125, -0.0206298828125, 0.012939453125, -0.0142822265625, -0.0009613037109375, 0.00823974609375, -0.0196533203125, -0.01141357421875, -0.051513671875, -0.000568389892578125, 0.0048828125, -0.022216796875, 0.038330078125, -0.0006103515625, 0.0044555664062...
[ 11249, 2046, 49129, 7, 436, 7146, 23, 20625, 142508, 47, 70, 132, 111, 1556, 123996, 87344, 173591, 45226, 49666, 3917, 113054, 903, 30646, 5303 ]
[ 0.070556640625, 0.1180419921875, 0.23046875, 0.0841064453125, 0.1693115234375, 0.2431640625, 0.056854248046875, 0.1414794921875, 0.2374267578125, 0.034149169921875, 0.04083251953125, 0.032012939453125, 0.04095458984375, 0.113037109375, 0.1427001953125, 0.06982421875, 0.1005859375, ...
embed
14298930_c0
14298930
haskell
0
Title: Why does (sum $ takeWhile (&lt;10000000) [1..]) use so much memory? Problem title: Why does (sum $ takeWhile (&lt;10000000) [1..]) use so much memory? Tags: haskell Problem: Why does (sum $ takeWhile (<10000000) [1..]) use so much memory? This is what I get in the console: ghci> sum $ takeWhile (<10000000) [1..]...
Why does (sum $ takeWhile (&lt;10000000) [1..]) use so much memory? Why does (sum $ takeWhile (&lt;10000000) [1..]) use so much memory? haskell Why Why does (sum $ takeWhile (<10000000) [1..]) use so much memory? This is what I get in the console: That's over 2GB! I would imagine that sum can discard whatever it has al...
[ -0.005096435546875, 0.01220703125, -0.0007476806640625, 0.01129150390625, -0.0078125, 0.01104736328125, -0.00836181640625, 0.0062255859375, 0.0184326171875, -0.02099609375, 0.0245361328125, 0.003326416015625, -0.00274658203125, -0.0019989013671875, 0.00909423828125, 0.0167236328125, ...
[ 44084, 14602, 11832, 3650, 5646, 1456, 979, 133, 1277, 963, 197094, 68252, 5, 4527, 221, 5045, 98323, 15, 1556, 142508, 16093, 2046, 130250, 9925, 645, 116, 8359, 38, 2806, 28987, 10554, 831, 17116, 5861, 89778, 21771, 4806, 33022, 903 ]
[ 0.15478515625, 0.0675048828125, 0.2464599609375, 0.0899658203125, 0.203125, 0.07269287109375, 0.1826171875, 0.1859130859375, 0.039764404296875, 0.1094970703125, 0.21533203125, 0.1126708984375, 0.0654296875, 0.1553955078125, 0.1319580078125, 0.1348876953125, 0.2218017578125, 0.02786...
embed
51748308_c0
51748308
haskell
0
Title: Tying the knot in cyclic records Problem title: Tying the knot in cyclic records Tags: haskell, cyclic-dependency Problem: Tying the knot in cyclic records What is the best way to rewrite the following so it compiles? Both data-type depends on each other. {-# LANGUAGE OverloadedStrings, DuplicateRecordFields #-}...
Tying the knot in cyclic records Tying the knot in cyclic records haskell cyclic-dependency Tying LANGUAGE OverloadedStrings DuplicateRecordFields Syn Neu Double Tying the knot in cyclic records What is the best way to rewrite the following so it compiles? Both data-type depends on each other.
[ -0.00110626220703125, 0.005767822265625, -0.0004634857177734375, 0.0218505859375, -0.0005950927734375, 0.004425048828125, -0.0126953125, 0.00872802734375, -0.00182342529296875, -0.0390625, -0.0164794921875, -0.0093994140625, -0.00836181640625, 0.0260009765625, 0.016357421875, 0.0005455...
[ 8064, 214, 70, 472, 10869, 23, 187830, 238, 115923, 1556, 142508, 105254, 33, 3358, 98064, 9578, 63033, 71713, 786, 52721, 32271, 19388, 19010, 11059, 107172, 6, 2965, 3917, 456, 434, 18781, 25632, 221, 9969, 1340, 149766, 2053, 50986, 5656...
[ 0.1927490234375, 0.06231689453125, 0.05712890625, 0.0408935546875, 0.186767578125, 0.030975341796875, 0.220458984375, 0.1019287109375, 0.216064453125, 0.1064453125, 0.2205810546875, 0.1553955078125, 0.024078369140625, 0.005645751953125, 0.117431640625, 0.06744384765625, 0.12341308593...
embed
819620_c0
819620
haskell
0
Title: How to check if a string is smaller than another, in Haskell? Problem title: How to check if a string is smaller than another, in Haskell? Tags: haskell, string, compare Problem: How to check if a string is smaller than another, in Haskell? I have two strings given as arguments to a Haskell function. s1 is small...
How to check if a string is smaller than another, in Haskell? How to check if a string is smaller than another, in Haskell? haskell string compare How Haskell How to check if a string is smaller than another, in Haskell? I have two strings given as arguments to a Haskell function. s1 is smaller than s2 if s1 is shorter...
[ -0.000293731689453125, 0.00188446044921875, -0.000823974609375, 0.0264892578125, -0.01080322265625, 0.003509521484375, 0.00665283203125, -0.028076171875, 0.0186767578125, 0.02587890625, 0.01220703125, -0.00323486328125, 0.00165557861328125, -0.00982666015625, 0.004852294921875, -0.0056...
[ 11249, 12765, 2174, 79315, 83, 164917, 3501, 15700, 20625, 142508, 47, 23, 1556, 69101, 6626, 34475, 10750, 32354, 91, 418, 304, 16610, 56, 5701, 140909, 136, 73140, 48461, 29479 ]
[ 0.050994873046875, 0.20166015625, 0.0953369140625, 0.251953125, 0.107177734375, 0.235107421875, 0.1148681640625, 0.1103515625, 0.126708984375, 0.2349853515625, 0.04443359375, 0.05413818359375, 0.1102294921875, 0.161865234375, 0.058807373046875, 0.00360107421875, 0.1287841796875, 0....
embed
9032295_c0
9032295
haskell
0
Title: laziness and function composition (haskell, erlang) Problem title: laziness and function composition (haskell, erlang) Tags: erlang, haskell, functional-programming, lazy-evaluation Problem: laziness and function composition (haskell, erlang) Can someone please explain or give some resources on how function comp...
laziness and function composition (haskell, erlang) laziness and function composition (haskell, erlang) erlang haskell functional-programming lazy-evaluation laziness and function composition (haskell, erlang) Can someone please explain or give some resources on how function composition works in relation to laziness? F...
[ -0.0091552734375, -0.005279541015625, -0.0014801025390625, 0.0006256103515625, -0.0059814453125, 0.008056640625, 0.025634765625, 0.002349853515625, 0.01007080078125, -0.01806640625, 0.01458740234375, 0.007659912109375, 0.0194091796875, 0.01007080078125, -0.00225830078125, 0.00958251953...
[ 21, 708, 7432, 136, 32354, 166577, 10557, 142508, 72, 3066, 1556, 123309, 28966, 3285, 159258, 73342, 65514, 3642, 43240, 41911, 46312, 64, 1369, 1456, 22288, 47, 1062, 8079, 3650, 20314, 11, 47416, 4488, 20625, 154186, 17365, 959 ]
[ 0.185791015625, 0.208984375, 0.1446533203125, 0.03839111328125, 0.19580078125, 0.2423095703125, 0.08319091796875, 0.2490234375, 0.08453369140625, 0.2281494140625, 0.1026611328125, 0.1102294921875, 0.0948486328125, 0.2093505859375, 0.1248779296875, 0.0819091796875, 0.0760498046875, ...
embed
9067545_c0
9067545
haskell
0
Title: What is supercompilation? Problem title: What is supercompilation? Tags: haskell, compilation, compiler-optimization Problem: What is supercompilation? Short and sweet: I've seen several sources talking about "supercompilation". But I have yet to find one single document anywhere on the face of the Internet whic...
What is supercompilation? What is supercompilation? haskell compilation compiler-optimization What What is supercompilation? Short and sweet: I've seen several sources talking about "supercompilation". But I have yet to find one single document anywhere on the face of the Internet which describes what this is . Presuma...
[ -0.0146484375, -0.0069580078125, 0.032958984375, 0.0216064453125, -0.0079345703125, 0.0169677734375, -0.002716064453125, -0.00421142578125, -0.0133056640625, 0.00811767578125, -0.01611328125, -0.002105712890625, -0.01300048828125, 0.027099609375, -0.01104736328125, -0.0089111328125, ...
[ 4865, 83, 1601, 277, 5974, 2320, 32, 1556, 142508, 98352, 1363, 9969, 34759, 100433, 47691, 82990, 136, 53673, 51592, 40368, 97264, 56661, 1672, 59104, 765, 14373, 7413, 11001, 12937, 151107, 2665, 98363, 2367, 903, 37202, 8781, 2750, 18, 4...
[ 0.09661865234375, 0.1097412109375, 0.219970703125, 0.1448974609375, 0.23388671875, 0.1368408203125, 0.0399169921875, 0.110595703125, 0.197021484375, 0.2384033203125, 0.0244598388671875, 0.1651611328125, 0.1231689453125, 0.120361328125, 0.05426025390625, 0.058837890625, 0.006744384765...
embed
31007332_c0
31007332
haskell
0
Title: Haskell cyclic structure Problem title: Haskell cyclic structure Tags: haskell, cyclic Problem: Haskell cyclic structure I have two definitions of ones/0 , both resulting in an infinite list of ones: ones = 1 : ones ones = repeat 1 repeat::a->[a] repeat x = x : repeat x I'm being told that the first one is a cyc...
Haskell cyclic structure Haskell cyclic structure haskell cyclic Haskell repeat::a Haskell cyclic structure I have two definitions of ones/0 , both resulting in an infinite list of ones: I'm being told that the first one is a cyclic structure, while the second one is not. Is that true? And what does that actually mean/...
[ 0.012451171875, -0.000598907470703125, -0.0030975341796875, 0.026123046875, -0.0034637451171875, 0.003997802734375, 0.0108642578125, -0.005096435546875, 0.006134033203125, -0.018310546875, -0.00799560546875, -0.0024566650390625, -0.00726318359375, 0.00872802734375, -0.00775146484375, 0...
[ 20625, 142508, 187830, 238, 45646, 1556, 119140, 11, 6626, 80934, 111, 64333, 107838, 15044, 16750, 54241, 5303, 30745, 5117, 1632, 83, 10, 12960, 17932, 959, 2071, 450, 29568, 20653, 29459, 14192, 36766, 6, 707 ]
[ 0.1561279296875, 0.2607421875, 0.2529296875, 0.1676025390625, 0.2578125, 0.1414794921875, 0.175537109375, 0.07080078125, 0.1148681640625, 0.17236328125, 0.01007080078125, 0.2166748046875, 0.25537109375, 0.039276123046875, 0.0601806640625, 0.13916015625, 0.1416015625, 0.028625488281...
embed
31900768_c0
31900768
haskell
0
Title: Specify millisecond-speed of an infinite loop Problem title: Specify millisecond-speed of an infinite loop Tags: haskell, concurrency Problem: Specify millisecond-speed of an infinite loop My main function has one infinite loop and I'd like to execute each loop of it every 100 millisecond. I know it's done by so...
Specify millisecond-speed of an infinite loop Specify millisecond-speed of an infinite loop haskell concurrency Specify Specify millisecond-speed of an infinite loop My main function has one infinite loop and I'd like to execute each loop of it every 100 millisecond. I know it's done by some concurrent or parallel meth...
[ 0.0113525390625, -0.00179290771484375, -0.01953125, -0.004547119140625, -0.005584716796875, -0.0218505859375, -0.0033416748046875, -0.0054931640625, 0.01153564453125, -0.05078125, 0.00994873046875, 0.00384521484375, 0.001190185546875, -0.00075531005859375, 0.0017547607421875, 0.0233154...
[ 24990, 40383, 8877, 191633, 9, 175870, 111, 54241, 13, 40956, 142, 1556, 142508, 108636, 982, 5201, 32354, 1632, 71, 1884, 71924, 12638, 11907, 805, 16940, 133244, 95103, 55300, 8306, 6044, 8966, 8108, 110, 6528, 4034, 2806, 29479 ]
[ 0.1605224609375, 0.099609375, 0.1510009765625, 0.226318359375, 0.029937744140625, 0.2447509765625, 0.06268310546875, 0.1834716796875, 0.0963134765625, 0.216796875, 0.015899658203125, 0.112548828125, 0.2021484375, 0.156982421875, 0.094970703125, 0.1280517578125, 0.156494140625, 0.09...
embed
31972800_c0
31972800
haskell
0
Title: How atomic are GHC&#x27;s thunks? Problem title: How atomic are GHC&#x27;s thunks? Tags: haskell, lazy-evaluation, ghc, multithreading, thunk Problem: How atomic are GHC's thunks? How does GHC handle thunks that are accessed by multiple threads (either explicit threads, or the internal ones that evaluate sparks)...
How atomic are GHC&#x27;s thunks? How atomic are GHC&#x27;s thunks? haskell lazy-evaluation ghc multithreading thunk How GHC How atomic are GHC's thunks? How does GHC handle thunks that are accessed by multiple threads (either explicit threads, or the internal ones that evaluate sparks)? Can it happen that multiple thr...
[ 0.00238037109375, 0.013671875, 0.031494140625, 0.004150390625, -0.004974365234375, 0.005218505859375, 0.015625, -0.0260009765625, -0.00860595703125, 0.002288818359375, 0.0128173828125, 0.00384521484375, -0.004913330078125, 0.005035400390625, 0.00665283203125, 0.01043701171875, 0.0088...
[ 11249, 34627, 1771, 527, 73265, 3768, 4911, 19, 1224, 621, 1556, 142508, 21, 3285, 159258, 31380, 238, 3869, 65847, 11, 6238, 5675, 3678, 34831, 17203, 48716, 86997, 143726, 70796, 151575, 131999, 4171, 53383, 5701, 171763, 4488, 200470, 3642...
[ 0.0650634765625, 0.1695556640625, 0.144287109375, 0.10626220703125, 0.2337646484375, 0.0736083984375, 0.15478515625, 0.1376953125, 0.1944580078125, 0.06072998046875, 0.0902099609375, 0.2222900390625, 0.06134033203125, 0.1502685546875, 0.1390380859375, 0.0867919921875, 0.0765380859375...
embed
3320567_c0
3320567
haskell
0
Title: how to execute haskell program in cygwin Problem title: how to execute haskell program in cygwin Tags: haskell Problem: how to execute haskell program in cygwin I compiled my helloworld.hs and got a helloworld.o file, I tried ./helloworld, but it didn't work, so what is the right way to execute the helloworld? I...
how to execute haskell program in cygwin how to execute haskell program in cygwin haskell how to execute haskell program in cygwin I compiled my helloworld.hs and got a helloworld.o file, I tried ./helloworld, but it didn't work, so what is the right way to execute the helloworld? I am using cygwin, I just write down $...
[ 0.007171630859375, -0.017822265625, 0.00860595703125, 0.026123046875, 0.0003509521484375, 0.015625, -0.0125732421875, 0.00958251953125, -0.01300048828125, -0.003326416015625, -0.016357421875, -0.006591796875, 0.00191497802734375, -0.017333984375, -0.017333984375, -0.00128936767578125, ...
[ 3642, 47, 71924, 13, 1556, 142508, 1528, 23, 19932, 177, 9494, 5974, 33600, 31, 32554, 127, 7, 5, 11435, 64, 13817, 18, 4488, 7108, 3917, 70, 17368, 33022, 7565, 3650, 31380, 238, 4210, 55898, 979, 46480, 9051, 13576, 102158, 11737 ]
[ 0.0704345703125, 0.05096435546875, 0.2205810546875, 0.07135009765625, 0.1629638671875, 0.2607421875, 0.1884765625, 0.0780029296875, 0.1090087890625, 0.08331298828125, 0.229248046875, 0.05694580078125, 0.137451171875, 0.1353759765625, 0.179443359375, 0.10150146484375, 0.05181884765625...
embed
14207218_c0
14207218
haskell
0
Title: Free theorems and parametricity Problem title: Free theorems and parametricity Tags: functional-programming, haskell, logic, math, types Problem: Free theorems and parametricity I've found this webapp which lets you generate a free theorem for a given type. The generated theorems quantify over types and relation...
Free theorems and parametricity Free theorems and parametricity functional-programming haskell logic math types Free Free theorems and parametricity I've found this webapp which lets you generate a free theorem for a given type. The generated theorems quantify over types and relations on these types. These theorems (fo...
[ 0.0299072265625, 0.01507568359375, 0.00020599365234375, -0.0032501220703125, -0.00110626220703125, -0.00421142578125, 0.00067138671875, 0.0009307861328125, 0.006317138671875, -0.032470703125, -0.025634765625, -0.0194091796875, -0.004852294921875, -0.0011138916015625, -0.0247802734375, ...
[ 5153, 70, 58391, 7, 136, 170358, 60089, 123309, 28966, 1556, 142508, 62775, 48909, 52895, 14037, 903, 9007, 2633, 139392, 4092, 10644, 71, 102134, 18929, 645, 91582, 5037, 202, 162, 621, 154453, 137043, 5426, 33444, 13722, 43315, 46876 ]
[ 0.16748046875, 0.10009765625, 0.2486572265625, 0.0159759521484375, 0.054931640625, 0.224365234375, 0.083740234375, 0.1094970703125, 0.12353515625, 0.11767578125, 0.193359375, 0.144287109375, 0.0859375, 0.1724853515625, 0.0126953125, 0.03411865234375, 0.1162109375, 0.015411376953125...
embed
14281836_c0
14281836
haskell
0
Title: How i can to declare putStrLn or print in Haskell Problem title: How i can to declare putStrLn or print in Haskell Tags: haskell, declare, function, printing Problem: How i can to declare putStrLn or print in Haskell my answer is: How can i declare print in function? bisiesto :: Int -> **?**; bisiesto x = if (x ...
How i can to declare putStrLn or print in Haskell How i can to declare putStrLn or print in Haskell haskell declare function printing How Haskell How i can to declare putStrLn or print in Haskell my answer is: How can i declare print in function? Please, who can i help me? Thanks.
[ -0.0098876953125, 0.0021514892578125, -0.00136566162109375, 0.016845703125, 0.0024566650390625, 0.0157470703125, -0.0107421875, -0.03125, -0.00051116943359375, 0.032470703125, 0.006195068359375, -0.02587890625, -0.01470947265625, -0.0118408203125, 0.00970458984375, 0.0052490234375, 0...
[ 11249, 17, 831, 47, 159978, 3884, 71713, 866, 19, 707, 28412, 23, 20625, 142508, 1556, 32354, 2448, 1916, 30607, 4358 ]
[ 0.067138671875, 0.032379150390625, 0.093505859375, 0.026824951171875, 0.2060546875, 0.173583984375, 0.2027587890625, 0.12841796875, 0.1378173828125, 0.0582275390625, 0.2413330078125, 0.09197998046875, 0.13671875, 0.23095703125, 0.1259765625, 0.1807861328125, 0.1683349609375, 0.0302...
embed
40572348_c0
40572348
haskell
0
Title: Curious case of type of 2 in haskell Problem title: Curious case of type of 2 in haskell Tags: haskell Problem: Curious case of type of 2 in haskell What is the rationale behind assigning a general type Num a => a to 2 instead of defaulting to some specific type like Int or Integer ? Secondly I have read at many...
Curious case of type of 2 in haskell Curious case of type of 2 in haskell haskell Curious Num Integer Curious case of type of 2 in haskell What is the rationale behind assigning a general type Num a => a to 2 instead of defaulting to some specific type like Int or Integer ? Secondly I have read at many places that 2 is...
[ -0.002838134765625, 0, 0.016845703125, 0.006134033203125, 0.01806640625, 0.03271484375, -0.000637054443359375, -0.00439453125, 0.005462646484375, -0.004791259765625, 0.00701904296875, -0.060546875, 0.00775146484375, -0.01361083984375, -0.00628662109375, -0.00518798828125, 0.004882812...
[ 3003, 93905, 7225, 10644, 111, 116, 23, 1556, 142508, 52782, 44401, 168487, 13, 50155, 95486, 214, 4537, 10, 44357, 47, 64457, 114977, 29458, 360, 18, 83, 35874, 178851, 34292, 80934, 8780, 36456, 9297, 77336, 1771, 20625 ]
[ 0.1058349609375, 0.1431884765625, 0.11181640625, 0.1873779296875, 0.037628173828125, 0.2078857421875, 0.0721435546875, 0.152099609375, 0.24365234375, 0.173828125, 0.1402587890625, 0.1468505859375, 0.05279541015625, 0.060028076171875, 0.1431884765625, 0.01300048828125, 0.1298828125, ...
embed
50477398_c2
50477398
haskell
2
able, Data.Functor, Data.List, Data.Maybe, Data.Monoid, Prelude, System.IO, Text.Pretty.Simple, Naive, Functional, Implementation, Union, Find, Disjoint, Set, Poor, Performance, COST, CENTRE, MODULE, SRC, Main, merging_communities.hs:67:54-71, merging_communities.hs, merging_communities.hs:40:1-43, main.initialForest, ...
able, Data.Functor, Data.List, Data.Maybe, Data.Monoid, Prelude, System.IO, Text.Pretty.Simple, Naive, Functional, Implementation, Union, Find, Disjoint, Set, Poor, Performance, COST, CENTRE, MODULE, SRC, Main, merging_communities.hs:67:54-71, merging_communities.hs, merging_communities.hs:40:1-43, main.initialForest, ...
[ 0.0084228515625, 0.020263671875, -0.009521484375, -0.003204345703125, 0.02490234375, -0.004180908203125, -0.00885009765625, -0.030517578125, -0.0019683837890625, -0.028076171875, 0.017333984375, -0.01397705078125, 0.00457763671875, -0.0003070831298828125, -0.013916015625, -0.0115966796...
[ 19048, 4, 11809, 5, 97249, 18770, 154663, 82419, 372, 46674, 48899, 1914, 822, 112, 12353, 17780, 24129, 19273, 15145, 8859, 33209, 353, 5844, 28670, 10763, 153941, 2320, 32528, 26040, 6206, 513, 4288, 19943, 167626, 94030, 313, 34274, 89859,...
[ 0.267333984375, 0.03106689453125, 0.19970703125, 0.06158447265625, 0.1739501953125, 0.1783447265625, 0.1578369140625, 0.1337890625, 0.137939453125, 0.143310546875, 0.2103271484375, 0.0867919921875, 0.1690673828125, 0.0650634765625, 0.149658203125, 0.1956787109375, 0.224609375, 0.10...
embed
9013310_c0
9013310
haskell
0
Title: Can someone explain where Applicative instances arise in this code? Problem title: Can someone explain where Applicative instances arise in this code? Tags: haskell, applicative, functor Problem: Can someone explain where Applicative instances arise in this code? isAlphaNum :: Char -> Bool isAlphaNum = (||) <$> ...
Can someone explain where Applicative instances arise in this code? Can someone explain where Applicative instances arise in this code? haskell applicative functor Can Applicative Char Bool Functor Can someone explain where Applicative instances arise in this code? I can see that it works, but I don't understand where ...
[ 0.01470947265625, 0.002349853515625, 0.0213623046875, 0.0172119140625, 0.006988525390625, 0.0283203125, 0.0179443359375, -0.0146484375, 0.0205078125, -0.00189971923828125, 0.000606536865234375, -0.035888671875, 0.02001953125, 0.03125, -0.0235595703125, -0.0166015625, 0.0137939453125,...
[ 4171, 22008, 73342, 7440, 5659, 11048, 4935, 110527, 7, 10, 58944, 903, 18151, 23, 1556, 142508, 41816, 7477, 18770, 21656, 2460, 929, 28670, 831, 1957, 43240, 1284, 87, 2301, 18, 28219, 748, 1380, 1295 ]
[ 0.0970458984375, 0.05084228515625, 0.173583984375, 0.09161376953125, 0.158935546875, 0.18359375, 0.193603515625, 0.220703125, 0.04229736328125, 0.0628662109375, 0.1383056640625, 0.04571533203125, 0.1453857421875, 0.011138916015625, 0.1280517578125, 0.1990966796875, 0.1859130859375, ...
embed
58704888_c1
58704888
haskell
1
different moves. I'm pretty new to Haskell and I know I'll probably need to use a fold for this. But I'm just stuck on how to write it, and I can't find many examples that I can easily relate to my situation. Any advice/tips are greatly appreciated. The moves list would look something like this: [[(1,2),(2,3)],[(3,6),...
different moves. I'm pretty new to Haskell and I know I'll probably need to use a fold for this. But I'm just stuck on how to write it, and I can't find many examples that I can easily relate to my situation. Any advice/tips are greatly appreciated. The moves list would look something like this: [[(1,2),(2,3)],[(3,6),...
[ -0.01275634765625, 0.001251220703125, 0.006866455078125, 0.005706787109375, 0.01446533203125, 0.00811767578125, -0.032470703125, 0.0115966796875, 0.038818359375, -0.0135498046875, 0.01177978515625, -0.003265380859375, 0.004241943359375, 0.019287109375, -0.0172119140625, -0.021850585937...
[ 12921, 25813, 7, 28875, 3525, 47, 20625, 142508, 3714, 31895, 3871, 4527, 10, 42822, 100, 903, 179933, 3642, 33022, 442, 27781, 72546, 33444, 16648, 67660, 41201, 77947, 581, 5303, 2806, 6713, 9844, 1884, 133063, 155761, 86827, 59690, 54753, ...
[ 0.24853515625, 0.2685546875, 0.11767578125, 0.028076171875, 0.0377197265625, 0.000701904296875, 0.16650390625, 0.26904296875, 0.0161590576171875, 0.047119140625, 0.033843994140625, 0.07879638671875, 0.046295166015625, 0.265869140625, 0.033447265625, 0.05975341796875, 0.08868408203125...
embed
64442881_c0
64442881
haskell
0
Title: conditional sum on list with Haskell Problem title: conditional sum on list with Haskell Tags: haskell, list Problem: conditional sum on list with Haskell I am struggling to reduce a list via a conditional sum, in this case, I would like to add the similar elements of a list [0, 1, 1, 1, 0, 0, 1, 0] would become...
conditional sum on list with Haskell conditional sum on list with Haskell haskell list Haskell conditional sum on list with Haskell I am struggling to reduce a list via a conditional sum, in this case, I would like to add the similar elements of a list [0, 1, 1, 1, 0, 0, 1, 0] would become [0, 3, 0, 1, 0] or just [3, 1...
[ -0.0128173828125, 0.0133056640625, 0.000598907470703125, 0.0068359375, -0.016357421875, 0.0145263671875, -0.0157470703125, 0.0211181640625, 0.00787353515625, 0.0059814453125, -0.0010528564453125, -0.014892578125, 0.006072998046875, 0.005950927734375, -0.008056640625, 0.0186767578125, ...
[ 35431, 289, 10554, 98, 5303, 678, 20625, 142508, 1556, 237875, 34390, 1829, 2806, 1884, 47, 15190, 21373, 80854, 111, 2389, 106, 757, 24209, 138, 707, 1660, 122101, 37842, 18344, 7569, 136, 64549, 748, 32354, 38514, 3642, 28484, 903 ]
[ 0.240478515625, 0.1566162109375, 0.2481689453125, 0.100830078125, 0.2286376953125, 0.1014404296875, 0.16796875, 0.24658203125, 0.164794921875, 0.1224365234375, 0.2255859375, 0.07513427734375, 0.056549072265625, 0.088623046875, 0.013763427734375, 0.156005859375, 0.1873779296875, 0.1...
embed
12916353_c0
12916353
haskell
0
Title: How do I convert from unixtime to a date/time in Haskell? Problem title: How do I convert from unixtime to a date/time in Haskell? Tags: haskell Problem: How do I convert from unixtime to a date/time in Haskell? So, the setup is that I have the time, in seconds, since the epoch and I want to turn this into a dat...
How do I convert from unixtime to a date/time in Haskell? How do I convert from unixtime to a date/time in Haskell? haskell unixtime How Haskell How do I convert from unixtime to a date/time in Haskell? So, the setup is that I have the time, in seconds, since the epoch and I want to turn this into a date I can actually...
[ 0.0107421875, 0.003814697265625, 0.01373291015625, 0.015869140625, 0.01531982421875, 0.00109100341796875, -0.015625, 0.0115966796875, -0.00396728515625, -0.042236328125, -0.010986328125, -0.006011962890625, 0.01068115234375, 0.02294921875, -0.0341796875, -0.0033721923828125, -0.00421...
[ 11249, 87, 96760, 1295, 51, 4084, 6032, 47, 10, 5622, 64, 23, 20625, 142508, 54, 1556, 169581, 765, 1733, 94131, 771, 206, 3444, 15504, 3934, 831, 20653, 28219, 7722, 125663, 13312, 497, 12824, 67403, 3525, 587, 6238 ]
[ 0.0634765625, 0.04437255859375, 0.2015380859375, 0.1142578125, 0.1175537109375, 0.1180419921875, 0.25244140625, 0.116455078125, 0.06488037109375, 0.21533203125, 0.055755615234375, 0.0697021484375, 0.150390625, 0.264892578125, 0.0369873046875, 0.1109619140625, 0.13916015625, 0.05126...
embed
70362608_c0
70362608
haskell
0
Title: IHP: ./start: line 29: RunDevServer: command not found Problem title: IHP: ./start: line 29: RunDevServer: command not found Tags: ihp, haskell Problem: IHP: ./start: line 29: RunDevServer: command not found when execute the ./start of the blog example, got the following error: error: cycle detected in build of ...
IHP: ./start: line 29: RunDevServer: command not found IHP: ./start: line 29: RunDevServer: command not found ihp haskell IHP RunDevServer IHP: ./start: line 29: RunDevServer: command not found when execute the ./start of the blog example, got the following error: error: cycle detected in build of '/nix/store/mhgprkxfn...
[ 0.004486083984375, 0.0025634765625, -0.0142822265625, 0.031982421875, -0.02197265625, 0.03466796875, 0.003173828125, -0.01904296875, -0.00323486328125, -0.01708984375, 0.00130462646484375, 0.0013580322265625, 0.00640869140625, 0.031982421875, 0.009765625, -0.0115966796875, 0.00631713...
[ 87, 36599, 5, 64, 17137, 13315, 1702, 28398, 152108, 193348, 75101, 959, 14037, 9633, 254, 1556, 142508, 71924, 1415, 27781, 25632, 18499, 105823, 96391, 297, 23, 45367, 93, 425, 45804, 188608, 100781, 96855, 3742, 127, 748, 432, 822, 10201...
[ 0.0693359375, 0.2047119140625, 0.067138671875, 0.004486083984375, 0.1912841796875, 0.0692138671875, 0.15283203125, 0.1500244140625, 0.230712890625, 0.204833984375, 0.234375, 0.06884765625, 0.1409912109375, 0.09820556640625, 0.1275634765625, 0.1102294921875, 0.2135009765625, 0.08123...
embed
61903180_c0
61903180
haskell
0
Title: how do I convert a list of custom type to a list of String Problem title: how do I convert a list of custom type to a list of String Tags: haskell Problem: how do I convert a list of custom type to a list of String I have a custom data given below: data Item = Item { name:: String, identifier:: String, itemActio...
how do I convert a list of custom type to a list of String how do I convert a list of custom type to a list of String haskell Item Action Item.name how do I convert a list of custom type to a list of String I have a custom data given below: I want to convert a list of this data type [Item] into another list that has on...
[ -0.006439208984375, -0.0086669921875, -0.0091552734375, 0.019775390625, -0.0235595703125, 0.01513671875, -0.0220947265625, 0.00946044921875, 0.00982666015625, 0.000453948974609375, 0.005706787109375, -0.02880859375, 0.009765625, 0.00958251953125, -0.01611328125, -0.00537109375, 0.003...
[ 3642, 96760, 5303, 111, 114122, 10644, 47, 10, 23351, 214, 54, 87, 1556, 142508, 78426, 57945, 11627, 2053, 35064, 3444, 2982, 3934, 15700, 4734, 9351, 5, 71713 ]
[ 0.037872314453125, 0.14501953125, 0.18115234375, 0.08465576171875, 0.2120361328125, 0.20947265625, 0.083251953125, 0.0408935546875, 0.165283203125, 0.1087646484375, 0.004241943359375, 0.013275146484375, 0.143310546875, 0.20458984375, 0.1644287109375, 0.159912109375, 0.12939453125, ...
embed
10272519_c0
10272519
haskell
0
Title: Can Haskell ignore Ints vs. Integers? Problem title: Can Haskell ignore Ints vs. Integers? Tags: haskell Problem: Can Haskell ignore Ints vs. Integers? I have a program that uses both Int and Integer , because a few of the functions return results that are quite large. I'm tired of having to use fromIntegral eve...
Can Haskell ignore Ints vs. Integers? Can Haskell ignore Ints vs. Integers? haskell Can Haskell Ints Integers Integer Can Haskell ignore Ints vs. Integers? I have a program that uses both Int and Integer , because a few of the functions return results that are quite large. I'm tired of having to use fromIntegral everyw...
[ 0.00151824951171875, -0.00787353515625, 0.01446533203125, -0.005157470703125, -0.00665283203125, 0.001861572265625, -0.005096435546875, -0.011962890625, 0.00439453125, 0.0034942626953125, -0.0021514892578125, -0.0235595703125, -0.002899169921875, 0.005523681640625, 0.00341796875, -0.02...
[ 4171, 20625, 142508, 124962, 360, 933, 20209, 44401, 7, 1556, 1528, 4527, 15044, 18, 136, 10846, 32354, 30646, 50339, 32233, 21334, 168661, 1295, 4153, 67, 5739, 141, 219743, 3917, 149067, 54799, 98352 ]
[ 0.09552001953125, 0.133056640625, 0.235595703125, 0.1832275390625, 0.16845703125, 0.1820068359375, 0.1171875, 0.2196044921875, 0.056549072265625, 0.114013671875, 0.07550048828125, 0.052978515625, 0.0231170654296875, 0.147705078125, 0.0160064697265625, 0.003570556640625, 0.09130859375...
embed
52571664_c0
52571664
haskell
0
Title: Why derive Typeable for this type Problem title: Why derive Typeable for this type Tags: haskell, xmonad Problem: Why derive Typeable for this type In xmonad source code, I find: data Resize = Shrink | Expand deriving Typeable I can't figure out why this needs to derive from Typeable I saw a famous blog post by ...
Why derive Typeable for this type Why derive Typeable for this type haskell xmonad Why Typeable Resize Shrink Expand Why derive Typeable for this type In xmonad source code, I find: I can't figure out why this needs to derive from Typeable I saw a famous blog post by Chrisdone which explains the various usages of Typea...
[ 0.00045013427734375, 0.0159912109375, 0.0022430419921875, 0.0277099609375, 0.01495361328125, 0.0096435546875, -0.00543212890625, 0.0101318359375, -0.00238037109375, 0.000408172607421875, 0.0118408203125, -0.0308837890625, 0.00909423828125, 0.00433349609375, -0.0205078125, 0.00939941406...
[ 44084, 122, 5844, 60457, 2886, 100, 903, 10644, 1556, 142508, 1022, 3796, 712, 853, 62539, 7525, 35838, 60075, 2940, 31344, 18151, 831, 18, 26366, 15400, 27117, 47, 1295, 170277, 64007, 73342, 67842, 127689, 106117, 5122 ]
[ 0.12548828125, 0.1317138671875, 0.1531982421875, 0.22998046875, 0.280517578125, 0.0966796875, 0.09906005859375, 0.1722412109375, 0.09515380859375, 0.187255859375, 0.0704345703125, 0.11474609375, 0.138671875, 0.05841064453125, 0.1622314453125, 0.0662841796875, 0.1619873046875, 0.027...
embed
22112215_c0
22112215
haskell
0
Title: Replace words in haskell Problem title: Replace words in haskell Tags: str-replace, haskell Problem: Replace words in haskell I want to replace full words in text. Type definition is: replace :: [(String, String)] -> String -> String . Function example is: replace [("fox", "cat"), ("he", "she")] "The quick brown...
Replace words in haskell Replace words in haskell str-replace haskell Replace Replace words in haskell I want to replace full words in text. Type definition is: replace :: [(String, String)] -> String -> String . Function example is: It should be with functions words and unwords . Do you have any idea?
[ -0.0257568359375, -0.018798828125, -0.006591796875, 0.0164794921875, -0.007476806640625, -0.00506591796875, -0.0020751953125, -0.005340576171875, 0.00665283203125, 0.002197265625, 0.008544921875, -0.00151824951171875, 0.02001953125, -0.004974365234375, 0.006103515625, 0.01275634765625,...
[ 853, 23935, 34153, 23, 1556, 142508, 7704, 107, 3444, 47, 91995, 4393, 7986, 60457, 80934, 1984, 71713, 214, 23351, 33079, 28670, 10763, 27781, 5608, 678, 32354, 51, 47416, 6528 ]
[ 0.06671142578125, 0.168212890625, 0.2109375, 0.06427001953125, 0.1605224609375, 0.2364501953125, 0.155517578125, 0.06695556640625, 0.0654296875, 0.005340576171875, 0.193359375, 0.1375732421875, 0.142822265625, 0.194091796875, 0.1190185546875, 0.0682373046875, 0.1375732421875, 0.093...
embed
22532205_c0
22532205
haskell
0
Title: Yesod: Connecting to an existing database with data Problem title: Yesod: Connecting to an existing database with data Tags: haskell, yesod Problem: Yesod: Connecting to an existing database with data I have gone through this chapter and all the examples mentioned there are making the database schema initially a...
Yesod: Connecting to an existing database with data Yesod: Connecting to an existing database with data haskell yesod Yesod Connecting Yesod: Connecting to an existing database with data I have gone through this chapter and all the examples mentioned there are making the database schema initially and then operating ove...
[ 0.01300048828125, 0.030517578125, -0.004608154296875, 0.01068115234375, -0.00738525390625, 0.0257568359375, 0.0045166015625, -0.01190185546875, 0.008544921875, -0.07763671875, 0.01092529296875, -0.0458984375, -0.00592041015625, -0.0047607421875, -0.01263427734375, -0.00958251953125, ...
[ 32635, 2199, 12, 62448, 214, 47, 144573, 63399, 678, 2053, 1556, 142508, 2422, 23722, 8305, 139539, 70, 27781, 20662, 61903, 61475, 172852, 645, 2367, 54, 2174, 2685, 83, 21771, 142, 2499, 3917, 28282, 1295, 442 ]
[ 0.1708984375, 0.281005859375, 0.0101318359375, 0.18359375, 0.0631103515625, 0.142822265625, 0.2462158203125, 0.223876953125, 0.151123046875, 0.171875, 0.10479736328125, 0.20556640625, 0.0953369140625, 0.2015380859375, 0.00775146484375, 0.046630859375, 0.044464111328125, 0.102294921...
embed
47566098_c1
47566098
haskell
1
1 evals DottedList (sugared) expected: "((1 2) . 1)" but got: "Parse error at \"lisp\" (line 1, column 9):\nunexpected \".\"\nexpecting spaces' or parseExpr!" Update: From @pat's response, I got my tests to pass using: parseExpr :: Parser LispVal parseExpr = {- omitted -} <|> do char '(' x <- many1 (do e <- parseExpr; ...
1 evals DottedList (sugared) expected: "((1 2) . 1)" but got: "Parse error at \"lisp\" (line 1, column 9):\nunexpected \".\"\nexpecting spaces' or parseExpr!" Update: From @pat's response, I got my tests to pass using: parseExpr :: Parser LispVal parseExpr = {- omitted -} <|> do char '(' x <- many1 (do e <- parseExpr; ...
[ -0.003082275390625, 0.0126953125, -0.0245361328125, 0.00127410888671875, -0.027099609375, 0.0184326171875, -0.00139617919921875, -0.01318359375, 0.0155029296875, 0.00077056884765625, -0.01068115234375, 0.01019287109375, -0.003204345703125, -0.01904296875, -0.01507568359375, 0.019409179...
[ 106, 28, 1405, 7, 84929, 3674, 154663, 16565, 2822, 84751, 41600, 4958, 5, 4879, 1284, 28636, 184, 18499, 99, 4086, 254, 2256, 3365, 316, 77816, 4606, 83613, 13, 47107, 1916, 32628, 366, 19279, 10287, 4453, 4163, 109921, 27875, 17368, 239...
[ 0.09222412109375, 0.09130859375, 0.2435302734375, 0.061767578125, 0.1400146484375, 0.1514892578125, 0.2222900390625, 0.1072998046875, 0.1732177734375, 0.1953125, 0.0289459228515625, 0.0982666015625, 0.0185089111328125, 0.06768798828125, 0.027618408203125, 0.14404296875, 0.14453125, ...
embed
68130311_c0
68130311
haskell
0
Title: Haskell Lambda Functions Problem title: Haskell Lambda Functions Tags: haskell, lambda Problem: Haskell Lambda Functions I am new to Haskell and programming in general. I am trying to write a lambda function that return a value squared (\x -> x * x) this is the code I have written. When i try to compile I get th...
Haskell Lambda Functions Haskell Lambda Functions haskell lambda Haskell Lambda Functions Haskell Lambda Functions I am new to Haskell and programming in general. I am trying to write a lambda function that return a value squared this is the code I have written. When i try to compile I get this error Parse error: naked...
[ 0.005950927734375, 0.0208740234375, 0.0010528564453125, -0.016845703125, 0.0098876953125, 0.0257568359375, 0.0177001953125, 0.0081787109375, 0.0001678466796875, -0.0308837890625, -0.0029449462890625, -0.047607421875, 0.002685546875, -0.005523681640625, 0.009765625, -0.0052490234375, ...
[ 20625, 142508, 122930, 85, 28670, 10763, 1556, 21, 6492, 3525, 56037, 4537, 31577, 33022, 32354, 30646, 34292, 108047, 71, 903, 83, 18151, 59121, 9790, 9969, 1340, 2046, 18499, 2392, 184, 24, 12225, 125195, 99, 2663, 17366, 179140, 4527, 19...
[ 0.117431640625, 0.2242431640625, 0.170654296875, 0.10516357421875, 0.12744140625, 0.0390625, 0.0992431640625, 0.036956787109375, 0.170166015625, 0.049774169921875, 0.04541015625, 0.008544921875, 0.0557861328125, 0.06103515625, 0.1444091796875, 0.1170654296875, 0.144775390625, 0.147...
embed
68557403_c0
68557403
haskell
0
Title: Haskell leftmost deepest node of tree Problem title: Haskell leftmost deepest node of tree Tags: list, nested-lists, nested, recursion, haskell Problem: Haskell leftmost deepest node of tree Suppose I have a binary tree structure defined as data IntTree = Empty | Node Int IntTree IntTree and the tree Node 0 (Nod...
Haskell leftmost deepest node of tree Haskell leftmost deepest node of tree list nested-lists nested recursion haskell Haskell IntTree Empty Node Haskell leftmost deepest node of tree Suppose I have a binary tree structure defined as and the tree How can I extract the leftmost deepest node (ie Node 3 Empty Empty )?
[ 0.00701904296875, -0.000560760498046875, -0.0022735595703125, -0.0128173828125, 0.006927490234375, 0.0147705078125, -0.0216064453125, -0.030517578125, 0.0126953125, -0.0230712890625, 0.01348876953125, -0.044921875, 0.01312255859375, 0.015380859375, 0.00860595703125, -0.018798828125, ...
[ 20625, 142508, 25737, 840, 53894, 525, 110, 112, 53201, 5303, 8512, 71, 6562, 195625, 1556, 62731, 31678, 939, 438, 18, 2394, 6635, 45646, 61924, 136, 70, 831, 125663, 138 ]
[ 0.097900390625, 0.2073974609375, 0.1505126953125, 0.0997314453125, 0.1754150390625, 0.1065673828125, 0.135009765625, 0.127685546875, 0.1898193359375, 0.0965576171875, 0.132080078125, 0.0252685546875, 0.0960693359375, 0.1044921875, 0.0968017578125, 0.159912109375, 0.1363525390625, 0...
embed
16524528_c0
16524528
haskell
0
Title: Why this code return empty list or fail? Haskell Problem title: Why this code return empty list or fail? Haskell Tags: haskell Problem: Why this code return empty list or fail? Haskell primes :: [Int] primes = sieve [2..] sieve :: [Int] -> [Int] sieve (p:xs)= p:sieve[x|x<-xs,x `mod` p /= 0] f :: Int->Int f n = h...
Why this code return empty list or fail? Haskell Why this code return empty list or fail? Haskell haskell Why Haskell p:xs p:sieve Why this code return empty list or fail? Haskell load into GHCi and type "f 20" fail...... plz help me
[ -0.01806640625, 0.01361083984375, 0.01556396484375, 0.00994873046875, 0.00439453125, -0.00201416015625, 0.00787353515625, -0.00714111328125, 0.016357421875, 0.001434326171875, 0.0284423828125, -0.00677490234375, 0.0106201171875, -0.00225830078125, -0.009765625, 0.00445556640625, 0.01...
[ 44084, 903, 18151, 30646, 201505, 5303, 707, 35782, 20625, 142508, 1556, 915, 12, 425, 7, 172, 3134, 72367, 3934, 527, 73265, 14, 10644, 420, 387, 130432, 4358 ]
[ 0.0894775390625, 0.06707763671875, 0.1502685546875, 0.1400146484375, 0.1541748046875, 0.1737060546875, 0.053558349609375, 0.1661376953125, 0.11480712890625, 0.2052001953125, 0.083740234375, 0.10601806640625, 0.023345947265625, 0.12066650390625, 0.07843017578125, 0.08721923828125, 0.2...
embed
77815691_c1
77815691
haskell
1
a] -> a) -> Parser a -> Parser (EvalATree a a) parseNode dict parserA = do string "Node" spaces funcName <- many1 letter spaces subtrees <- between (char '[') (char ']') (parseEvalATree parserA `sepBy` char ',') let func = case Map.lookup funcName dict of Just f -> f Nothing -> error "Function not defined" return (Node...
a] -> a) -> Parser a -> Parser (EvalATree a a) parseNode dict parserA = do string "Node" spaces funcName <- many1 letter spaces subtrees <- between (char '[') (char ']') (parseEvalATree parserA `sepBy` char ',') let func = case Map.lookup funcName dict of Just f -> f Nothing -> error "Function not defined" return (Node...
[ -0.0196533203125, -0.015869140625, 0.00150299072265625, 0.01361083984375, -0.0003299713134765625, 0.022705078125, 0.00830078125, -0.0233154296875, 0.01239013671875, -0.052978515625, -0.0252685546875, 0.005767822265625, -0.0103759765625, -0.00848388671875, 0.00738525390625, -0.025390625...
[ 10, 268, 33079, 2392, 2189, 1405, 107, 366, 184, 5021, 112, 61669, 284, 79315, 32628, 7477, 163612, 5941, 418, 31330, 7, 1614, 2921, 17721, 9254, 2500, 70637, 75358, 21441, 7225, 42719, 64747, 2037, 9563, 1238, 182747, 18499, 97249, 10763, ...
[ 0.039825439453125, 0.016204833984375, 0.008331298828125, 0.1375732421875, 0.162353515625, 0.1666259765625, 0.0992431640625, 0.136962890625, 0.0892333984375, 0.1693115234375, 0.14599609375, 0.15869140625, 0.0484619140625, 0.1427001953125, 0.16259765625, 0.095703125, 0.1279296875, 0....
embed
30310179_c2
30310179
haskell
2
.Instances.Lift, Language, Haskell, Instances, Lift.hs, dist-sandbox-d2861272, Lift.o, Language.Haskell.Meta.Syntax.Translate, Meta, Syntax, Translate.hs, Translate.o, Language.Haskell.Meta.Parse, Parse.hs, Parse.o, Language.Haskell.Meta.Parse.Careful, Parse, Careful.hs, Careful.o, Language.Haskell.Meta, Meta.hs, Meta....
.Instances.Lift, Language, Haskell, Instances, Lift.hs, dist-sandbox-d2861272, Lift.o, Language.Haskell.Meta.Syntax.Translate, Meta, Syntax, Translate.hs, Translate.o, Language.Haskell.Meta.Parse, Parse.hs, Parse.o, Language.Haskell.Meta.Parse.Careful, Parse, Careful.hs, Careful.o, Language.Haskell.Meta, Meta.hs, Meta....
[ -0.01116943359375, -0.0015869140625, 0.00193023681640625, 0.000377655029296875, -0.01153564453125, 0.000873565673828125, -0.00080108642578125, -0.019775390625, 0.004730224609375, -0.013916015625, -0.00994873046875, 0.0107421875, 0.01495361328125, -0.00518798828125, 0.01220703125, 0.003...
[ 5, 4153, 116071, 7, 9506, 2480, 83658, 20625, 142508, 360, 166562, 127, 45, 271, 43882, 11728, 71, 3882, 11540, 3768, 304, 31, 6495, 6696, 102, 3371, 86531, 62624, 19309, 36939, 19010, 11062, 28636, 2392, 21851, 7844, 20731, 106742, 7870, ...
[ 0.05377197265625, 0.063720703125, 0.2325439453125, 0.076171875, 0.2249755859375, 0.2198486328125, 0.244384765625, 0.2010498046875, 0.2890625, 0.0438232421875, 0.310546875, 0.1290283203125, 0.1202392578125, 0.1827392578125, 0.150634765625, 0.27197265625, 0.0465087890625, 0.130371093...
embed
40160181_c1
40160181
haskell
1
Below is my code that I tried. The square always has odd dimensions and equal or higher then 5, so I did the 5 case, and then a function that I expected would calculate what I want to all other possible values. But it gives me: Exception: stack overflow in ghci Does anyone know what I did wrong in this code? calcv :: ...
Below is my code that I tried. The square always has odd dimensions and equal or higher then 5, so I did the 5 case, and then a function that I expected would calculate what I want to all other possible values. But it gives me: Exception: stack overflow in ghci Does anyone know what I did wrong in this code? calcv :: ...
[ -0.004302978515625, -0.0036773681640625, 0.00146484375, 0.0079345703125, 0.01287841796875, -0.033203125, -0.0181884765625, 0.0234375, 0.031494140625, 0.005340576171875, -0.007110595703125, -0.012451171875, -0.007110595703125, -0.00750732421875, -0.031494140625, 0.0029144287109375, -0...
[ 17336, 759, 18151, 37842, 108047, 11343, 1556, 70270, 158208, 105950, 707, 77546, 7068, 190, 4, 6777, 7225, 136, 32354, 87, 84751, 74481, 67, 2367, 3444, 47, 756, 3789, 7722, 142424, 4966, 163, 5443, 63928, 177261, 645, 118664, 23, 31380, ...
[ 0.030975341796875, 0.017303466796875, 0.187744140625, 0.10406494140625, 0.2376708984375, 0.11474609375, 0.08721923828125, 0.2049560546875, 0.2164306640625, 0.07366943359375, 0.013275146484375, 0.1126708984375, 0.001983642578125, 0.1671142578125, 0.024993896484375, 0.029693603515625, ...
embed
50667519_c0
50667519
haskell
0
Title: Output list of integers divisible by Y and Z Haskell Problem title: Output list of integers divisible by Y and Z Haskell Tags: list, haskell Problem: Output list of integers divisible by Y and Z Haskell I am trying to write a function that would output a list of integers divisible by Y and Z from 1 to 500. Howev...
Output list of integers divisible by Y and Z Haskell Output list of integers divisible by Y and Z Haskell list haskell Output Haskell Output list of integers divisible by Y and Z Haskell I am trying to write a function that would output a list of integers divisible by Y and Z from 1 to 500. However I get an empty list....
[ 0.000537872314453125, 0.0019989013671875, -0.002593994140625, 0.009521484375, 0.01263427734375, 0.0242919921875, -0.00009775161743164062, -0.01080322265625, 0.0037689208984375, 0.001983642578125, 0.01397705078125, -0.0101318359375, 0.0194091796875, 0.00482177734375, -0.0185546875, 0.02...
[ 13538, 5303, 892, 26255, 45, 99017, 390, 990, 136, 567, 20625, 142508, 7077, 1556, 31577, 33022, 32354, 140992, 1295, 106, 47, 2101, 2046, 201505, 20594, 44691 ]
[ 0.1240234375, 0.1539306640625, 0.1400146484375, 0.1278076171875, 0.09991455078125, 0.181640625, 0.0687255859375, 0.1727294921875, 0.1219482421875, 0.18798828125, 0.141845703125, 0.228515625, 0.007354736328125, 0.1331787109375, 0.050750732421875, 0.06805419921875, 0.11376953125, 0.1...
embed
27808947_c0
27808947
haskell
0
Title: Haskell combination of number and bool Problem title: Haskell combination of number and bool Tags: combinations, haskell Problem: Haskell combination of number and bool In Haskell, when I input a list of ordered number, how can I make a list which has all the possible combination of the number and the bool(eithe...
Haskell combination of number and bool Haskell combination of number and bool combinations haskell Haskell Haskell combination of number and bool In Haskell, when I input a list of ordered number, how can I make a list which has all the possible combination of the number and the bool(either True or False) ? for example...
[ -0.017333984375, 0.0252685546875, 0.0020751953125, -0.00182342529296875, 0.0054931640625, 0.0322265625, -0.02978515625, -0.01025390625, 0.00103759765625, 0.00146484375, -0.021484375, -0.0257568359375, 0.01214599609375, 0.02001953125, -0.0263671875, 0.0115966796875, 0.014892578125, ...
[ 20625, 142508, 162515, 14012, 136, 142484, 111, 1556, 107730, 5303, 12989, 297, 3642, 831, 3249, 10, 756, 70, 7722, 87599, 707, 22225, 184, 27781, 68252, 4, 90173, 140992 ]
[ 0.1466064453125, 0.251953125, 0.2259521484375, 0.1793212890625, 0.0791015625, 0.22900390625, 0.015228271484375, 0.1209716796875, 0.1630859375, 0.1951904296875, 0.191650390625, 0.0953369140625, 0.06878662109375, 0.03900146484375, 0.0880126953125, 0.021575927734375, 0.038848876953125, ...
embed
22479020_c0
22479020
haskell
0
Title: Haskell - Return number of chars excluding punctuation and spaces Problem title: Haskell - Return number of chars excluding punctuation and spaces Tags: string, punctuation, list, haskell Problem: Haskell - Return number of chars excluding punctuation and spaces I've just learned how to count the number of chars...
Haskell - Return number of chars excluding punctuation and spaces Haskell - Return number of chars excluding punctuation and spaces string punctuation list haskell Haskell Haskell - Return number of chars excluding punctuation and spaces I've just learned how to count the number of chars in a string using length nameof...
[ -0.00543212890625, 0.00714111328125, -0.0185546875, 0.02685546875, -0.003173828125, 0.0135498046875, 0.0062255859375, -0.0166015625, 0.005157470703125, -0.0186767578125, -0.006805419921875, -0.033203125, 0.014404296875, 0.01611328125, -0.0206298828125, 0.006103515625, 0.0120239257812...
[ 20625, 142508, 173340, 14012, 21441, 39041, 6238, 33595, 34, 32628, 79315, 5303, 1556, 7, 136, 97384, 54529, 23, 140909, 9351, 4390, 6562, 149016, 7722, 47, 15490, 64, 210431, 4358 ]
[ 0.1246337890625, 0.2244873046875, 0.1573486328125, 0.113037109375, 0.21630859375, 0.1256103515625, 0.04656982421875, 0.1212158203125, 0.0670166015625, 0.1895751953125, 0.2017822265625, 0.1171875, 0.1014404296875, 0.0183563232421875, 0.016876220703125, 0.045989990234375, 0.19470214843...
embed
13605700_c0
13605700
haskell
0
Title: C code to Haskell Problem title: C code to Haskell Tags: code-translation, haskell, c Problem: C code to Haskell So, i would like to convert a part of C code to Haskell. I wrote this part (it's a simplified example of what I want to do) in C, but being the newbie I am in Haskell, I can't really make it work. flo...
C code to Haskell C code to Haskell code-translation haskell c Haskell C code to Haskell So, i would like to convert a part of C code to Haskell. I wrote this part (it's a simplified example of what I want to do) in C, but being the newbie I am in Haskell, I can't really make it work. Anyone got any ideas/solutions?
[ 0.00921630859375, 0.0174560546875, -0.004302978515625, -0.004486083984375, 0.0166015625, 0.016357421875, -0.00006628036499023438, -0.033203125, 0.00848388671875, -0.0284423828125, 0.005950927734375, -0.003631591796875, -0.01214599609375, -0.0079345703125, 0.00176239013671875, 0.0054626...
[ 313, 18151, 47, 20625, 142508, 30145, 57860, 1556, 501, 1061, 17, 2806, 1884, 96760, 2831, 54397, 217, 112892, 27781, 3444, 23, 1284, 8035, 3525, 9014, 831, 18, 6183, 4488, 25647, 166589 ]
[ 0.1580810546875, 0.222412109375, 0.13720703125, 0.166748046875, 0.2406005859375, 0.0709228515625, 0.032958984375, 0.1431884765625, 0.12109375, 0.01373291015625, 0.00537109375, 0.05108642578125, 0.081298828125, 0.1455078125, 0.08233642578125, 0.0268096923828125, 0.012420654296875, 0...
embed
14767526_c0
14767526
haskell
0
Title: Haskell split a list into two by a pivot value Problem title: Haskell split a list into two by a pivot value Tags: haskell Problem: Haskell split a list into two by a pivot value I want to split [a] into ([a], [a]) by a pivot value and I have my code splitList :: (Ord a) => a -> [a] -> ([a],[a]) splitList pivot ...
Haskell split a list into two by a pivot value Haskell split a list into two by a pivot value haskell Haskell Ord Haskell split a list into two by a pivot value I want to split [a] into ([a], [a]) by a pivot value and I have my code But it iterates the list twice to generate two lists, is there a way to iterate only on...
[ -0.0103759765625, 0.000316619873046875, 0.00176239013671875, -0.0001068115234375, -0.01324462890625, 0.018798828125, -0.0125732421875, -0.0126953125, 0.0047607421875, -0.0029296875, 0.00811767578125, 0.0184326171875, 0.0024566650390625, 0.0140380859375, -0.0230712890625, 0.017456054687...
[ 20625, 142508, 65450, 5303, 3934, 6626, 390, 80953, 18, 34292, 1556, 35379, 3444, 11, 18151, 17, 8560, 1636, 186351, 139392, 3917, 67, 4734, 24145 ]
[ 0.1485595703125, 0.1943359375, 0.222412109375, 0.2264404296875, 0.146484375, 0.1702880859375, 0.0943603515625, 0.2120361328125, 0.1416015625, 0.1898193359375, 0.1343994140625, 0.1868896484375, 0.07879638671875, 0.0293426513671875, 0.099609375, 0.029541015625, 0.226806640625, 0.0254...
embed
16194246_c0
16194246
haskell
0
Title: Using condition in list comprehension in haskell Problem title: Using condition in list comprehension in haskell Tags: higher-order-functions, list-comprehension, haskell Problem: Using condition in list comprehension in haskell I want to use list comprehension to print only true listTo::(a->b)->[a]->[b] listTo ...
Using condition in list comprehension in haskell Using condition in list comprehension in haskell higher-order-functions list-comprehension haskell Using isTrue::Int Bool Using condition in list comprehension in haskell I want to use list comprehension to print only true But this doesn't work. Why is it?
[ 0.00061798095703125, -0.006103515625, 0.0111083984375, -0.006103515625, -0.007293701171875, 0.015380859375, 0.0111083984375, 0.032958984375, -0.00099945068359375, -0.0004673004150390625, -0.005126953125, -0.0135498046875, 0.0137939453125, 0.006103515625, -0.007568359375, -0.01324462890...
[ 345, 6953, 35431, 23, 5303, 46683, 3220, 6889, 1556, 142508, 77546, 80596, 137175, 277, 4692, 83, 618, 882, 12, 4153, 18, 2460, 929, 3444, 4527, 47, 28412, 4734, 29568, 903, 22027, 4488, 44084 ]
[ 0.09332275390625, 0.02667236328125, 0.274169921875, 0.0350341796875, 0.2073974609375, 0.1875, 0.1895751953125, 0.05950927734375, 0.1649169921875, 0.22412109375, 0.04913330078125, 0.11279296875, 0.11865234375, 0.0704345703125, 0.1416015625, 0.0892333984375, 0.003875732421875, 0.1826...
embed
38933426_c0
38933426
haskell
0
Title: Haskell Stack: installed packages are not visible Problem title: Haskell Stack: installed packages are not visible Tags: haskell, haskell-stack, atom-editor, ghc-mod Problem: Haskell Stack: installed packages are not visible I installed package with stack install but I cannot import the package unless I use stac...
Haskell Stack: installed packages are not visible Haskell Stack: installed packages are not visible haskell haskell-stack atom-editor ghc-mod Haskell Stack Haskell Stack: installed packages are not visible I installed package with stack install but I cannot import the package unless I use stack ghc or stack ghci ... Th...
[ 0.006805419921875, 0.007598876953125, 0.01373291015625, 0.020751953125, -0.00506591796875, 0.022216796875, -0.0106201171875, -0.0078125, -0.00677490234375, 0.017578125, -0.00335693359375, -0.015625, 0.00604248046875, 0.006683349609375, 0.0079345703125, 0.01068115234375, -0.0101928710...
[ 20625, 142508, 6512, 2594, 20600, 297, 98169, 7, 621, 959, 75693, 1556, 590, 34627, 175583, 31380, 238, 13415, 177261, 53418, 24927, 4527, 318, 2967, 5415, 4420, 3611, 18, 1957 ]
[ 0.1241455078125, 0.2183837890625, 0.1558837890625, 0.1492919921875, 0.181640625, 0.0141448974609375, 0.22119140625, 0.01019287109375, 0.05120849609375, 0.1275634765625, 0.240966796875, 0.119384765625, 0.1373291015625, 0.1597900390625, 0.1807861328125, 0.083251953125, 0.07659912109375...
embed
20826447_c0
20826447
haskell
0
Title: Haskell &quot;let&quot; syntax in a way that it spans multiple rows Problem title: Haskell &quot;let&quot; syntax in a way that it spans multiple rows Tags: let, haskell, rows Problem: Haskell "let" syntax in a way that it spans multiple rows Is it possible to write Haskell's "let" statement in a way that it spa...
Haskell &quot;let&quot; syntax in a way that it spans multiple rows Haskell &quot;let&quot; syntax in a way that it spans multiple rows let haskell rows Haskell Haskell "let" syntax in a way that it spans multiple rows Is it possible to write Haskell's "let" statement in a way that it spans multiple rows ? Or else , is...
[ 0.002838134765625, 0.0125732421875, -0.006072998046875, 0.029052734375, -0.007232666015625, -0.019775390625, 0.012939453125, -0.01397705078125, 0.007354736328125, 0.000652313232421875, -0.006317138671875, -0.01043701171875, 0.00775146484375, 0.0108642578125, -0.01446533203125, 0.000747...
[ 20625, 142508, 1974, 6002, 86531, 3917, 27734, 48716, 15555, 41502, 2633, 1556, 442, 7722, 33022, 63805, 7, 28282, 79315 ]
[ 0.1026611328125, 0.203125, 0.22802734375, 0.10693359375, 0.147705078125, 0.041107177734375, 0.1781005859375, 0.1671142578125, 0.2091064453125, 0.0264739990234375, 0.150146484375, 0.09228515625, 0.000244140625, 0.092041015625, 0.07470703125, 0.1595458984375, 0.00030517578125, 0.0439...
embed
44422753_c0
44422753
haskell
0
Title: Filter a list by pattern matching Problem title: Filter a list by pattern matching Tags: haskell Problem: Filter a list by pattern matching How can I filter a list, keeping the items that match a pattern, removing ones that don't? For example, if I have a list of lists, I would like a function... singleItemLists...
Filter a list by pattern matching Filter a list by pattern matching haskell Filter Filter a list by pattern matching How can I filter a list, keeping the items that match a pattern, removing ones that don't? For example, if I have a list of lists, I would like a function... ... to remove all items that don't match the ...
[ -0.005035400390625, 0.0155029296875, -0.005340576171875, -0.01007080078125, -0.00994873046875, -0.01165771484375, -0.01019287109375, 0.014404296875, 0.032470703125, -0.007110595703125, 0.0120849609375, -0.030029296875, -0.0072021484375, 0.008056640625, -0.02099609375, 0.00421142578125,...
[ 128896, 10, 5303, 390, 103510, 14858, 214, 1556, 142508, 11249, 831, 87, 46312, 120260, 55769, 450, 49146, 6496, 2301, 18, 765, 2806, 1884, 32354, 47, 87388, 756, 425, 41143, 35166, 180663, 2472, 19364, 96760, 3789 ]
[ 0.281982421875, 0.052215576171875, 0.22412109375, 0.08953857421875, 0.28369140625, 0.240234375, 0.0711669921875, 0.1588134765625, 0.222412109375, 0.032073974609375, 0.054931640625, 0.03070068359375, 0.2666015625, 0.1453857421875, 0.1337890625, 0.0146484375, 0.0958251953125, 0.06268...
embed
32573516_c0
32573516
haskell
0
Title: Is there a modern replacement for the strict-concurrency package? Problem title: Is there a modern replacement for the strict-concurrency package? Tags: haskell, concurrency Problem: Is there a modern replacement for the strict-concurrency package? Real World Haskell mentions the strict-concurrency library that ...
Is there a modern replacement for the strict-concurrency package? Is there a modern replacement for the strict-concurrency package? haskell concurrency Is there a modern replacement for the strict-concurrency package? Real World Haskell mentions the strict-concurrency library that provides strict versions of Chan and M...
[ -0.0242919921875, 0.0079345703125, 0.0206298828125, 0.0107421875, 0.001983642578125, 0.01214599609375, -0.004638671875, -0.0016326904296875, 0.0076904296875, -0.01806640625, 0.011962890625, -0.015625, 0.01904296875, -0.0225830078125, 0.00469970703125, 0.01385498046875, -0.00607299804...
[ 2071, 5744, 91995, 674, 81113, 9, 2271, 64240, 33, 2408, 98169, 2685, 100, 1556, 142508, 108636, 982, 5120, 6661, 20625, 41392, 35773, 1294, 87344, 11389, 30448, 136, 66160, 147, 102678, 3535, 104272, 22027, 18, 9969, 1340, 678, 17309, 527,...
[ 0.008819580078125, 0.178955078125, 0.1407470703125, 0.08392333984375, 0.2347412109375, 0.061279296875, 0.12939453125, 0.2071533203125, 0.1212158203125, 0.05560302734375, 0.2110595703125, 0.0229339599609375, 0.030517578125, 0.145263671875, 0.2412109375, 0.219970703125, 0.1298828125, ...
embed
56226380_c1
56226380
haskell
1
mp1 || M.null mp2 = R M.empty | otherwise = R $ M.foldrWithKey (\k s acc -> M.insert k (S.foldr (\x acc2 -> case M.lookup x mp2 of Nothing -> acc2 Just s2 -> S.union s2 acc2 ) S.empty s) acc ) M.empty mp1 Code signals: Data.Map, Data.Set, Control.Category, Difficulty, Relation, Category, Cat, Map, Set, Show, Cat.Categ...
mp1 || M.null mp2 = R M.empty | otherwise = R $ M.foldrWithKey (\k s acc -> M.insert k (S.foldr (\x acc2 -> case M.lookup x mp2 of Nothing -> acc2 Just s2 -> S.union s2 acc2 ) S.empty s) acc ) M.empty mp1 Code signals: Data.Map, Data.Set, Control.Category, Difficulty, Relation, Category, Cat, Map, Set, Show, Cat.Categ...
[ -0.0074462890625, 0.0032806396484375, 0.005523681640625, -0.01190185546875, -0.005767822265625, 0.00799560546875, -0.00933837890625, -0.018798828125, 0.01123046875, -0.01495361328125, -0.00836181640625, 0.024658203125, 0.0091552734375, 0.019287109375, -0.014404296875, 0.00946044921875,...
[ 9607, 418, 276, 5, 139550, 304, 2203, 627, 33548, 939, 120262, 3650, 42822, 42, 194583, 162429, 92, 91, 50015, 73, 33657, 472, 294, 7225, 64747, 2037, 111, 182747, 9563, 159, 87046, 28864, 26073, 7, 11809, 166179, 126, 27131, 76775, 3081,...
[ 0.223876953125, 0.1719970703125, 0.12939453125, 0.0153045654296875, 0.250244140625, 0.2152099609375, 0.0860595703125, 0.06427001953125, 0.1790771484375, 0.10791015625, 0.108154296875, 0.038909912109375, 0.15478515625, 0.09234619140625, 0.1351318359375, 0.2227783203125, 0.011260986328...
embed
71489589_c0
71489589
haskell
0
Title: Unable to coerce during `DerivingVia` when using optics types like `Prism&#x27;` Problem title: Unable to coerce during `DerivingVia` when using optics types like `Prism&#x27;` Tags: haskell, coercion, derivingvia, haskell-optics Problem: Unable to coerce during `DerivingVia` when using optics types like `Prism'...
Unable to coerce during `DerivingVia` when using optics types like `Prism&#x27;` Unable to coerce during `DerivingVia` when using optics types like `Prism&#x27;` haskell coercion derivingvia haskell-optics optics the type Optics.Internal.Optic Unable DerivingVia Prism Main.hs:24:13-19 Couldn Foo Stringable MyPrism When...
[ 0.0027923583984375, 0.00185394287109375, -0.0045166015625, 0.0289306640625, 0.020263671875, -0.000934600830078125, -0.00982666015625, -0.0018768310546875, 0.00102996826171875, -0.020263671875, 0.00494384765625, 0.02197265625, 0.035400390625, 0.0093994140625, -0.015869140625, -0.0050354...
[ 992, 2886, 552, 56, 329, 20271, 47731, 14, 6496, 36246, 17368, 233, 41637, 52895, 33163, 7, 39, 3768, 1556, 142508, 6447, 16406, 3459, 2146, 10644, 2331, 44851, 670, 112569, 1310, 20204, 12321, 127, 8363, 191147, 9572, 23351, 214, 2646, 9...
[ 0.049072265625, 0.1336669921875, 0.0955810546875, 0.1763916015625, 0.1083984375, 0.1077880859375, 0.1058349609375, 0.0572509765625, 0.06976318359375, 0.235107421875, 0.07684326171875, 0.16162109375, 0.1435546875, 0.1593017578125, 0.14990234375, 0.117431640625, 0.1708984375, 0.01457...
embed
41832211_c0
41832211
haskell
0
Title: Is there a way to rebind the unary minus (negate) to a different typeclass than Num? Problem title: Is there a way to rebind the unary minus (negate) to a different typeclass than Num? Tags: haskell Problem: Is there a way to rebind the unary minus (negate) to a different typeclass than Num? As I understand it, ...
Is there a way to rebind the unary minus (negate) to a different typeclass than Num? Is there a way to rebind the unary minus (negate) to a different typeclass than Num? haskell Num Is there a way to rebind the unary minus (negate) to a different typeclass than Num? As I understand it, the unary minus is the only unary...
[ -0.00640869140625, -0.00946044921875, 0.03173828125, 0.01611328125, -0.0157470703125, 0.0018463134765625, 0.01007080078125, 0.005584716796875, -0.001251220703125, 0.00732421875, -0.051513671875, -0.033447265625, 0.018798828125, -0.01007080078125, -0.023193359375, 0.0159912109375, -0....
[ 3917, 456, 89817, 220, 1294, 26948, 3331, 67, 47, 12921, 10644, 67413, 52782, 1556, 142508, 2071, 2685, 10, 3501, 28219, 4734, 39933, 23, 20625, 99091, 90584, 13 ]
[ 0.1002197265625, 0.169677734375, 0.27001953125, 0.156494140625, 0.1806640625, 0.311279296875, 0.2025146484375, 0.1949462890625, 0.10089111328125, 0.13037109375, 0.1759033203125, 0.22607421875, 0.239990234375, 0.114013671875, 0.26513671875, 0.013275146484375, 0.0144195556640625, 0.0...
embed
4299319_c0
4299319
haskell
0
Title: Getting a list of all possible data type values in Haskell Problem title: Getting a list of all possible data type values in Haskell Tags: haskell, types, list Problem: Getting a list of all possible data type values in Haskell If I have a data type say: data Color = Red | Yellow | Green Is there a way I can tur...
Getting a list of all possible data type values in Haskell Getting a list of all possible data type values in Haskell haskell types list Getting Haskell Color Red Yellow Green Getting a list of all possible data type values in Haskell If I have a data type say: Is there a way I can turn this into a list of type [Color]...
[ 0.0031280517578125, -0.00848388671875, -0.01275634765625, 0.0008087158203125, -0.00897216796875, 0.00482177734375, -0.01519775390625, -0.00125885009765625, -0.00384521484375, -0.020263671875, -0.01153564453125, -0.0301513671875, 0.006256103515625, 0.0038299560546875, -0.0115966796875, ...
[ 210732, 5303, 111, 756, 7722, 2053, 10644, 142424, 23, 20625, 142508, 10, 1556, 52895, 51193, 6096, 146762, 15497, 2685, 3917, 831, 15504, 3934, 10625, 1484, 20949, 80852, 181799, 28484, 2874, 103510 ]
[ 0.10015869140625, 0.158447265625, 0.0361328125, 0.0947265625, 0.1707763671875, 0.1363525390625, 0.21337890625, 0.1636962890625, 0.0419921875, 0.1552734375, 0.24755859375, 0.01385498046875, 0.1402587890625, 0.2012939453125, 0.201904296875, 0.128662109375, 0.180908203125, 0.155395507...
embed
44012108_c0
44012108
haskell
0
Title: Using Haskell&#x27;s Turtle to Call a Custom Bash Function Problem title: Using Haskell&#x27;s Turtle to Call a Custom Bash Function Tags: haskell, haskell-turtle Problem: Using Haskell's Turtle to Call a Custom Bash Function Using turtle, how does one run a custom bash command found in /a/path/to/a/file.sh ? It...
Using Haskell&#x27;s Turtle to Call a Custom Bash Function Using Haskell&#x27;s Turtle to Call a Custom Bash Function haskell haskell-turtle Using Haskell Turtle Call Custom Bash file.sh custom_bash_function Using Haskell's Turtle to Call a Custom Bash Function Using turtle, how does one run a custom bash command found...
[ 0.018310546875, 0.0166015625, 0.007293701171875, 0.04052734375, -0.015625, -0.004302978515625, -0.0091552734375, -0.01129150390625, -0.004852294921875, -0.015869140625, -0.00543212890625, 0.018798828125, -0.0213623046875, 0.00982666015625, 0.010986328125, -0.00799560546875, -0.005676...
[ 345, 6953, 20625, 142508, 3768, 4252, 17991, 47, 26265, 130664, 144334, 28670, 1556, 987, 11435, 1495, 114122, 87109, 137175, 2130, 3642, 14602, 1632, 11675, 75101, 14037, 248, 11, 128405, 188, 64, 29822, 2806, 183234, 111, 31344, 159029 ]
[ 0.0849609375, 0.034149169921875, 0.1102294921875, 0.2177734375, 0.061767578125, 0.17138671875, 0.203369140625, 0.0179290771484375, 0.1383056640625, 0.191162109375, 0.1824951171875, 0.1539306640625, 0.100341796875, 0.1280517578125, 0.1116943359375, 0.1510009765625, 0.19677734375, 0....
embed
77571858_c0
77571858
haskell
0
Title: How to solve basic error compile in haskell Problem title: How to solve basic error compile in haskell Tags: haskell, compiler-errors Problem: How to solve basic error compile in haskell Hello everyone I just start leraning Haskell and every code I'm going to compile its giving me the same error: <interactive>:1...
How to solve basic error compile in haskell How to solve basic error compile in haskell haskell compiler-errors Prelude How Variable Perhaps How to solve basic error compile in haskell Hello everyone I just start leraning Haskell and every code I'm going to compile its giving me the same error: Just expect to learn how...
[ -0.010498046875, 0.0081787109375, 0.0002498626708984375, 0.0283203125, 0.00061798095703125, 0.01544189453125, -0.004791259765625, 0.00154876708984375, -0.017822265625, -0.034912109375, -0.0260009765625, -0.047119140625, 0.0179443359375, 0.00933837890625, 0.029296875, -0.0140380859375, ...
[ 11249, 47, 86869, 62822, 18499, 9969, 1340, 23, 1556, 142508, 34759, 188800, 822, 84572, 2886, 181799, 30309, 1660, 4034, 20625, 11907, 18151, 7730, 6863, 68772, 163, 5701, 41206, 30698, 3642 ]
[ 0.030609130859375, 0.065673828125, 0.189453125, 0.197998046875, 0.2054443359375, 0.186767578125, 0.167724609375, 0.062744140625, 0.1492919921875, 0.2222900390625, 0.1077880859375, 0.1553955078125, 0.0660400390625, 0.120361328125, 0.0650634765625, 0.0836181640625, 0.04095458984375, ...
embed
12808065_c0
12808065
haskell
0
Title: &#x27;where&#x27; inside other expression Problem title: &#x27;where&#x27; inside other expression Tags: haskell Problem: 'where' inside other expression I can use let inside other expression. foo n = (let a = True in (\x -> a)) 3 foo' n | n == 1 = let a = True in a | n /= 1 = False But I can't do the same with ...
&#x27;where&#x27; inside other expression &#x27;where&#x27; inside other expression haskell 'where' inside other expression I can use let inside other expression. But I can't do the same with where Is it really impossible in haskell or just my mistake?
[ -0.007293701171875, 0.01141357421875, -0.0096435546875, -0.015625, 0.006195068359375, 0.0201416015625, -0.00174713134765625, 0.006011962890625, 0.018798828125, -0.0390625, -0.01336669921875, 0.002227783203125, 0.01190185546875, -0.01544189453125, 0.0093994140625, 0.004302978515625, -...
[ 3768, 136913, 46132, 3789, 125195, 1556, 142508, 831, 4527, 2633, 18, 5701, 7440, 442, 6183, 69201, 121742 ]
[ 0.135498046875, 0.2042236328125, 0.1798095703125, 0.1279296875, 0.216796875, 0.1292724609375, 0.2130126953125, 0.074951171875, 0.0777587890625, 0.2259521484375, 0.024261474609375, 0.00444793701171875, 0.20751953125, 0.0039520263671875, 0.00162506103515625, 0.1561279296875, 0.06304931...
embed
13247750_c1
13247750
haskell
1
argv[1], argv[2:] obj = load(open(fname)) print navigate(obj, path) The program would be run like this: $ cat data.json {"foo" : [[1, 2, 3, {"bar" : "barf"}]]} $ python showjson.py data.json foo 0 3 bar barf Code signals: qualified, Data.List, Data.Maybe, System.Environment, json, load, sys, argv, Navigating, Haskell,...
argv[1], argv[2:] obj = load(open(fname)) print navigate(obj, path) The program would be run like this: $ cat data.json {"foo" : [[1, 2, 3, {"bar" : "barf"}]]} $ python showjson.py data.json foo 0 3 bar barf Code signals: qualified, Data.List, Data.Maybe, System.Environment, json, load, sys, argv, Navigating, Haskell,...
[ 0.001983642578125, 0.00982666015625, -0.0126953125, 0.01007080078125, 0.000949859619140625, 0.0242919921875, 0.004486083984375, 0.0107421875, -0.012451171875, -0.032470703125, -0.0113525390625, 0.004241943359375, -0.01904296875, -0.0025634765625, -0.015869140625, -0.01165771484375, -...
[ 79459, 334, 25256, 4, 304, 12, 995, 170, 2203, 72367, 132, 59636, 420, 11627, 28412, 56136, 67, 3522, 60875, 16, 581, 1528, 2806, 186, 11675, 1884, 903, 3650, 7515, 2053, 1681, 3584, 31, 116, 138, 1299, 8152, 17198, 50828, 7639, 6493, ...
[ 0.188720703125, 0.2469482421875, 0.0499267578125, 0.02935791015625, 0.0384521484375, 0.0643310546875, 0.1541748046875, 0.1796875, 0.043975830078125, 0.1920166015625, 0.00128173828125, 0.15966796875, 0.113525390625, 0.18310546875, 0.1962890625, 0.298583984375, 0.171630859375, 0.1373...
embed
35304656_c0
35304656
haskell
0
Title: GHCI Haskell not remembering bindings in command line Problem title: GHCI Haskell not remembering bindings in command line Tags: command-line, binding, ghc, haskell Problem: GHCI Haskell not remembering bindings in command line I am trying to learn Haskell but it is a little hard as non of my bindings are rememb...
GHCI Haskell not remembering bindings in command line GHCI Haskell not remembering bindings in command line command-line binding ghc haskell GHCI Haskell GHCI Haskell not remembering bindings in command line I am trying to learn Haskell but it is a little hard as non of my bindings are remembered from the command line;...
[ -0.0191650390625, 0.01220703125, 0.00787353515625, 0.0208740234375, 0.0081787109375, 0.0235595703125, -0.00189971923828125, -0.00579833984375, -0.0086669921875, -0.0059814453125, -0.0172119140625, -0.0233154296875, 0.00150299072265625, 0.0152587890625, 0, 0.006805419921875, 0.0083618...
[ 41877, 17304, 20625, 142508, 959, 37629, 214, 128239, 7, 23, 75101, 13315, 2256, 31380, 238, 1556, 31577, 30698, 10176, 7941, 351, 140992, 33949, 35064, 6528, 15400, 1884, 4358 ]
[ 0.135498046875, 0.171630859375, 0.1419677734375, 0.21484375, 0.101806640625, 0.1475830078125, 0.039886474609375, 0.233642578125, 0.072265625, 0.0265045166015625, 0.16796875, 0.10345458984375, 0.0980224609375, 0.109130859375, 0.05853271484375, 0.139892578125, 0.039093017578125, 0.07...
embed
16323083_c0
16323083
haskell
0
Title: persistent: How do I get the I in ACID Problem title: persistent: How do I get the I in ACID Tags: haskell, yesod, persistent Problem: persistent: How do I get the I in ACID Assume I'm doing the following steps in a transaction: read some data A from the database do some calculation based on it write some data B...
persistent: How do I get the I in ACID persistent: How do I get the I in ACID haskell yesod persistent How ACID persistent: How do I get the I in ACID Assume I'm doing the following steps in a transaction: read some data A from the database do some calculation based on it write some data B to the database Is it possibl...
[ -0.0274658203125, 0.0205078125, -0.00018024444580078125, -0.005462646484375, 0.007171630859375, 0.0213623046875, 0.004486083984375, 0.0023651123046875, -0.00994873046875, -0.005340576171875, 0.0284423828125, 0.0242919921875, -0.039794921875, 0.0035552978515625, -0.0054931640625, -0.000...
[ 70560, 2517, 11249, 54, 87, 2046, 70, 23, 62, 169906, 1556, 142508, 2422, 23722, 66596, 98441, 124161, 12301, 2053, 63399, 74481, 35509, 33022, 335, 7722, 3249, 35782, 2174, 98816, 29459, 69307, 219488, 98169 ]
[ 0.22900390625, 0.1766357421875, 0.10107421875, 0.0155029296875, 0.2034912109375, 0.1319580078125, 0.09881591796875, 0.0863037109375, 0.128662109375, 0.265869140625, 0.1214599609375, 0.20458984375, 0.150634765625, 0.2001953125, 0.0233612060546875, 0.0452880859375, 0.131103515625, 0....
embed
53027959_c0
53027959
haskell
0
Title: what change is needed to make my Haskell code to take more generic pattern? Problem title: what change is needed to make my Haskell code to take more generic pattern? Tags: haskell Problem: what change is needed to make my Haskell code to take more generic pattern? Here is my coding in Haskell: (Add (Y 0 3) (Add...
what change is needed to make my Haskell code to take more generic pattern? what change is needed to make my Haskell code to take more generic pattern? haskell Haskell Add what change is needed to make my Haskell code to take more generic pattern? Here is my coding in Haskell: How do I make my code more generic pattern...
[ -0.013671875, 0.01239013671875, -0.000850677490234375, 0.015869140625, 0.0213623046875, 0.01251220703125, -0.0152587890625, -0.0118408203125, 0.0038299560546875, -0.01397705078125, 0.0159912109375, -0.03662109375, 0.01190185546875, -0.005035400390625, -0.0172119140625, 0.00355529785156...
[ 2367, 15549, 44841, 3249, 759, 20625, 142508, 18151, 5646, 1286, 189534, 103510, 32, 83, 47, 1556, 29117, 11853, 552, 6238, 11249, 1295, 107730, 442, 173072 ]
[ 0.07318115234375, 0.1768798828125, 0.184814453125, 0.07415771484375, 0.068359375, 0.1397705078125, 0.2236328125, 0.1932373046875, 0.0794677734375, 0.1680908203125, 0.258056640625, 0.215576171875, 0.01220703125, 0.032684326171875, 0.048248291015625, 0.1015625, 0.06884765625, 0.01507...
embed
53477658_c0
53477658
haskell
0
Title: What is the proper way to write doc for bindings? Problem title: What is the proper way to write doc for bindings? Tags: haskell, c2hs Problem: What is the proper way to write doc for bindings? While writing a Haskell binding for some libs written in C, a thing has to do is writing docs in haddock format. But si...
What is the proper way to write doc for bindings? What is the proper way to write doc for bindings? haskell c2hs What c2hs What is the proper way to write doc for bindings? While writing a Haskell binding for some libs written in C, a thing has to do is writing docs in haddock format. But since normally the binding is ...
[ 0.0013427734375, 0.0223388671875, -0.0172119140625, -0.00732421875, -0.0164794921875, 0.0205078125, -0.007110595703125, 0.0034637451171875, 0.00689697265625, -0.0010223388671875, 0.00830078125, -0.033935546875, -0.0033416748046875, 0.00885009765625, 0.003021240234375, 0.004058837890625...
[ 4865, 83, 70, 27798, 3917, 47, 33022, 51584, 100, 128239, 7, 1556, 142508, 501, 304, 127, 51404, 32562, 20625, 25474, 59121, 23, 313, 13580, 54, 4439, 1902, 138414, 9384, 3638, 1660, 111719, 2806, 23491, 18, 7311, 72977, 4358 ]
[ 0.056304931640625, 0.04034423828125, 0.0606689453125, 0.17724609375, 0.1326904296875, 0.0760498046875, 0.2139892578125, 0.26904296875, 0.1424560546875, 0.249267578125, 0.119873046875, 0.169677734375, 0.2369384765625, 0.0648193359375, 0.1461181640625, 0.14453125, 0.00732421875, 0.17...
embed
44197154_c0
44197154
haskell
0
Title: Always `$newline never` in Yesod Problem title: Always `$newline never` in Yesod Tags: widget, yesod, haskell, hamlet, newline Problem: Always `$newline never` in Yesod $newline never in Hamlet allows us to minify the HTML code. If we set it in a parent widget, it takes effect on it but not on the child widgets....
Always `$newline never` in Yesod Always `$newline never` in Yesod widget yesod haskell hamlet newline Always Yesod Always `$newline never` in Yesod $newline never in Hamlet allows us to minify the HTML code. If we set it in a parent widget, it takes effect on it but not on the child widgets. So we have to set $newline ...
[ -0.01324462890625, 0.0098876953125, 0.01104736328125, -0.015380859375, -0.0277099609375, 0.0291748046875, 0.01214599609375, 0.0026397705078125, 0.01068115234375, -0.0277099609375, -0.01251220703125, -0.015869140625, 0.00799560546875, 0.01141357421875, -0.010498046875, 0.000041723251342...
[ 203623, 4369, 54936, 2256, 8306, 23, 32635, 2199, 148631, 2422, 23722, 1556, 142508, 2057, 1974, 3525, 3650, 10699, 114864, 881, 40383, 19097, 18151, 5423, 49129, 21543, 29041, 47, 756, 28271, 4127, 11522, 51347 ]
[ 0.146484375, 0.054046630859375, 0.159912109375, 0.2239990234375, 0.199462890625, 0.006500244140625, 0.16552734375, 0.2486572265625, 0.240478515625, 0.0694580078125, 0.1531982421875, 0.0682373046875, 0.1646728515625, 0.096923828125, 0.2244873046875, 0.10693359375, 0.021240234375, 0....
embed
30039329_c0
30039329
haskell
0
Title: cabal sandbox with stackage Problem title: cabal sandbox with stackage Tags: stackage, haskell, cabal Problem: cabal sandbox with stackage I want to point my global cabal config to use stackage LTS only. Does cabal sandbox provide any value in that case? As I understand there should be no cabal hell anymore as a...
cabal sandbox with stackage cabal sandbox with stackage stackage haskell cabal cabal sandbox with stackage I want to point my global cabal config to use stackage LTS only. Does cabal sandbox provide any value in that case? As I understand there should be no cabal hell anymore as all projects will use a predetermined se...
[ -0.00250244140625, -0.0084228515625, -0.004364013671875, -0.0123291015625, -0.0206298828125, 0.000701904296875, 0.00131988525390625, 0.02783203125, 0.0004634857177734375, -0.006683349609375, -0.0174560546875, 0.0029144287109375, -0.0029296875, -0.021484375, 0.017578125, 0.0108032226562...
[ 109524, 19096, 11728, 678, 177261, 4588, 1556, 142508, 3444, 6275, 7964, 153837, 4527, 339, 12763, 4734, 22691, 2499, 34292, 7225, 28219, 5608, 33600, 176683, 756, 77635, 1653, 13, 30524, 5423, 98169, 142027, 45367, 25842, 3917, 479, 177149, ...
[ 0.25048828125, 0.1790771484375, 0.2113037109375, 0.063720703125, 0.2320556640625, 0.189697265625, 0.0875244140625, 0.1866455078125, 0.05340576171875, 0.173828125, 0.10986328125, 0.205322265625, 0.1221923828125, 0.07177734375, 0.169189453125, 0.0994873046875, 0.06365966796875, 0.010...
embed
11267351_c0
11267351
haskell
0
Title: Is it possible to see package download stats from Hackage? Problem title: Is it possible to see package download stats from Hackage? Tags: haskell, hackage, cabal Problem: Is it possible to see package download stats from Hackage? It looks like there are reports released on occasion that detail downloads for som...
Is it possible to see package download stats from Hackage? Is it possible to see package download stats from Hackage? haskell hackage cabal Hackage Is it possible to see package download stats from Hackage? It looks like there are reports released on occasion that detail downloads for some of the top packages ( http://...
[ 0.00714111328125, 0.005462646484375, 0.0225830078125, -0.00142669677734375, -0.0137939453125, 0.00970458984375, -0.0030670166015625, -0.00811767578125, -0.006622314453125, 0.0322265625, -0.0194091796875, -0.042236328125, 0.00811767578125, 0.00165557861328125, -0.010986328125, -0.001609...
[ 2071, 442, 7722, 1957, 98169, 7026, 63841, 1295, 52922, 4588, 1556, 142508, 85526, 109524, 47, 33342, 117729, 121447, 46505, 22443, 2663, 10557, 14051, 7177, 49863, 33409, 139509, 17346, 7, 3166, 46799, 150011, 11651 ]
[ 0.042022705078125, 0.00079345703125, 0.1326904296875, 0.125732421875, 0.2108154296875, 0.187255859375, 0.1978759765625, 0.09228515625, 0.2047119140625, 0.232666015625, 0.1075439453125, 0.1934814453125, 0.170166015625, 0.185546875, 0.022918701171875, 0.0204925537109375, 0.119506835937...
embed
11970140_c0
11970140
haskell
0
Title: List monad: difference between `&gt;&gt;=` and `return` behaviors Problem title: List monad: difference between `&gt;&gt;=` and `return` behaviors Tags: haskell, monads Problem: List monad: difference between `>>=` and `return` behaviors I'm just getting started on monads, and I can't figure out why these two ex...
List monad: difference between `&gt;&gt;=` and `return` behaviors List monad: difference between `&gt;&gt;=` and `return` behaviors haskell monads List List monad: difference between `>>=` and `return` behaviors I'm just getting started on monads, and I can't figure out why these two expressions evaluate differently:
[ 0.006317138671875, 0.0010986328125, 0.012451171875, 0.004119873046875, 0.0126953125, 0.01708984375, 0.006561279296875, -0.009765625, 0.0169677734375, 0.0184326171875, 0.0031585693359375, -0.0296630859375, 0.00738525390625, 0.0157470703125, 0.000579833984375, -0.0026397705078125, 0.00...
[ 32036, 2667, 712, 60212, 17721, 1230, 5386, 74, 1369, 136, 65395, 19, 123166, 1556, 142508, 12, 30813, 7, 26859, 26366, 15400, 6097, 6626, 125195, 151575, 13, 12921 ]
[ 0.2188720703125, 0.156005859375, 0.1832275390625, 0.1982421875, 0.07568359375, 0.06549072265625, 0.1837158203125, 0.007080078125, 0.221923828125, 0.066650390625, 0.2578125, 0.18701171875, 0.26025390625, 0.111328125, 0.2296142578125, 0.006195068359375, 0.23779296875, 0.0166778564453...
embed
51230853_c1
51230853
haskell
1
.Compose ( Hask/Functor/Compose.hs, dist/build/Hask/Functor/Compose.o ) Code signals: qualified, Data.Kind, How, LANGUAGE, EmptyDataDecls, TypeSynonymInstances, FlexibleContexts, FlexibleInstances, GADTs, TypeFamilies, TypeInType, Hask.Functor.Compose, Prelude, Base, Type, Categories, Cat, Natural, Transformations, Nat...
.Compose ( Hask/Functor/Compose.hs, dist/build/Hask/Functor/Compose.o ) Code signals: qualified, Data.Kind, How, LANGUAGE, EmptyDataDecls, TypeSynonymInstances, FlexibleContexts, FlexibleInstances, GADTs, TypeFamilies, TypeInType, Hask.Functor.Compose, Prelude, Base, Type, Categories, Cat, Natural, Transformations, Nat...
[ -0.00775146484375, -0.004638671875, 0.00009775161743164062, 0.0294189453125, 0.00457763671875, 0.0020751953125, -0.0029449462890625, -0.002349853515625, 0.01080322265625, 0.0106201171875, -0.0174560546875, -0.0223388671875, 0.00445556640625, 0.009765625, -0.015380859375, 0.00439453125,...
[ 5, 10770, 78381, 15, 1391, 1042, 64, 97249, 18770, 127, 7, 45, 271, 177149, 6495, 31, 28864, 26073, 12, 217225, 11809, 605, 7250, 11249, 3358, 98064, 75930, 31678, 939, 137989, 120152, 8080, 60457, 3371, 45757, 116071, 180842, 2661, 22829, ...
[ 0.171142578125, 0.2374267578125, 0.314697265625, 0.03375244140625, 0.2027587890625, 0.1968994140625, 0.0087890625, 0.140869140625, 0.1519775390625, 0.1209716796875, 0.107177734375, 0.04052734375, 0.07952880859375, 0.1553955078125, 0.1708984375, 0.1326904296875, 0.260498046875, 0.27...
embed
4577146_c0
4577146
haskell
0
Title: Good choice for fast random generator in Haskell Problem title: Good choice for fast random generator in Haskell Tags: random, haskell Problem: Good choice for fast random generator in Haskell I have a use-case where I want to test a program for some gambling game. The random numbers I need should be in a very s...
Good choice for fast random generator in Haskell Good choice for fast random generator in Haskell random haskell Good Haskell Good choice for fast random generator in Haskell I have a use-case where I want to test a program for some gambling game. The random numbers I need should be in a very small area (1 to 9), and t...
[ -0.0162353515625, 0.00186920166015625, 0.0245361328125, -0.035888671875, 0.0033721923828125, 0.0068359375, -0.005950927734375, -0.021728515625, 0.00177764892578125, -0.042236328125, 0.01226806640625, 0.0111083984375, 0.0036468505859375, 0.0157470703125, 0.007659912109375, -0.0075683593...
[ 18621, 44126, 4271, 96759, 145823, 23, 20625, 142508, 100, 1556, 4527, 58437, 3444, 3034, 1528, 208782, 6712, 101935, 3871, 5608, 4552, 19336, 16128, 2858, 47, 77816, 110, 2773, 161789, 44841, 5570, 5792, 72803, 11522, 25647 ]
[ 0.1114501953125, 0.1365966796875, 0.176025390625, 0.203857421875, 0.2313232421875, 0.08056640625, 0.1484375, 0.23388671875, 0.062103271484375, 0.1356201171875, 0.056304931640625, 0.0609130859375, 0.03289794921875, 0.1348876953125, 0.07098388671875, 0.12060546875, 0.005767822265625, ...
embed
31866344_c0
31866344
haskell
0
Title: Haskell - Writing foldr recursively Problem title: Haskell - Writing foldr recursively Tags: recursion, haskell Problem: Haskell - Writing foldr recursively I am trying to write the library function foldr using recursion. However, I am getting syntax errors and not sure about the functional correctness. This is ...
Haskell - Writing foldr recursively Haskell - Writing foldr recursively recursion haskell Haskell Writing Haskell - Writing foldr recursively I am trying to write the library function foldr using recursion. However, I am getting syntax errors and not sure about the functional correctness. This is my code: I would appre...
[ -0.01904296875, 0.00244140625, 0.00170135498046875, -0.004669189453125, -0.014892578125, 0.01226806640625, -0.00445556640625, 0.00015926361083984375, -0.005950927734375, -0.002960205078125, 0.004150390625, -0.0264892578125, -0.0021514892578125, 0.018798828125, 0.0177001953125, -0.01611...
[ 20625, 142508, 213185, 18344, 7569, 195625, 5844, 538, 1830, 1556, 31577, 33022, 35773, 1294, 32354, 17368, 6002, 86531, 18499, 9077, 123309, 26785, 7432, 18151, 77947, 4358 ]
[ 0.112548828125, 0.2188720703125, 0.1854248046875, 0.166748046875, 0.232666015625, 0.205322265625, 0.1412353515625, 0.06927490234375, 0.129150390625, 0.1103515625, 0.04876708984375, 0.10052490234375, 0.1085205078125, 0.0275421142578125, 0.122314453125, 0.055755615234375, 0.04364013671...
embed
12238836_c0
12238836
haskell
0
Title: How to check Haskell infix operator precedence Problem title: How to check Haskell infix operator precedence Tags: haskell, ghci, infix-operator Problem: How to check Haskell infix operator precedence I can see the type of an infix operator in GHCi with :t like so: >:t (.) (.) :: (b -> c) -> (a -> b) -> a -> c H...
How to check Haskell infix operator precedence How to check Haskell infix operator precedence haskell ghci infix-operator How Haskell How to check Haskell infix operator precedence I can see the type of an infix operator in GHCi with :t like so: How can i see the operator precedence in GHCi? is that possible? Also, bon...
[ 0.0177001953125, -0.0067138671875, 0.0120849609375, 0.03662109375, -0.0027008056640625, 0.006011962890625, 0.016357421875, -0.00145721435546875, 0.00119781494140625, -0.0257568359375, 0.010986328125, -0.03369140625, 0.019775390625, -0.0133056640625, -0.01177978515625, 0.009521484375, ...
[ 11249, 47, 12765, 20625, 142508, 23, 55923, 39933, 107671, 6620, 1556, 31380, 318, 206469, 1957, 10644, 527, 73265, 14, 152, 18, 1884, 221, 7722, 9396, 31344, 479, 822, 112, 32354 ]
[ 0.03167724609375, 0.0254974365234375, 0.1773681640625, 0.1270751953125, 0.2353515625, 0.1251220703125, 0.2327880859375, 0.202392578125, 0.1390380859375, 0.0823974609375, 0.111083984375, 0.0780029296875, 0.1148681640625, 0.167236328125, 0.09228515625, 0.110107421875, 0.037261962890625...
embed
25393606_c0
25393606
haskell
0
Title: How do I navigate a directory in the GHCi shell? Problem title: How do I navigate a directory in the GHCi shell? Tags: haskell Problem: How do I navigate a directory in the GHCi shell? The tutorial I'm reading says after we've defined the function, we need to go to where it is saved and load it. The GHCi shell t...
How do I navigate a directory in the GHCi shell? How do I navigate a directory in the GHCi shell? haskell How GHCi How do I navigate a directory in the GHCi shell? The tutorial I'm reading says after we've defined the function, we need to go to where it is saved and load it. The GHCi shell that I'm using seems to only ...
[ -0.0029754638671875, 0.00014781951904296875, 0.006927490234375, 0.0291748046875, 0.0026092529296875, 0.01953125, 0.0030975341796875, 0.00408935546875, -0.01092529296875, -0.0283203125, -0.01055908203125, -0.0086669921875, -0.00616455078125, -0.0031585693359375, -0.0014190673828125, 0.0...
[ 11249, 54, 87, 56136, 67, 14364, 53, 23, 527, 73265, 14, 128019, 1556, 142508, 10, 57143, 16454, 7103, 61924, 32354, 3871, 738, 47, 7440, 57, 4126, 72367, 17368, 4734, 29481, 20625, 91084, 831, 18, 25813, 151107, 16940, 98567, 11435, 83 ]
[ 0.0816650390625, 0.0289306640625, 0.0271759033203125, 0.2279052734375, 0.1163330078125, 0.1600341796875, 0.123291015625, 0.0836181640625, 0.1170654296875, 0.144775390625, 0.213623046875, 0.24560546875, 0.1287841796875, 0.2467041015625, 0.019744873046875, 0.091552734375, 0.01229858398...
embed
47866464_c0
47866464
haskell
0
Title: How to compare elements in a [[]]? Problem title: How to compare elements in a [[]]? Tags: list, haskell Problem: How to compare elements in a [[]]? I am dealing with small program with Haskell. Probably the answer is really simple but I try and get no result. So one of the part in my program is the list: first ...
How to compare elements in a [[]]? How to compare elements in a [[]]? list haskell How How to compare elements in a [[]]? I am dealing with small program with Haskell. Probably the answer is really simple but I try and get no result. So one of the part in my program is the list: and according to that list I want to mak...
[ -0.011962890625, 0.00213623046875, -0.0030364990234375, 0.004241943359375, -0.00885009765625, -0.0024566650390625, 0.007171630859375, 0.016357421875, 0.004058837890625, -0.00909423828125, 0.004364013671875, 0.000675201416015625, 0.01470947265625, 0.0010528564453125, -0.03271484375, -0....
[ 11249, 47, 69101, 80854, 23, 10, 110558, 86245, 32, 5303, 1556, 142508, 184017, 19336, 1528, 678, 20625, 70, 35166, 8781, 2831, 3444, 3249, 3525, 12830, 621, 105950, 2203, 152 ]
[ 0.1121826171875, 0.09942626953125, 0.238037109375, 0.236328125, 0.1376953125, 0.09185791015625, 0.0921630859375, 0.139404296875, 0.0215301513671875, 0.212158203125, 0.118896484375, 0.2127685546875, 0.00775146484375, 0.057952880859375, 0.08819580078125, 0.0281829833984375, 0.107604980...
embed
66228094_c0
66228094
haskell
0
Title: How does stack find packages from extra-deps? Problem title: How does stack find packages from extra-deps? Tags: haskell, haskell-stack Problem: How does stack find packages from extra-deps? In https://docs.haskellstack.org/en/stable/GUIDE/#extra-deps The docs mentioned one example of adding and extra-deps only ...
How does stack find packages from extra-deps? How does stack find packages from extra-deps? haskell haskell-stack extra-deps How How does stack find packages from extra-deps? In https://docs.haskellstack.org/en/stable/GUIDE/#extra-deps The docs mentioned one example of adding and extra-deps only by name. I know that we...
[ 0.0164794921875, 0.00035858154296875, 0.01025390625, 0.0078125, -0.0142822265625, 0.02001953125, -0.0035400390625, 0.0272216796875, -0.01239013671875, 0.0189208984375, -0.0002613067626953125, -0.044677734375, 0.01324462890625, 0.012939453125, 0.005218505859375, 0.00390625, 0.00233459...
[ 11249, 177261, 7413, 98169, 7, 1295, 4173, 112, 6423, 14602, 1556, 142508, 590, 2594, 29713, 10557, 22819, 43578, 36497, 112779, 27781, 154107, 136, 4734, 9351, 29458, 217, 140505, 25002, 22691, 3642, 93002, 7440, 47, 450, 83, 959, 23, 7668...
[ 0.09423828125, 0.25341796875, 0.1807861328125, 0.2442626953125, 0.1107177734375, 0.1136474609375, 0.1929931640625, 0.22265625, 0.2138671875, 0.0166473388671875, 0.092529296875, 0.176513671875, 0.14111328125, 0.148193359375, 0.00128173828125, 0.07012939453125, 0.0614013671875, 0.039...
embed
14969010_c0
14969010
haskell
0
Title: How would I write cycle as a lambda function? Problem title: How would I write cycle as a lambda function? Tags: haskell Problem: How would I write cycle as a lambda function? Just for fun, here is my own version of cycle : myCycle :: [a] -> [a] myCycle xs = xs ++ myCycle xs The right-hand side refers to both th...
How would I write cycle as a lambda function? How would I write cycle as a lambda function? haskell How How would I write cycle as a lambda function? Just for fun, here is my own version of cycle : The right-hand side refers to both the function name myCycle and the parameter xs . Is it possible to implement myCycle wi...
[ -0.0106201171875, 0.0015869140625, -0.00323486328125, -0.006103515625, 0.01806640625, -0.00872802734375, 0.0091552734375, -0.00689697265625, 0.01324462890625, -0.04345703125, -0.0107421875, 0.00811767578125, -0.00970458984375, 0.016357421875, 0.004119873046875, 0.0125732421875, -0.04...
[ 11249, 2806, 33022, 105823, 237, 21, 6492, 85, 32354, 1556, 142508, 87, 10, 7477, 10002, 11389, 7108, 12336, 5609, 15005, 759, 151612, 13, 171859, 1022, 7, 7722, 29479, 15490, 41392 ]
[ 0.06829833984375, 0.07763671875, 0.193603515625, 0.287353515625, 0.13037109375, 0.0953369140625, 0.188720703125, 0.155029296875, 0.1888427734375, 0.10693359375, 0.2034912109375, 0.011749267578125, 0.0243988037109375, 0.0323486328125, 0.01544189453125, 0.04290771484375, 0.041931152343...
embed
20960044_c0
20960044
haskell
0
Title: Haskell monad for simulation Problem title: Haskell monad for simulation Tags: haskell Problem: Haskell monad for simulation What is the best way to represent state updated by input? I simulate physical system. It has state (coordinates, velocities). State is updated by simulation that takes some parameters (for...
Haskell monad for simulation Haskell monad for simulation haskell Haskell Haskell monad for simulation What is the best way to represent state updated by input? I simulate physical system. It has state (coordinates, velocities). State is updated by simulation that takes some parameters (forces) from stdin . Result goes...
[ -0.02001953125, 0.006988525390625, -0.0032196044921875, 0.013427734375, 0.0032958984375, 0.00069427490234375, 0.0016021728515625, -0.004852294921875, -0.0189208984375, -0.0262451171875, -0.0028533935546875, -0.01171875, -0.00946044921875, -0.0169677734375, 0.004180908203125, -0.0061950...
[ 20625, 142508, 2667, 712, 100, 40226, 1556, 1363, 2965, 3917, 47, 33636, 11341, 150011, 390, 107730, 67, 72761, 5426, 43297, 191060, 22836, 51776, 171859, 50930, 6138, 3035, 126684, 246, 1003, 7103, 12638, 105823, 7663, 5608, 7279, 541, 12301...
[ 0.1376953125, 0.2149658203125, 0.116455078125, 0.1864013671875, 0.051666259765625, 0.26806640625, 0.134765625, 0.0399169921875, 0.09716796875, 0.051971435546875, 0.0261383056640625, 0.2103271484375, 0.185791015625, 0.2384033203125, 0.0618896484375, 0.216796875, 0.0161590576171875, ...
embed
30561852_c1
30561852
haskell
1
<- sync newEvent btn <- mkBtn label on (const $ sync $ t ()) "click" def btn return (btn, e) mkDiv :: Behaviour Text -> IO JQuery mkDiv b = do div <- select "<div/>" sync $ listen (value b) (\t -> setText t div >> return ()) return div The full example is under https://github.com/j-keck/ghcjs-sodium thanks Code signal...
<- sync newEvent btn <- mkBtn label on (const $ sync $ t ()) "click" def btn return (btn, e) mkDiv :: Behaviour Text -> IO JQuery mkDiv b = do div <- select "<div/>" sync $ listen (value b) (\t -> setText t div >> return ()) return div The full example is under https://github.com/j-keck/ghcjs-sodium thanks Code signal...
[ -0.006317138671875, 0.0128173828125, 0.00274658203125, -0.008544921875, 0.0184326171875, -0.000514984130859375, -0.00103759765625, -0.0008697509765625, 0.017822265625, -0.056396484375, 0.001556396484375, -0.0260009765625, 0.00860595703125, 0.031494140625, 0.00299072265625, -0.021362304...
[ 9, 6002, 238, 3525, 192134, 18, 19, 19201, 571, 67967, 98, 25553, 3650, 808, 16, 123278, 8, 876, 30646, 16723, 28, 192576, 873, 98409, 34639, 24129, 6, 17780, 821, 41732, 54, 18221, 36849, 30618, 44632, 27494, 5423, 174379, 27781, 32102, ...
[ 0.0042724609375, 0.1939697265625, 0.07666015625, 0.12158203125, 0.2303466796875, 0.0960693359375, 0.096923828125, 0.10748291015625, 0.07122802734375, 0.2320556640625, 0.03973388671875, 0.045318603515625, 0.06890869140625, 0.10614013671875, 0.01104736328125, 0.269775390625, 0.01901245...
embed
13792477_c0
13792477
haskell
0
Title: Recursion Haskell - minimum value function Problem title: Recursion Haskell - minimum value function Tags: haskell, functional-programming Problem: Recursion Haskell - minimum value function Is there another way to do this function without the use haskell functions mymin :: (Ord a) => [a] -> a mymin [] = error "...
Recursion Haskell - minimum value function Recursion Haskell - minimum value function haskell functional-programming Recursion Haskell Ord x:xs Recursion Haskell - minimum value function Is there another way to do this function without the use haskell functions and tell me what does mymin :: (Ord a) => [a] ->a mean?
[ -0.0107421875, -0.004119873046875, 0.03076171875, -0.0010223388671875, 0.0140380859375, 0.010498046875, 0.029052734375, -0.0091552734375, 0.020263671875, -0.0164794921875, 0.0235595703125, -0.009033203125, 0.0208740234375, -0.0068359375, 0.0018768310546875, 0.002960205078125, 0.02429...
[ 165428, 42, 6889, 20625, 142508, 15440, 34292, 32354, 1556, 123309, 28966, 35379, 1022, 12, 425, 15700, 3917, 54, 15490, 4527, 14192, 2367, 759, 1249, 1984, 143045, 10, 44357, 11, 33079, 29459 ]
[ 0.110107421875, 0.1280517578125, 0.1019287109375, 0.111328125, 0.2066650390625, 0.2275390625, 0.17041015625, 0.166015625, 0.085693359375, 0.1158447265625, 0.060150146484375, 0.18994140625, 0.0703125, 0.0166778564453125, 0.0728759765625, 0.02984619140625, 0.0167083740234375, 0.01315...
embed
36816713_c0
36816713
haskell
0
Title: make GHC to do more GCs? Problem title: make GHC to do more GCs? Tags: garbage-collection, ghc, haskell Problem: make GHC to do more GCs? In order to obtain a more accurate measure of the maximium live size of some programs, I'd like to have the runtime system to do more frequent garbage collections. Are there f...
make GHC to do more GCs? make GHC to do more GCs? garbage-collection ghc haskell GHC GCs make GHC to do more GCs? In order to obtain a more accurate measure of the maximium live size of some programs, I'd like to have the runtime system to do more frequent garbage collections. Are there flags to GHC that directly/indir...
[ 0.004669189453125, 0.01373291015625, 0.0150146484375, -0.0111083984375, -0.003692626953125, -0.004730224609375, -0.03369140625, -0.005645751953125, 0.0089111328125, -0.020263671875, 0.024658203125, -0.0220947265625, 0.000370025634765625, 0.01300048828125, 0.0079345703125, 0.00318908691...
[ 3249, 527, 73265, 47, 54, 1286, 69657, 7, 32, 3671, 402, 429, 196352, 31380, 238, 1556, 142508, 113054, 152018, 72350, 39771, 6664, 6867, 13267, 103391, 1884, 11675, 6032, 5426, 103351, 42486, 49938, 105237, 80581, 16750, 183540, 51339, 831, ...
[ 0.119384765625, 0.116455078125, 0.23193359375, 0.06842041015625, 0.09521484375, 0.1868896484375, 0.2142333984375, 0.1114501953125, 0.014984130859375, 0.093994140625, 0.1834716796875, 0.0936279296875, 0.1607666015625, 0.115234375, 0.112060546875, 0.1295166015625, 0.21337890625, 0.03...
embed
15812980_c1
15812980
haskell
1
from: ["Kevin", "Jo", "Liz", "Amy", "Sam", "Zoe"] to: ["Bob", "Kevin", "Jo", "Liz", "Amy", "Sam", "Zoe"] Thanks in advance to all the provided answers!! Code signals: Haskell, Title, Actor, Cast, Year, Fan, Fans, Period, Film, Database, Casino, Royale, Daniel, Craig, Eva, Green, Judi, Dench, Garry, Dave, Zoe, Kevin, E...
from: ["Kevin", "Jo", "Liz", "Amy", "Sam", "Zoe"] to: ["Bob", "Kevin", "Jo", "Liz", "Amy", "Sam", "Zoe"] Thanks in advance to all the provided answers!! Code signals: Haskell, Title, Actor, Cast, Year, Fan, Fans, Period, Film, Database, Casino, Royale, Daniel, Craig, Eva, Green, Judi, Dench, Garry, Dave, Zoe, Kevin, E...
[ 0.021240234375, 0.0179443359375, -0.0191650390625, 0.017333984375, -0.016845703125, 0.00982666015625, -0.0146484375, 0.0120849609375, -0.005218505859375, -0.02197265625, 0.007415771484375, -0.01495361328125, 0.01226806640625, 0.028564453125, -0.033203125, -0.006256103515625, 0.001632...
[ 1295, 12, 58, 15017, 2082, 16604, 866, 1418, 830, 284, 1176, 29494, 60551, 13, 47, 571, 3522, 268, 22362, 129745, 756, 70, 62952, 35166, 7, 1146, 28864, 26073, 20625, 142508, 48962, 185617, 32301, 42552, 11213, 105426, 92329, 3847, 187781, ...
[ 0.257568359375, 0.1053466796875, 0.03985595703125, 0.0982666015625, 0.2138671875, 0.190673828125, 0.067626953125, 0.1318359375, 0.071533203125, 0.026275634765625, 0.17041015625, 0.1756591796875, 0.149169921875, 0.192626953125, 0.155029296875, 0.0732421875, 0.138916015625, 0.1716308...
embed
52577833_c0
52577833
haskell
0
Title: what&#x27;s the difference between Test.QuickCheck and Test.Tasty.QuickCheck? Problem title: what&#x27;s the difference between Test.QuickCheck and Test.Tasty.QuickCheck? Tags: haskell-stack, haskell, quickcheck Problem: what's the difference between Test.QuickCheck and Test.Tasty.QuickCheck? I am new to Quickch...
what&#x27;s the difference between Test.QuickCheck and Test.Tasty.QuickCheck? what&#x27;s the difference between Test.QuickCheck and Test.Tasty.QuickCheck? haskell-stack haskell quickcheck Test.QuickCheck Test.Tasty.QuickCheck what's the difference between Test.QuickCheck and Test.Tasty.QuickCheck? I am new to Quickche...
[ 0.0013580322265625, -0.010498046875, 0.0069580078125, 0.0162353515625, 0.00604248046875, 0.000614166259765625, 0.00762939453125, -0.005615234375, -0.0023345947265625, 0.01348876953125, 0.005889892578125, -0.01165771484375, 0.01611328125, -0.0126953125, -0.0002956390380859375, 0.0043029...
[ 3768, 60212, 17721, 8647, 96010, 2594, 202567, 136, 9874, 8946, 1556, 142508, 590, 63773, 78292, 2367, 70, 5, 3525, 89038, 1528, 24927, 43240, 13416, 52366, 959, 7413, 88996, 111337 ]
[ 0.04986572265625, 0.183349609375, 0.0738525390625, 0.169677734375, 0.0887451171875, 0.08489990234375, 0.25390625, 0.077880859375, 0.185302734375, 0.20947265625, 0.0806884765625, 0.1829833984375, 0.043701171875, 0.11376953125, 0.2484130859375, 0.016143798828125, 0.00921630859375, 0....
embed
47242294_c1
47242294
haskell
1
all works. I'll be happy for any feedback on this as well. However, I can't seem to understand how to solve the evh . evh is supposed to calculate the heigh of the tree. It should be evh :: Exp -> Int The assignment says it should treat T and F as height 1 . It goes on that Not x should evaluate to height x + 1 . And ...
all works. I'll be happy for any feedback on this as well. However, I can't seem to understand how to solve the evh . evh is supposed to calculate the heigh of the tree. It should be evh :: Exp -> Int The assignment says it should treat T and F as height 1 . It goes on that Not x should evaluate to height x + 1 . And ...
[ -0.0033721923828125, -0.003753662109375, -0.017333984375, 0.005615234375, -0.00457763671875, 0.007354736328125, -0.0218505859375, -0.014892578125, -0.006011962890625, -0.0260009765625, -0.000514984130859375, -0.018310546875, 0.01531982421875, 0.01507568359375, -0.007476806640625, -0.01...
[ 756, 43240, 58269, 33306, 831, 18, 48903, 28219, 3642, 86869, 3404, 127, 134598, 74481, 67, 70, 764, 6958, 111, 53201, 5608, 1984, 60075, 33079, 360, 95486, 674, 85689, 384, 136, 563, 237, 155955, 106, 11205, 1022, 151575, 47, 997, 3347, ...
[ 0.06964111328125, 0.1204833984375, 0.06304931640625, 0.010955810546875, 0.0333251953125, 0.0921630859375, 0.036865234375, 0.1209716796875, 0.0202789306640625, 0.20068359375, 0.166748046875, 0.2288818359375, 0.0906982421875, 0.181640625, 0.0596923828125, 0.0185089111328125, 0.1484375,...
embed
77742455_c0
77742455
haskell
0
Title: Why does Parsec stop parsing with multiple parser? Problem title: Why does Parsec stop parsing with multiple parser? Tags: haskell, parsec, parsing Problem: Why does Parsec stop parsing with multiple parser? I'm trying to write a simple parser in Haskell using Parsec but my input "Hello World" is never correctly...
Why does Parsec stop parsing with multiple parser? Why does Parsec stop parsing with multiple parser? haskell parsec parsing Why Parsec Hello World Why does Parsec stop parsing with multiple parser? I'm trying to write a simple parser in Haskell using Parsec but my input "Hello World" is never correctly parsed. My code...
[ -0.01068115234375, 0.00823974609375, -0.002593994140625, 0.031005859375, -0.00787353515625, 0.0224609375, -0.0184326171875, -0.033447265625, 0.006134033203125, -0.016845703125, 0.001068115234375, -0.005035400390625, 0.01116943359375, 0.0062255859375, -0.0037078857421875, -0.00823974609...
[ 44084, 14602, 2392, 39797, 7279, 366, 6953, 678, 48716, 2189, 1556, 142508, 35378, 6661, 31577, 33022, 8781, 20625, 107730, 841, 13817, 8306, 26785, 5281, 18151, 33342, 1884, 11675, 18499, 241957, 35011, 65421 ]
[ 0.1270751953125, 0.031951904296875, 0.161376953125, 0.25390625, 0.173828125, 0.1737060546875, 0.10614013671875, 0.09979248046875, 0.200439453125, 0.194580078125, 0.08966064453125, 0.216064453125, 0.1719970703125, 0.1748046875, 0.004669189453125, 0.0249786376953125, 0.0667724609375, ...
embed
63793632_c0
63793632
haskell
0
Title: Reorder the Ord of chars in Haskell? Problem title: Reorder the Ord of chars in Haskell? Tags: haskell Problem: Reorder the Ord of chars in Haskell? Is there anyway I can adjust the Ord (order) of regular characters in a Haskell program such that 'a' > 'b' ? If not, do y'all have any suggestions on how I can bes...
Reorder the Ord of chars in Haskell? Reorder the Ord of chars in Haskell? haskell Reorder Ord Haskell Data Show Reorder the Ord of chars in Haskell? Is there anyway I can adjust the Ord (order) of regular characters in a Haskell program such that 'a' > 'b' ? If not, do y'all have any suggestions on how I can best repli...
[ -0.0011749267578125, 0.0098876953125, 0.0150146484375, 0.0181884765625, 0.023193359375, 0.004669189453125, 0.00872802734375, 0.0030364990234375, 0.0027008056640625, 0.0311279296875, -0.0034332275390625, -0.00372314453125, 0.004302978515625, 0.00164794921875, -0.017822265625, -0.0079956...
[ 853, 80596, 70, 35379, 111, 21441, 7, 23, 20625, 142508, 1556, 11809, 17367, 109954, 831, 126596, 20324, 124850, 1528, 11, 977, 275, 157666, 2965, 143126, 123309, 37842, 49846, 124480, 23962, 2203, 238, 16406, 6496, 168660, 6002, 86531 ]
[ 0.1263427734375, 0.25390625, 0.036163330078125, 0.2454833984375, 0.1414794921875, 0.1875, 0.0723876953125, 0.0682373046875, 0.1383056640625, 0.239990234375, 0.1224365234375, 0.1282958984375, 0.168701171875, 0.049591064453125, 0.053131103515625, 0.1781005859375, 0.160400390625, 0.18...
embed
11678395_c0
11678395
haskell
0
Title: Using Sublime 2 for Haskell Development? Problem title: Using Sublime 2 for Haskell Development? Tags: sublimetext2, sublimetext, haskell, ghc Problem: Using Sublime 2 for Haskell Development? What is the current status of Sublime 2 integration for Haskell? I see two possible packages so far. A plugin for code h...
Using Sublime 2 for Haskell Development? Using Sublime 2 for Haskell Development? sublimetext2 sublimetext haskell ghc Using Sublime Haskell Development sublimetext2 Using Sublime 2 for Haskell Development? What is the current status of Sublime 2 integration for Haskell? I see two possible packages so far. A plugin for...
[ -0.003936767578125, -0.007171630859375, 0.00101470947265625, 0.01220703125, 0.0005645751953125, 0.0274658203125, -0.0069580078125, 0.005401611328125, 0.0008697509765625, -0.0037078857421875, -0.006103515625, -0.0072021484375, 0.0024566650390625, 0.002044677734375, 0.005279541015625, 0....
[ 345, 6953, 8273, 150, 282, 116, 100, 20625, 142508, 55441, 117584, 13, 22829, 304, 1556, 31380, 238, 43581, 10778, 157353, 1957, 6626, 7722, 98169, 2060, 69993, 18151, 127308, 214, 9069, 21130, 33049, 100033, 678, 52922, 4588 ]
[ 0.07666015625, 0.049560546875, 0.1307373046875, 0.1583251953125, 0.197265625, 0.188720703125, 0.05999755859375, 0.116455078125, 0.2174072265625, 0.11767578125, 0.187744140625, 0.0291595458984375, 0.1690673828125, 0.13134765625, 0.098876953125, 0.030670166015625, 0.0216522216796875, ...
embed
27906115_c0
27906115
haskell
0
Title: How do you scale a vector using the Haskell library, Linear? Problem title: How do you scale a vector using the Haskell library, Linear? Tags: haskell-linear, haskell Problem: How do you scale a vector using the Haskell library, Linear? This is a simple question about style. I've been using: import Linear point ...
How do you scale a vector using the Haskell library, Linear? How do you scale a vector using the Haskell library, Linear? haskell-linear haskell the Linear How Haskell How do you scale a vector using the Haskell library, Linear? This is a simple question about style. I've been using: Or... Is this the intended way, or ...
[ -0.00909423828125, 0.0103759765625, -0.00102996826171875, 0.017822265625, -0.005828857421875, -0.00885009765625, -0.00014019012451171875, 0.0023651123046875, 0.003631591796875, -0.021728515625, -0.008544921875, -0.005218505859375, -0.01470947265625, -0.0024261474609375, -0.021728515625, ...
[ 11249, 54, 398, 105994, 173, 18770, 17368, 20625, 142508, 35773, 1294, 16777, 147, 1556, 2256, 70, 10, 8781, 20623, 12, 3347, 903, 179140, 3917, 2685, 27798, 127664, 1363, 146232, 42, 39933 ]
[ 0.0970458984375, 0.07098388671875, 0.0369873046875, 0.2587890625, 0.1612548828125, 0.207763671875, 0.0736083984375, 0.1143798828125, 0.224609375, 0.1317138671875, 0.040283203125, 0.1629638671875, 0.1905517578125, 0.09710693359375, 0.08685302734375, 0.04345703125, 0.00885009765625, ...
embed
2844158_c0
2844158
haskell
0
Title: Collecting IO outputs into list Problem title: Collecting IO outputs into list Tags: haskell, monads, io Problem: Collecting IO outputs into list How can I issue multiple calls to SDL.pollEvent :: IO Event until the output is SDL.NoEvent and collect all the results into a list? In imperative terms something like...
Collecting IO outputs into list Collecting IO outputs into list haskell monads io Collecting SDL.pollEvent Event SDL.NoEvent events.add Collecting IO outputs into list How can I issue multiple calls to SDL.pollEvent :: IO Event until the output is SDL.NoEvent and collect all the results into a list? In imperative terms...
[ 0.0033721923828125, -0.01287841796875, 0.004425048828125, 0.005523681640625, -0.010009765625, 0.0042724609375, 0.00579833984375, -0.006744384765625, -0.006561279296875, -0.0341796875, 0.00970458984375, -0.033447265625, -0.0038604736328125, 0.0157470703125, -0.003509521484375, -0.006683...
[ 138521, 214, 17780, 140992, 7, 3934, 5303, 1556, 142508, 2667, 712, 22995, 159, 27502, 5877, 141, 192134, 36943, 5021, 47353, 4028, 831, 31089, 48716, 11782, 47, 1984, 24189, 43799, 756, 50339, 10, 222530, 69407, 1884, 903 ]
[ 0.2139892578125, 0.0316162109375, 0.224365234375, 0.2271728515625, 0.033050537109375, 0.1580810546875, 0.205322265625, 0.098388671875, 0.204833984375, 0.072998046875, 0.12060546875, 0.1917724609375, 0.0535888671875, 0.1739501953125, 0.15771484375, 0.073974609375, 0.2410888671875, 0...
embed
44789794_c0
44789794
haskell
0
Title: If I need a data structure with random access, is Vector my only good choice? Problem title: If I need a data structure with random access, is Vector my only good choice? Tags: haskell Problem: If I need a data structure with random access, is Vector my only good choice? And if there are other good choices, why ...
If I need a data structure with random access, is Vector my only good choice? If I need a data structure with random access, is Vector my only good choice? haskell Vector If I need a data structure with random access, is Vector my only good choice? And if there are other good choices, why isn't there a typeclass yet th...
[ -0.0019989013671875, 0.007598876953125, 0.0024871826171875, 0.01141357421875, 0.0263671875, -0.003448486328125, -0.000048160552978515625, -0.0242919921875, -0.0003662109375, -0.0166015625, 0.0030059814453125, -0.01092529296875, 0.0025634765625, 0.0123291015625, -0.03173828125, 0.010559...
[ 4263, 3871, 2053, 45646, 678, 96759, 17203, 83, 2609, 18770, 759, 4734, 4127, 44126, 32, 87, 10, 1556, 142508, 4, 3493, 2174, 3789, 15400, 56112, 2685, 10644, 67413, 14373, 756, 39210, 110106, 111, 136, 7, 2806, 765, 110527, 450 ]
[ 0.057159423828125, 0.1390380859375, 0.1265869140625, 0.260498046875, 0.09344482421875, 0.2034912109375, 0.188720703125, 0.07916259765625, 0.232666015625, 0.2822265625, 0.07757568359375, 0.1424560546875, 0.13134765625, 0.1700439453125, 0.03033447265625, 0.03472900390625, 0.00659179687...
embed