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
65063548_c1
65063548
haskell
1
create an arbitrary b in the getElem so this function is impossible. Note that it's actually possible to define the safe partsOf using lens in a similar way: myPartsOf :: Traversal' s a -> Lens' s [a] myPartsOf t = lens getter setter where getter s = s ^.. t -- setter :: s -> [a] -> s setter s xs = evalState (s & t %%...
create an arbitrary b in the getElem so this function is impossible. Note that it's actually possible to define the safe partsOf using lens in a similar way: myPartsOf :: Traversal' s a -> Lens' s [a] myPartsOf t = lens getter setter where getter s = s ^.. t -- setter :: s -> [a] -> s setter s xs = evalState (s & t %%...
[ -0.019775390625, 0.00823974609375, -0.0037994384765625, -0.020263671875, -0.023681640625, 0.01409912109375, 0.00054931640625, -0.0228271484375, 0.0024871826171875, -0.0289306640625, 0.022216796875, 0.052734375, 0.011474609375, -0.00665283203125, 0.00146484375, -0.01129150390625, 0.01...
[ 28282, 61799, 1294, 876, 2046, 7623, 195, 903, 32354, 83, 69201, 7722, 61924, 46002, 63920, 132887, 17368, 3098, 7, 21373, 759, 58229, 4937, 814, 2317, 10, 18226, 91, 11, 808, 720, 88685, 2203, 1022, 28, 1405, 135206, 619, 95486, 11341, ...
[ 0.07061767578125, 0.10467529296875, 0.0155029296875, 0.1265869140625, 0.12353515625, 0.108154296875, 0.197998046875, 0.0146484375, 0.1517333984375, 0.0911865234375, 0.1865234375, 0.1002197265625, 0.184326171875, 0.197265625, 0.1441650390625, 0.221435546875, 0.0877685546875, 0.19750...
embed
31475770_c0
31475770
haskell
0
Title: Why must we use state monad instead of passing state directly? Problem title: Why must we use state monad instead of passing state directly? Tags: monads, purely-functional, haskell, state-monad Problem: Why must we use state monad instead of passing state directly? Can someone show a simple example where state ...
Why must we use state monad instead of passing state directly? Why must we use state monad instead of passing state directly? monads purely-functional haskell state-monad Why bar1 Foo bar2 State Why must we use state monad instead of passing state directly? Can someone show a simple example where state monad can be bet...
[ -0.01129150390625, 0.0014495849609375, -0.00750732421875, 0.00445556640625, 0.0089111328125, -0.00921630859375, -0.0155029296875, -0.006683349609375, 0.016357421875, -0.0277099609375, 0.0185546875, 0.024169921875, -0.026123046875, 0.01953125, 0.000904083251953125, -0.036376953125, 0....
[ 44084, 8110, 4527, 11341, 2667, 712, 64457, 452, 105237, 34166, 137175, 1556, 142508, 3796, 1909, 418, 9572, 31, 304, 22836, 6953, 27781, 831, 11522, 3501, 20209 ]
[ 0.10302734375, 0.0946044921875, 0.098388671875, 0.1900634765625, 0.1490478515625, 0.216796875, 0.08721923828125, 0.0894775390625, 0.1309814453125, 0.050140380859375, 0.120361328125, 0.09814453125, 0.210205078125, 0.1241455078125, 0.14306640625, 0.0237274169921875, 0.133544921875, 0...
embed
33279573_c1
33279573
haskell
1
prog But there's not really a closure in there? If I replace the implementation of lint with lint _ = [] it compiles fine. I can execute stack ghci and play around with the full lint implementation just fine. Why does it fail to link? Code signals: LintError, handleParseError, ParseError, GHC, Linker, Linking, x86_64-...
prog But there's not really a closure in there? If I replace the implementation of lint with lint _ = [] it compiles fine. I can execute stack ghci and play around with the full lint implementation just fine. Why does it fail to link? Code signals: LintError, handleParseError, ParseError, GHC, Linker, Linking, x86_64-...
[ 0.004058837890625, -0.000020623207092285156, -0.01470947265625, 0.0009307861328125, -0.0303955078125, 0.027099609375, 0.0012969970703125, 0.005279541015625, -0.00396728515625, -0.0224609375, -0.00823974609375, -0.0255126953125, 0.01324462890625, -0.0093994140625, 0.01385498046875, 0.00...
[ 67973, 2685, 959, 6183, 10, 170224, 23, 91995, 208124, 11508, 18, 678, 101, 2203, 9969, 1340, 5885, 831, 71924, 177261, 31380, 318, 11301, 10932, 4393, 44084, 14602, 442, 35782, 47, 3126, 28864, 26073, 25497, 18468, 31611, 34831, 28636, 239...
[ 0.189208984375, 0.0810546875, 0.083251953125, 0.051849365234375, 0.0155487060546875, 0.264404296875, 0.056854248046875, 0.146728515625, 0.17529296875, 0.1820068359375, 0.154296875, 0.00701904296875, 0.0050048828125, 0.051300048828125, 0.158935546875, 0.1212158203125, 0.08258056640625...
embed
14442267_c0
14442267
haskell
0
Title: How do you specify where to output the executable in a Cabal file? Problem title: How do you specify where to output the executable in a Cabal file? Tags: haskell-platform, haskell Problem: How do you specify where to output the executable in a Cabal file? Is there a way to customize the directory that the compi...
How do you specify where to output the executable in a Cabal file? How do you specify where to output the executable in a Cabal file? haskell-platform haskell How Cabal How do you specify where to output the executable in a Cabal file? Is there a way to customize the directory that the compiled executable cabal install...
[ 0.029052734375, -0.0004425048828125, 0.00124359130859375, 0.013427734375, -0.025390625, 0.0269775390625, -0.0023956298828125, 0.005615234375, -0.0042724609375, 0.049072265625, -0.00830078125, -0.0244140625, 0.0086669921875, -0.003326416015625, -0.003265380859375, 0.0196533203125, -0....
[ 11249, 40140, 18929, 7440, 47, 140992, 71924, 2886, 30438, 289, 11435, 23, 1556, 142508, 172121, 70, 3917, 178036, 14364, 375, 5974, 297, 109524, 20600, 30482, 57, 4126, 10557, 408, 3571, 223, 64527, 4677, 7941 ]
[ 0.0950927734375, 0.18017578125, 0.129150390625, 0.1712646484375, 0.08544921875, 0.2447509765625, 0.21728515625, 0.193359375, 0.2034912109375, 0.2152099609375, 0.1710205078125, 0.051483154296875, 0.1024169921875, 0.18603515625, 0.072265625, 0.0259246826171875, 0.0184326171875, 0.167...
embed
28353159_c0
28353159
haskell
0
Title: Haskell getContents wait for EOF Problem title: Haskell getContents wait for EOF Tags: io, monads, haskell Problem: Haskell getContents wait for EOF I want to wait until user input terminates with EOF and then output it all whole. Isn't that what getContents supposed to do? The following code outputs each time u...
Haskell getContents wait for EOF Haskell getContents wait for EOF io monads haskell System.IO Haskell EOF NoBuffering Haskell getContents wait for EOF I want to wait until user input terminates with EOF and then output it all whole. Isn't that what getContents supposed to do? The following code outputs each time user h...
[ -0.0067138671875, 0.00323486328125, -0.006561279296875, -0.014892578125, -0.01153564453125, 0.0169677734375, 0.015869140625, -0.01483154296875, -0.0130615234375, -0.02099609375, 0.0130615234375, -0.0113525390625, -0.02294921875, 0.0027618408203125, 0.01531982421875, -0.02001953125, 0...
[ 20625, 142508, 2046, 11935, 25352, 40485, 100, 241, 82341, 22995, 2667, 712, 1556, 12353, 17780, 438, 7235, 18234, 3444, 24189, 38937, 107730, 121011, 678, 140992, 756, 28271, 7, 134598, 54, 25632, 18151, 12638, 1733, 5962, 30957, 444, 20594,...
[ 0.1292724609375, 0.18310546875, 0.13720703125, 0.1341552734375, 0.232421875, 0.2138671875, 0.1129150390625, 0.0933837890625, 0.281494140625, 0.1612548828125, 0.0567626953125, 0.078125, 0.114501953125, 0.07537841796875, 0.137939453125, 0.050933837890625, 0.0283355712890625, 0.143676...
embed
7861903_c0
7861903
haskell
0
Title: What are the benefits of applicative parsing over monadic parsing? Problem title: What are the benefits of applicative parsing over monadic parsing? Tags: parsec, monads, haskell, applicative Problem: What are the benefits of applicative parsing over monadic parsing? There seems to be a consensus that you should...
What are the benefits of applicative parsing over monadic parsing? What are the benefits of applicative parsing over monadic parsing? parsec monads haskell applicative What What are the benefits of applicative parsing over monadic parsing? There seems to be a consensus that you should use Parsec as an applicative rathe...
[ -0.0167236328125, 0.01348876953125, -0.00136566162109375, 0.032470703125, 0.007171630859375, 0.0118408203125, -0.006134033203125, -0.011962890625, 0.0084228515625, 0.006927490234375, 0.011474609375, -0.027099609375, 0.00408935546875, 0.00469970703125, -0.0185546875, 0.000701904296875, ...
[ 4865, 621, 70, 72382, 111, 41816, 4935, 366, 6953, 645, 2667, 11, 18403, 39797, 712, 7, 1556, 142508, 37202, 133238, 5608, 4527, 2392, 237, 43257, 3501, 20623, 23718, 164789, 1810 ]
[ 0.05126953125, 0.0550537109375, 0.07354736328125, 0.215576171875, 0.06097412109375, 0.2081298828125, 0.1910400390625, 0.1990966796875, 0.1597900390625, 0.1156005859375, 0.123291015625, 0.1104736328125, 0.1224365234375, 0.2705078125, 0.1766357421875, 0.03399658203125, 0.1058349609375,...
embed
9022978_c0
9022978
haskell
0
Title: Haskell plotting library similar to MATLAB Problem title: Haskell plotting library similar to MATLAB Tags: visualization, haskell Problem: Haskell plotting library similar to MATLAB Is there a Haskell library for drawing plots similar to MATLAB, scilab or matplotlib? They all have very simple interfaces, which w...
Haskell plotting library similar to MATLAB Haskell plotting library similar to MATLAB visualization haskell Haskell MATLAB Haskell plotting library similar to MATLAB Is there a Haskell library for drawing plots similar to MATLAB, scilab or matplotlib? They all have very simple interfaces, which work like a state machin...
[ 0.0047607421875, 0.03564453125, 0.000499725341796875, -0.002197265625, 0.0098876953125, -0.00860595703125, 0.01165771484375, -0.01556396484375, -0.0011444091796875, 0.0087890625, 0.00083160400390625, -0.034423828125, 0.002777099609375, -0.00087738037109375, -0.006500244140625, -0.00970...
[ 20625, 142508, 23577, 1916, 35773, 1294, 21373, 47, 52136, 89549, 21176, 47691, 1556, 2071, 2685, 10, 100, 188304, 7, 13047, 6114, 2589, 105710, 5612, 756, 4552, 8781, 101758, 4488, 1884, 11341, 36279, 2806, 26267, 44116, 76896, 81273, 33022,...
[ 0.1309814453125, 0.234375, 0.178466796875, 0.08251953125, 0.19384765625, 0.131103515625, 0.1248779296875, 0.04925537109375, 0.0992431640625, 0.21533203125, 0.10546875, 0.032379150390625, 0.1070556640625, 0.0186920166015625, 0.0288848876953125, 0.0243988037109375, 0.0408935546875, 0...
embed
63768517_c0
63768517
haskell
0
Title: Error exponentiation in Haskell does not result in error Problem title: Error exponentiation in Haskell does not result in error Tags: haskell Problem: Error exponentiation in Haskell does not result in error I noticed that if you run error "Error 23" ^ 0 in Haskell then it will return 1 . I presume this is beca...
Error exponentiation in Haskell does not result in error Error exponentiation in Haskell does not result in error haskell Error Haskell Error exponentiation in Haskell does not result in error I noticed that if you run error "Error 23" ^ 0 in Haskell then it will return 1 . I presume this is because it sees the zero in...
[ 0.01348876953125, 0.00136566162109375, -0.01092529296875, -0.0184326171875, 0.0233154296875, 0.01385498046875, 0.003448486328125, -0.01312255859375, 0.00238037109375, -0.0203857421875, 0.0018157958984375, 0.003662109375, 0.0159912109375, 0.0076904296875, 0.013671875, -0.01953125, 0.0...
[ 212059, 78643, 21616, 23, 20625, 142508, 14602, 959, 16750, 18499, 1556, 2320, 156672, 11675, 18468, 31611, 1105, 13331, 757, 1221, 30646, 106, 44136, 40, 45234, 1119, 54137, 28288, 7108, 16065, 44084, 192026, 1810 ]
[ 0.2037353515625, 0.176025390625, 0.1251220703125, 0.00579833984375, 0.1580810546875, 0.250244140625, 0.057464599609375, 0.14453125, 0.1510009765625, 0.1968994140625, 0.1358642578125, 0.0045166015625, 0.0137939453125, 0.132080078125, 0.115478515625, 0.1494140625, 0.189697265625, 0.0...
embed
12718346_c0
12718346
haskell
0
Title: haskell card filter Problem title: haskell card filter Tags: haskell Problem: haskell card filter I have a group of cards initialCards :: GameState initialCards = [[Card s1 r1, Card s2 r2] | s1 <- [minBound .. maxBound]::[Suit], r1 <- [minBound.. maxBound]::[Rank], s2 <- [minBound .. maxBound]::[Suit], r2 <- [mi...
haskell card filter haskell card filter haskell GameState Card Suit Rank haskell card filter I have a group of cards for example , i want to keep the [Card], which have rank Suit and Diamond, how can i write the code.
[ 0.002105712890625, -0.0111083984375, -0.00274658203125, -0.01470947265625, 0.0064697265625, -0.036376953125, -0.005218505859375, -0.002899169921875, 0.0078125, 0.00994873046875, -0.0017547607421875, 0.0201416015625, -0.0023040771484375, 0.0024566650390625, -0.035400390625, -0.016967773...
[ 1556, 142508, 20596, 46312, 13547, 135206, 23660, 1832, 217, 134405, 765, 21115, 126381, 27781, 3444, 47, 13695, 156119, 30648, 136, 69124, 3642, 33022, 18151 ]
[ 0.1470947265625, 0.212158203125, 0.201171875, 0.257080078125, 0.1138916015625, 0.1282958984375, 0.1551513671875, 0.167724609375, 0.142822265625, 0.22509765625, 0.025054931640625, 0.09796142578125, 0.2447509765625, 0.036407470703125, 0.1131591796875, 0.0631103515625, 0.1978759765625, ...
embed
23196753_c0
23196753
haskell
0
Title: How to stop leksah from replacing chars like the not sign? Problem title: How to stop leksah from replacing chars like the not sign? Tags: leksah, haskell Problem: How to stop leksah from replacing chars like the not sign? I use leksah version 13.3.3.0. When I have a haskell line like this: let s = "¬" :: String...
How to stop leksah from replacing chars like the not sign? How to stop leksah from replacing chars like the not sign? leksah haskell replacing How How to stop leksah from replacing chars like the not sign? I use leksah version 13.3.3.0. When I have a haskell line like this: in reality, the source file is not like that....
[ -0.0113525390625, 0.01019287109375, 0.00665283203125, -0.005035400390625, -0.00994873046875, 0.0125732421875, -0.01220703125, 0.005218505859375, -0.01324462890625, 0.01336669921875, -0.004852294921875, -0.018310546875, -0.00164031982421875, -0.00469970703125, 0.01202392578125, 0.017578...
[ 11249, 7279, 17143, 23474, 1295, 456, 133266, 21441, 1884, 959, 24092, 47, 1556, 142508, 4527, 11389, 702, 28705, 132265, 13315, 903, 50081, 31344, 11435, 450, 9803, 352, 2263, 12301, 224833 ]
[ 0.03631591796875, 0.171630859375, 0.13623046875, 0.2381591796875, 0.052825927734375, 0.070068359375, 0.1524658203125, 0.1663818359375, 0.05670166015625, 0.17626953125, 0.171142578125, 0.0322265625, 0.1199951171875, 0.251708984375, 0.01312255859375, 0.0252838134765625, 0.0435180664062...
embed
50115315_c0
50115315
haskell
0
Title: Function in haskell that gets every point on a Line given by two points Problem title: Function in haskell that gets every point on a Line given by two points Tags: haskell, points, line Problem: Function in haskell that gets every point on a Line given by two points So i have been stuck on this for a while now,...
Function in haskell that gets every point on a Line given by two points Function in haskell that gets every point on a Line given by two points haskell points line Line Function in haskell that gets every point on a Line given by two points So i have been stuck on this for a while now, I would like to make a function t...
[ 0.005035400390625, -0.01165771484375, -0.004608154296875, -0.00024318695068359375, 0.00238037109375, 0.01251220703125, 0.00445556640625, 0.00665283203125, -0.00015544891357421875, -0.035400390625, -0.007720947265625, -0.0172119140625, -0.001708984375, 0.00701904296875, -0.0157470703125, ...
[ 28670, 10763, 23, 1556, 142508, 450, 62163, 11907, 6275, 98, 16777, 34475, 390, 6626, 26847, 13315, 179933, 12960, 1884, 3249, 32354, 39041, 756, 3789, 10, 61924, 4153, 18, 360 ]
[ 0.16357421875, 0.110595703125, 0.07061767578125, 0.1517333984375, 0.2308349609375, 0.053253173828125, 0.13818359375, 0.2113037109375, 0.2110595703125, 0.086669921875, 0.2022705078125, 0.0810546875, 0.03143310546875, 0.1463623046875, 0.1864013671875, 0.2008056640625, 0.057647705078125...
embed
19276726_c0
19276726
haskell
0
Title: Compilation error at an instance declaration, Haskell Problem title: Compilation error at an instance declaration, Haskell Tags: haskell, compiler-errors Problem: Compilation error at an instance declaration, Haskell I faced with strange compilation error. import Foreign import Foreign.C.Types import Foreign.C.S...
Compilation error at an instance declaration, Haskell Compilation error at an instance declaration, Haskell haskell compiler-errors Foreign Foreign.C.Types Foreign.C.String Compilation Haskell Test CShort Show Storable TestICH.hsc:9:16 Compilation error at an instance declaration, Haskell I faced with strange compilati...
[ -0.002288818359375, -0.004730224609375, -0.0133056640625, 0.002349853515625, -0.004180908203125, 0.00799560546875, -0.006072998046875, -0.00064849853515625, -0.002532958984375, 0.01336669921875, -0.0263671875, -0.0224609375, 0.00897216796875, 0.0025787353515625, 0.01043701171875, -0.00...
[ 15612, 14, 57860, 18499, 99, 110527, 21635, 20625, 142508, 1556, 9969, 34759, 188800, 184293, 196707, 71713, 8647, 5922, 17367, 23604, 2886, 78828, 127, 10382, 1126, 22354, 1363, 2577, 114453, 98352, 483, 280, 343, 101, 2203, 72, 35593, 31611...
[ 0.14111328125, 0.122802734375, 0.039642333984375, 0.22119140625, 0.06793212890625, 0.2283935546875, 0.1986083984375, 0.1385498046875, 0.2308349609375, 0.1121826171875, 0.1324462890625, 0.1094970703125, 0.1676025390625, 0.1531982421875, 0.120361328125, 0.079345703125, 0.11181640625, ...
embed
4924994_c1
4924994
haskell
1
(insertFreq x r) tlist :: BTree a -> [a] tlist Tip = [] tlist (BNode x l r) = concat [tlist l, [x], tlist r] sortedTree x = sortBy (\(x,y) (p,q) -> compare q y) (tlist (foldr insertFreq Tip (words x))) testF (x, n) = concat (x : ":" : " \t\t\t " : show n : []) concord = putStr . unlines . map testF . sortedTree fileFr...
(insertFreq x r) tlist :: BTree a -> [a] tlist Tip = [] tlist (BNode x l r) = concat [tlist l, [x], tlist r] sortedTree x = sortBy (\(x,y) (p,q) -> compare q y) (tlist (foldr insertFreq Tip (words x))) testF (x, n) = concat (x : ":" : " \t\t\t " : show n : []) concord = putStr . unlines . map testF . sortedTree fileFr...
[ 0.040283203125, -0.0146484375, -0.00689697265625, 0.006317138671875, 0.00183868408203125, 0.000919342041015625, -0.0089111328125, -0.03466796875, 0.00154876708984375, -0.005859375, 0.00179290771484375, -0.008544921875, 0.0234375, -0.01104736328125, -0.00775146484375, 0.00299072265625, ...
[ 73, 33657, 107, 864, 1022, 1690, 808, 6562, 1984, 13, 10, 21458, 31, 112, 158, 4460, 17497, 62731, 12096, 69101, 8096, 113, 18, 42822, 183540, 47416, 3034, 919, 7639, 32271, 71713, 51, 59801, 22288, 11435, 12301, 174350, 17997, 4785, 903,...
[ 0.047149658203125, 0.1688232421875, 0.1812744140625, 0.150146484375, 0.05657958984375, 0.0611572265625, 0.0653076171875, 0.2427978515625, 0.0078125, 0.0950927734375, 0.060211181640625, 0.19921875, 0.103759765625, 0.1715087890625, 0.102783203125, 0.1810302734375, 0.137451171875, 0.1...
embed
77196457_c1
77196457
haskell
1
a (bound at src/Course/Applicative.hs:75:12) fs :: List (a -> b) (bound at src/Course/Applicative.hs:75:9) (<*>) :: List (a -> b) -> List a -> List b (bound at src/Course/Applicative.hs:73:3) | 75 | (<*>) fs as = foldRight (\f bs -> f as ++ bs) Nil fs | ^^ Code signals: as, f, Haskell, Nil, Course, Applicative.hs:75:5...
a (bound at src/Course/Applicative.hs:75:12) fs :: List (a -> b) (bound at src/Course/Applicative.hs:75:9) (<*>) :: List (a -> b) -> List a -> List b (bound at src/Course/Applicative.hs:73:3) | 75 | (<*>) fs as = foldRight (\f bs -> f as ++ bs) Nil fs | ^^ Code signals: as, f, Haskell, Nil, Course, Applicative.hs:75:5...
[ 0.010498046875, 0.0037689208984375, 0.004730224609375, 0.01348876953125, -0.00054931640625, 0.018310546875, -0.00634765625, -0.0198974609375, 0.012451171875, 0.00058746337890625, 0.016845703125, -0.00049591064453125, -0.018310546875, 0.03076171875, -0.01123046875, -0.00421142578125, ...
[ 10, 15, 99091, 99, 19437, 64, 10625, 474, 184, 39179, 11048, 4935, 127, 7, 6873, 20927, 1238, 1984, 32036, 11, 33079, 876, 5, 1126, 13574, 21320, 4948, 1639, 237, 2203, 42822, 1052, 22553, 420, 37223, 77175, 16377, 28864, 26073, 20625, ...
[ 0.1431884765625, 0.012359619140625, 0.262451171875, 0.0885009765625, 0.15087890625, 0.0191650390625, 0.023681640625, 0.1458740234375, 0.08209228515625, 0.0972900390625, 0.16259765625, 0.1278076171875, 0.0911865234375, 0.13818359375, 0.204833984375, 0.177734375, 0.1624755859375, 0.0...
embed
65045251_c0
65045251
haskell
0
Title: Haskell generalization of map function for functor Problem title: Haskell generalization of map function for functor Tags: map-function, list, haskell, functor Problem: Haskell generalization of map function for functor mapFunctor :: Functor f => (a -> b) -> [f a] -> [f b] which this function supposed to be a ge...
Haskell generalization of map function for functor Haskell generalization of map function for functor map-function list haskell functor Haskell Functor Maybe Haskell generalization of map function for functor mapFunctor :: Functor f => (a -> b) -> [f a] -> [f b] which this function supposed to be a generalization of ma...
[ 0.00543212890625, 0.0069580078125, 0.009521484375, -0.003173828125, 0.00061798095703125, 0.003509521484375, -0.010498046875, -0.0024871826171875, -0.00872802734375, -0.00154876708984375, -0.00164794921875, -0.037109375, 0.0014495849609375, 0.0185546875, 0.0024261474609375, -0.017089843...
[ 20625, 142508, 4537, 47691, 111, 22288, 32354, 100, 7477, 18770, 137175, 5303, 1556, 28670, 83425, 97249, 1984, 1238, 44357, 11, 33079, 876, 420, 3129, 903, 134598, 47, 186, 10, 1650, 43240, 5701, 237, 2499, 87, 444, 179933, 98, 442, 2854...
[ 0.162841796875, 0.2291259765625, 0.2064208984375, 0.162353515625, 0.036376953125, 0.239501953125, 0.2220458984375, 0.09326171875, 0.189697265625, 0.18359375, 0.2015380859375, 0.1527099609375, 0.14599609375, 0.18408203125, 0.226318359375, 0.1763916015625, 0.02978515625, 0.1702880859...
embed
65239493_c0
65239493
haskell
0
Title: Applying a function at the variable x Problem title: Applying a function at the variable x Tags: haskell Problem: Applying a function at the variable x I am unsure how to make a function that evaluates at x given any f(x). So my input will be any function say f(x) and then x how to I write a function so that I c...
Applying a function at the variable x Applying a function at the variable x haskell Applying Applying a function at the variable x I am unsure how to make a function that evaluates at x given any f(x). So my input will be any function say f(x) and then x how to I write a function so that I can evaluate any function at ...
[ -0.0042724609375, 0.0096435546875, 0.00384521484375, -0.01129150390625, 0.01275634765625, 0.01007080078125, -0.0006561279296875, 0.01385498046875, 0.01806640625, -0.024658203125, 0.00677490234375, -0.021484375, 0.0016326904296875, 0.012451171875, 0.00762939453125, -0.000226974487304687...
[ 5659, 538, 214, 32354, 99, 77336, 1022, 10, 1556, 142508, 70, 51646, 13, 3642, 3249, 151575, 90, 34475, 2499, 1238, 132, 425, 107730, 186, 5154, 47, 87, 33022, 221, 831, 16940, 23, 22008, 22936, 4358, 180663, 3525, 552, 6238, 59090, 110...
[ 0.1756591796875, 0.15087890625, 0.04766845703125, 0.2401123046875, 0.2198486328125, 0.236572265625, 0.14013671875, 0.032257080078125, 0.1771240234375, 0.262451171875, 0.002838134765625, 0.0770263671875, 0.00604248046875, 0.0791015625, 0.09521484375, 0.2003173828125, 0.0577392578125, ...
embed
16565880_c0
16565880
haskell
0
Title: where can I find a complete list of the Haskell modules? Problem title: where can I find a complete list of the Haskell modules? Tags: haskell Problem: where can I find a complete list of the Haskell modules? I found that http://www.haskell.org/ghc/docs/latest/html/libraries/ has a big list and references but GH...
where can I find a complete list of the Haskell modules? where can I find a complete list of the Haskell modules? haskell Haskell where can I find a complete list of the Haskell modules? I found that http://www.haskell.org/ghc/docs/latest/html/libraries/ has a big list and references but GHCI has a different list (i.e....
[ 0.008056640625, 0.005401611328125, -0.0002899169921875, -0.001251220703125, 0.004241943359375, 0.02294921875, -0.00830078125, -0.01507568359375, 0.00799560546875, -0.0169677734375, -0.00396728515625, -0.05126953125, 0.0224609375, -0.00994873046875, -0.00107574462890625, -0.004425048828...
[ 7440, 831, 87, 7413, 10, 28484, 5303, 111, 70, 20625, 142508, 88996, 7, 1556, 14037, 1621, 1574, 10557, 1478, 9486, 238, 29713, 6954, 7693, 150, 2844, 6957, 91067, 41877, 17304, 12921, 72367, 1614, 83279, 14012, 1467 ]
[ 0.0784912109375, 0.0860595703125, 0.044342041015625, 0.140869140625, 0.0531005859375, 0.1639404296875, 0.1768798828125, 0.0938720703125, 0.08935546875, 0.1580810546875, 0.284912109375, 0.256591796875, 0.140380859375, 0.1319580078125, 0.0311279296875, 0.00848388671875, 0.0147705078125...
embed
16998181_c0
16998181
haskell
0
Title: Hamlet templates doesn&#x27;t update Problem title: Hamlet templates doesn&#x27;t update Tags: haskell, yesod Problem: Hamlet templates doesn't update I'm new in Yesod. I have strange problem - I have created new Yesod application with cabal-dev yesod init and tried modify templates/homepage.hamlet . When I rest...
Hamlet templates doesn&#x27;t update Hamlet templates doesn&#x27;t update haskell yesod Hamlet Hamlet templates doesn't update I'm new in Yesod. I have strange problem - I have created new Yesod application with cabal-dev and tried modify templates/homepage.hamlet . When I restarted development service, I didn't see my...
[ 0.00872802734375, 0.004913330078125, 0.016357421875, 0.001708984375, -0.00799560546875, 0.02587890625, -0.00170135498046875, -0.00518798828125, -0.010009765625, -0.00186920166015625, -0.0223388671875, -0.03369140625, 0.0064697265625, 0.01373291015625, 0.046142578125, -0.004791259765625...
[ 10699, 1974, 110934, 7, 22027, 3768, 18, 28350, 1556, 142508, 2422, 23722, 3525, 32635, 2199, 114453, 2967, 75935, 38415, 109524, 18548, 2811, 40383, 29552, 22469, 3915, 456, 17137, 34754, 4516, 1957, 65572, 13158, 4027, 3934, 56889, 319, 316...
[ 0.1754150390625, 0.22021484375, 0.264892578125, 0.050872802734375, 0.0889892578125, 0.056640625, 0.1229248046875, 0.206787109375, 0.09576416015625, 0.1875, 0.1072998046875, 0.1749267578125, 0.0265045166015625, 0.1221923828125, 0.18505859375, 0.044952392578125, 0.050689697265625, 0....
embed
17403587_c0
17403587
haskell
0
Title: Haskell mongodb: object id as string Problem title: Haskell mongodb: object id as string Tags: mongodb, haskell Problem: Haskell mongodb: object id as string What is the correct way of retrieving object id as string? I am getting type errors and cant figure out how to cast it. Calling 'show' on it does not work....
Haskell mongodb: object id as string Haskell mongodb: object id as string mongodb haskell Haskell Haskell mongodb: object id as string What is the correct way of retrieving object id as string? I am getting type errors and cant figure out how to cast it. Calling 'show' on it does not work. Also, the other way round, if...
[ 0.0025482177734375, -0.0169677734375, 0.01458740234375, 0.00811767578125, 0.000461578369140625, 0.017822265625, -0.007110595703125, -0.01556396484375, -0.0084228515625, -0.01385498046875, 0.0198974609375, -0.01806640625, -0.00335693359375, -0.0240478515625, 0.00689697265625, -0.0033416...
[ 20625, 142508, 2667, 7803, 275, 36746, 3447, 237, 79315, 1556, 26785, 3917, 456, 97351, 6496, 10644, 18499, 45767, 26366, 3642, 37702, 442, 26265, 31374, 98, 959, 4488, 68807, 765, 75204, 31862, 47251, 33022, 4420, 47, 14896, 31, 28219, 967...
[ 0.099853515625, 0.191650390625, 0.1121826171875, 0.113037109375, 0.1611328125, 0.220458984375, 0.2333984375, 0.11865234375, 0.2451171875, 0.076171875, 0.11572265625, 0.058837890625, 0.048095703125, 0.126708984375, 0.076416015625, 0.1751708984375, 0.1470947265625, 0.047149658203125,...
embed
51572169_c1
51572169
haskell
1
,71,51,67,63,89,41,92,36,54,22,40,40,28,66,33,13,80,24,47,32,60,99,3,45,2,44,75,33,53,78,36,84,20,35,17,12,50,32,98,81,28,64,23,67,10,26,38,40,67,59,54,70,66,18,38,64,70,67,26,20,68,2,62,12,20,95,63,94,39,63,8,40,91,66,49,94,21,24,55,58,5,66,73,99,26,97,17,78,78,96,83,14,88,34,89,63,72,21,36,23,9,75,0,76,44,20,45,35,14...
,71,51,67,63,89,41,92,36,54,22,40,40,28,66,33,13,80,24,47,32,60,99,3,45,2,44,75,33,53,78,36,84,20,35,17,12,50,32,98,81,28,64,23,67,10,26,38,40,67,59,54,70,66,18,38,64,70,67,26,20,68,2,62,12,20,95,63,94,39,63,8,40,91,66,49,94,21,24,55,58,5,66,73,99,26,97,17,78,78,96,83,14,88,34,89,63,72,21,36,23,9,75,0,76,44,20,45,35,14...
[ -0.01177978515625, 0.01348876953125, -0.001922607421875, 0.003997802734375, 0.01220703125, 0.0023345947265625, -0.0272216796875, 0.0089111328125, -0.00799560546875, 0.02978515625, -0.0002994537353515625, -0.00011157989501953125, -0.01123046875, -0.00408935546875, -0.0038604736328125, -...
[ 6, 4, 15770, 11703, 18197, 15748, 18949, 8894, 12231, 8659, 12338, 4015, 2839, 3882, 14604, 9185, 2681, 4836, 2357, 13330, 6460, 4598, 5046, 82449, 758, 304, 12465, 6873, 14226, 19051, 13903, 1549, 5843, 2489, 418, 197638, 16665, 13556, 133...
[ 0.1590576171875, 0.158447265625, 0.305908203125, 0.2822265625, 0.288818359375, 0.25830078125, 0.253173828125, 0.1866455078125, 0.2132568359375, 0.2318115234375, 0.2254638671875, 0.1260986328125, 0.179443359375, 0.188720703125, 0.2088623046875, 0.1982421875, 0.165283203125, 0.218017...
embed
27439084_c3
27439084
haskell
3
7 1657 1663 1667 1669 1693 1697 1699 1709 1721 1723 1733 1741 1747 1753 1759 1777 1783 1787 1789 1801 1811 1823 1831 1847 1861 1867 1871 1873 1877 1879 1889 1901 1907 1913 1931 1933 1949 1951 1973 1979 1987 1993 1997 1999 2003 2011 2017 2027 2029 2039 2053 2063 2069 2081 2083 2087 2089 2099 2111 2113 2129 2131 2137 214...
7 1657 1663 1667 1669 1693 1697 1699 1709 1721 1723 1733 1741 1747 1753 1759 1777 1783 1787 1789 1801 1811 1823 1831 1847 1861 1867 1871 1873 1877 1879 1889 1901 1907 1913 1931 1933 1949 1951 1973 1979 1987 1993 1997 1999 2003 2011 2017 2027 2029 2039 2053 2063 2069 2081 2083 2087 2089 2099 2111 2113 2129 2131 2137 214...
[ -0.0308837890625, 0.0054931640625, -0.00927734375, -0.0234375, 0.0106201171875, 0.0035858154296875, -0.02685546875, -0.01348876953125, 0.005889892578125, 0.019775390625, 0.0050048828125, -0.00482177734375, -0.00592041015625, -0.0037994384765625, -0.0035247802734375, 0.004180908203125, ...
[ 361, 611, 12243, 15748, 18197, 14212, 11591, 14773, 5046, 729, 6463, 3117, 3742, 9185, 8894, 13330, 14226, 12975, 14546, 17168, 19308, 196208, 8719, 418, 543, 1662, 5016, 153774, 171512, 159983, 172457, 173195, 176447, 145810, 91255, 91234, 703...
[ 0.29150390625, 0.26171875, 0.329833984375, 0.327392578125, 0.279052734375, 0.31201171875, 0.30126953125, 0.296142578125, 0.319091796875, 0.1998291015625, 0.275146484375, 0.19287109375, 0.220458984375, 0.240234375, 0.2269287109375, 0.2352294921875, 0.2744140625, 0.200439453125, 0....
embed
29113112_c1
29113112
haskell
1
"~~" m <- pMonthNum pLiteral "hello" d <- pDayNum pLiteral " " y <- pYear return $ Date y m d My intuition suggests there's some kind of concat/map/fold using monad bindings that I can use for this, but I have no idea. Questions Is parsec the right tool for this? Is my approach convoluted or ineffective? If not, how d...
"~~" m <- pMonthNum pLiteral "hello" d <- pDayNum pLiteral " " y <- pYear return $ Date y m d My intuition suggests there's some kind of concat/map/fold using monad bindings that I can use for this, but I have no idea. Questions Is parsec the right tool for this? Is my approach convoluted or ineffective? If not, how d...
[ -0.019775390625, -0.004608154296875, 0.00152587890625, 0.043701171875, -0.0172119140625, 0.0179443359375, -0.0234375, -0.01507568359375, -0.0050048828125, -0.0106201171875, -0.01397705078125, -0.002227783203125, 0.006622314453125, -0.010009765625, -0.0174560546875, 0.007110595703125, ...
[ 26236, 347, 4426, 915, 146794, 127, 839, 316, 9506, 720, 289, 13817, 104, 97141, 113, 9, 69085, 147, 30646, 3650, 25512, 58868, 42459, 8562, 158, 4460, 62346, 42822, 17368, 2667, 712, 128239, 831, 4527, 903, 110, 6528, 366, 39797, 70, 7...
[ 0.1097412109375, 0.1275634765625, 0.04803466796875, 0.055633544921875, 0.09619140625, 0.06243896484375, 0.045562744140625, 0.122314453125, 0.02545166015625, 0.1109619140625, 0.07861328125, 0.177978515625, 0.131591796875, 0.1197509765625, 0.1207275390625, 0.002410888671875, 0.14318847...
embed
8744933_c0
8744933
haskell
0
Title: Haskell non-exhaustive patterns in function Problem title: Haskell non-exhaustive patterns in function Tags: haskell Problem: Haskell non-exhaustive patterns in function I am trying to use this simple function from this page: http://www.haskell.org/haskellwiki/99_questions/Solutions/2 But when I use it I got the...
Haskell non-exhaustive patterns in function Haskell non-exhaustive patterns in function haskell Haskell _:xs Haskell non-exhaustive patterns in function I am trying to use this simple function from this page: http://www.haskell.org/haskellwiki/99_questions/Solutions/2 But when I use it I got the non-exhaustive patterns...
[ -0.0036163330078125, 0.0223388671875, -0.0028533935546875, 0.0052490234375, -0.007354736328125, 0.0084228515625, 0.00164794921875, -0.01171875, 0.026123046875, -0.0264892578125, 0.021728515625, -0.0257568359375, 0.0196533203125, 0.004791259765625, -0.002288818359375, -0.003158569335937...
[ 20625, 142508, 351, 3355, 18391, 4935, 103510, 7, 23, 32354, 9, 1556, 12, 425, 31577, 4527, 903, 8781, 10557, 13691, 5046, 7162, 102588, 34, 5256, 12477, 4966, 18499, 3957, 28864, 11782, 1884 ]
[ 0.1270751953125, 0.1981201171875, 0.2230224609375, 0.062469482421875, 0.152587890625, 0.08099365234375, 0.227294921875, 0.032989501953125, 0.06036376953125, 0.172119140625, 0.0230560302734375, 0.122802734375, 0.0191650390625, 0.138671875, 0.0340576171875, 0.0400390625, 0.038391113281...
embed
9574748_c1
9574748
haskell
1
151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, ...
151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, ...
[ -0.0302734375, 0.0128173828125, 0.006011962890625, -0.027099609375, 0.006072998046875, -0.0101318359375, -0.02099609375, -0.00799560546875, 0.0194091796875, 0.033935546875, 0.0004558563232421875, 0.00860595703125, -0.0093994140625, 0.0007171630859375, -0.01708984375, 0.00775146484375, ...
[ 90483, 4, 78600, 82414, 87010, 89816, 64726, 100996, 121621, 113543, 129098, 88906, 112713, 122216, 130027, 6, 86549, 105586, 116, 9323, 744, 418, 144019, 714, 966, 1381, 363, 1126, 160630, 1438, 1372, 1702, 496, 138, 1662, 2681, 2489, 5016, ...
[ 0.3388671875, 0.207275390625, 0.268798828125, 0.267333984375, 0.245361328125, 0.250732421875, 0.222900390625, 0.2197265625, 0.22509765625, 0.2303466796875, 0.230224609375, 0.2412109375, 0.22802734375, 0.24365234375, 0.2216796875, 0.09979248046875, 0.237548828125, 0.242919921875, ...
embed
5771507_c0
5771507
haskell
0
Title: Linking custom object files with Cabal Problem title: Linking custom object files with Cabal Tags: cabal, c%2B%2B, linker, haskell Problem: Linking custom object files with Cabal In a custom cabal hook I generated object files (*.o) which I want to pass to the linker. How do I do this idiomatically? Solution Don...
Linking custom object files with Cabal Linking custom object files with Cabal cabal c%2B%2B linker haskell Linking Cabal Setup.lhs PATHS FILES Linking custom object files with Cabal In a custom cabal hook I generated object files (*.o) which I want to pass to the linker. How do I do this idiomatically? Solution Don Ste...
[ 0.023193359375, -0.01275634765625, -0.01434326171875, -0.0028839111328125, -0.025634765625, 0.005126953125, -0.0155029296875, 0.0164794921875, -0.000518798828125, -0.0224609375, -0.025634765625, -0.042724609375, 0.007781982421875, -0.0111083984375, -0.0028076171875, -0.0106201171875, ...
[ 12779, 214, 114122, 36746, 102158, 678, 30438, 289, 109524, 3126, 56, 1556, 142508, 19943, 2037, 79366, 100308, 38131, 141669, 150522, 139392, 71, 75402, 5, 31, 3444, 47, 27875, 70, 11249, 54, 903, 49666, 18, 71407, 187895, 171618, 48225, 1...
[ 0.202880859375, 0.05352783203125, 0.2286376953125, 0.22119140625, 0.2080078125, 0.09600830078125, 0.2022705078125, 0.2183837890625, 0.260498046875, 0.2076416015625, 0.1983642578125, 0.0733642578125, 0.1884765625, 0.1171875, 0.08837890625, 0.08599853515625, 0.0584716796875, 0.099121...
embed
16430931_c0
16430931
haskell
0
Title: Haskell multidimensional list : Beginner problems Problem title: Haskell multidimensional list : Beginner problems Tags: multidimensional-array, list, haskell, recursion Problem: Haskell multidimensional list : Beginner problems I want to delete every string in a list which starts with "h". ["hawrw", "basw", "Ha...
Haskell multidimensional list : Beginner problems Haskell multidimensional list : Beginner problems multidimensional-array list haskell recursion Haskell Beginner x:xs Haskell multidimensional list : Beginner problems I want to delete every string in a list which starts with "h". My code is: Why doesn't it work? And ho...
[ -0.000751495361328125, 0.00994873046875, -0.0184326171875, -0.00390625, 0.0027923583984375, -0.00185394287109375, 0.03173828125, 0.0024261474609375, 0.016845703125, -0.00086212158203125, 0.0101318359375, -0.0341796875, 0.0020751953125, 0.0166015625, -0.017578125, 0.007110595703125, 0...
[ 20625, 142508, 6024, 157955, 5303, 67053, 56, 44402, 19305, 1556, 195625, 1022, 12, 425, 3444, 47, 154109, 11907, 79315, 23, 4034, 678, 127, 18151, 44084, 22027, 18, 442, 4488, 30022 ]
[ 0.14208984375, 0.2152099609375, 0.09033203125, 0.1729736328125, 0.2060546875, 0.1004638671875, 0.06231689453125, 0.1304931640625, 0.0814208984375, 0.1363525390625, 0.143798828125, 0.017547607421875, 0.01312255859375, 0.051849365234375, 0.0760498046875, 0.081787109375, 0.28076171875, ...
embed
25219162_c0
25219162
haskell
0
Title: Type class constraint on type family instances Problem title: Type class constraint on type family instances Tags: types, haskell, type-families, typeclass Problem: Type class constraint on type family instances Is it possible to specify a type class constraint that must be satisfied by all instances of a type f...
Type class constraint on type family instances Type class constraint on type family instances types haskell type-families typeclass Type Channel Type class constraint on type family instances Is it possible to specify a type class constraint that must be satisfied by all instances of a type family? For example, given t...
[ 0.01806640625, -0.00885009765625, 0.002166748046875, 0.00848388671875, -0.004241943359375, -0.003570556640625, -0.007415771484375, 0.00457763671875, -0.0022735595703125, -0.005157470703125, -0.015869140625, -0.035400390625, 0.00677490234375, 0.028076171875, -0.0010986328125, -0.0021667...
[ 60457, 18507, 158, 2816, 4288, 98, 10644, 14449, 110527, 52895, 1556, 142508, 69128, 67413, 55969, 2071, 7722, 40140, 18929, 8110, 214521, 756, 1326, 21635, 63284, 2843, 864, 2053, 501, 11617 ]
[ 0.2332763671875, 0.2474365234375, 0.1202392578125, 0.1973876953125, 0.1573486328125, 0.0499267578125, 0.2274169921875, 0.126708984375, 0.1986083984375, 0.1593017578125, 0.0828857421875, 0.1754150390625, 0.0867919921875, 0.1412353515625, 0.119873046875, 0.001983642578125, 0.1175537109...
embed
19233534_c0
19233534
haskell
0
Title: Remove Odd Elements From List Problem title: Remove Odd Elements From List Tags: haskell Problem: Remove Odd Elements From List I am trying to create a short function to remove odd elements from a list of Integers, my code being: removeOdds :: [Int] -> [Int] removeOdds lst = [ x | x <- lst, x `mod` 2] Compiler r...
Remove Odd Elements From List Remove Odd Elements From List haskell Remove Odd Elements List Type Term Does Bool Remove Odd Elements From List I am trying to create a short function to remove odd elements from a list of Integers, my code being: Compiler returns - Any suggestions? Thanks!
[ -0.0152587890625, 0.0220947265625, 0.029052734375, -0.0010833740234375, 0.0103759765625, 0.0277099609375, -0.007568359375, 0.008056640625, -0.00125885009765625, 0.006927490234375, 0.00762939453125, -0.035888671875, 0.007568359375, -0.0017547607421875, 0.004058837890625, 0.0142822265625...
[ 181139, 67948, 48325, 7, 28090, 32036, 1556, 142508, 60457, 2994, 39, 101790, 2460, 929, 31577, 28282, 16610, 32354, 87388, 70270, 80854, 1295, 5303, 44401, 18151, 15612, 34759, 30646, 157666 ]
[ 0.1776123046875, 0.260986328125, 0.2008056640625, 0.1019287109375, 0.144287109375, 0.1881103515625, 0.0989990234375, 0.1949462890625, 0.1314697265625, 0.0880126953125, 0.00527191162109375, 0.042327880859375, 0.112548828125, 0.2210693359375, 0.0295562744140625, 0.0179443359375, 0.1136...
embed
66929319_c0
66929319
haskell
0
Title: how to achieve `stack run --file-watch` Problem title: how to achieve `stack run --file-watch` Tags: haskell, haskell-stack Problem: how to achieve `stack run --file-watch` I work with Haskell stack and found the --file-watch opton, but was then surprised that it works for build but not for run . Searching on th...
how to achieve `stack run --file-watch` how to achieve `stack run --file-watch` haskell haskell-stack how to achieve `stack run --file-watch` I work with Haskell stack and found the --file-watch opton, but was then surprised that it works for build but not for run . Searching on the web indicates that there are some wa...
[ 0.0079345703125, 0.00177764892578125, -0.0004215240478515625, -0.004852294921875, -0.0023345947265625, -0.00433349609375, -0.0186767578125, 0.005767822265625, -0.0087890625, -0.029541015625, 0.00897216796875, 0.0126953125, 0.00494384765625, 0.00836181640625, 0.0145263671875, -0.0066833...
[ 3642, 69307, 590, 2594, 11675, 4210, 29822, 35414, 1556, 142508, 4488, 20625, 177261, 233, 1507, 43240, 45367, 959, 100, 48322, 93425, 678, 75101, 26499, 29806 ]
[ 0.051116943359375, 0.1510009765625, 0.0955810546875, 0.074951171875, 0.1339111328125, 0.0828857421875, 0.1949462890625, 0.22802734375, 0.06927490234375, 0.189208984375, 0.028411865234375, 0.072509765625, 0.165771484375, 0.06951904296875, 0.10552978515625, 0.05023193359375, 0.15551757...
embed
55543553_c0
55543553
haskell
0
Title: Update list with an element at a given index Problem title: Update list with an element at a given index Tags: haskell Problem: Update list with an element at a given index Is there such function: update :: a -> Int -> [a] -> Maybe [a] such that it will update the list with the element at given index, or return ...
Update list with an element at a given index Update list with an element at a given index haskell Update Maybe Nothing Just Update list with an element at a given index Is there such function: such that it will update the list with the element at given index, or return Nothing if the index is out of boundary? For examp...
[ -0.02099609375, 0.027587890625, 0.018310546875, -0.00823974609375, -0.00848388671875, 0.0279541015625, -0.004608154296875, 0.00799560546875, 0.0123291015625, 0.029052734375, 0.01251220703125, -0.01904296875, -0.0277099609375, 0.00634765625, 0.0247802734375, -0.01068115234375, 0.03100...
[ 28641, 5303, 678, 12830, 99, 34475, 63262, 1556, 142508, 83425, 182747, 9563, 2071, 2685, 6044, 32354, 1221, 28350, 707, 30646, 2174, 83, 1810, 111, 99091, 6635, 27781 ]
[ 0.2071533203125, 0.2083740234375, 0.142333984375, 0.18798828125, 0.12353515625, 0.1048583984375, 0.236328125, 0.1436767578125, 0.2362060546875, 0.143310546875, 0.17529296875, 0.03253173828125, 0.035308837890625, 0.0628662109375, 0.1134033203125, 0.1986083984375, 0.022552490234375, ...
embed
56961342_c0
56961342
haskell
0
Title: What does an escaped ampersand mean in Haskell? Problem title: What does an escaped ampersand mean in Haskell? Tags: escaping, haskell, lexer, syntax Problem: What does an escaped ampersand mean in Haskell? I looked at the Haskell 2010 report and noticed a weird escape sequence with an ampersand: \& . I couldn't...
What does an escaped ampersand mean in Haskell? What does an escaped ampersand mean in Haskell? escaping haskell lexer syntax What Haskell What does an escaped ampersand mean in Haskell? I looked at the Haskell 2010 report and noticed a weird escape sequence with an ampersand: \& . I couldn't find an explanation what t...
[ 0.033447265625, 0.017333984375, -0.0047607421875, 0.009033203125, -0.007476806640625, 0.01434326171875, 0.00732421875, 0.017333984375, -0.006103515625, 0.0277099609375, -0.01153564453125, -0.01226806640625, 0.009765625, 0.01287841796875, -0.004302978515625, 0.01953125, 0.008911132812...
[ 4865, 142, 144281, 71, 151095, 43882, 29459, 20625, 142508, 23, 38940, 10366, 1556, 95, 34058, 6002, 86531, 14602, 1532, 13416, 156672, 179459, 40, 944, 3956, 41872, 1230, 187136, 9157, 100, 105866, 79315, 28412, 527, 73265, 14, 201505 ]
[ 0.0574951171875, 0.03106689453125, 0.21923828125, 0.1446533203125, 0.1802978515625, 0.213134765625, 0.1239013671875, 0.1204833984375, 0.24951171875, 0.0491943359375, 0.143798828125, 0.0865478515625, 0.087158203125, 0.040924072265625, 0.16162109375, 0.0361328125, 0.07958984375, 0.02...
embed
34189847_c1
34189847
haskell
1
Double’ with ‘CDouble’ Expected type: CString -> IO (CDouble, CDouble) Actual type: String -> IO (Double, Double) In the expression: getGPS When checking declaration: foreign export ccall "getGPS" getGPS :: CString -> IO (CDouble, CDouble) Failed, modules loaded: none. How to export this function correctly? Code signal...
Double’ with ‘CDouble’ Expected type: CString -> IO (CDouble, CDouble) Actual type: String -> IO (Double, Double) In the expression: getGPS When checking declaration: foreign export ccall "getGPS" getGPS :: CString -> IO (CDouble, CDouble) Failed, modules loaded: none. How to export this function correctly? Code signal...
[ 0.037841796875, 0.0033416748046875, -0.025634765625, -0.0029296875, 0.006591796875, -0.004425048828125, 0.01348876953125, -0.0169677734375, -0.000797271728515625, 0.000576019287109375, 0.0216064453125, -0.0177001953125, -0.025634765625, -0.0177001953125, -0.0230712890625, 0.00769042968...
[ 107172, 26, 678, 16069, 796, 2661, 60075, 13, 10644, 25841, 18, 2852, 33079, 17780, 7915, 100582, 23351, 214, 8331, 34, 125195, 2046, 151274, 14847, 175199, 21635, 110613, 31255, 501, 85763, 3794, 190355, 88996, 72367, 351, 11249, 903, 32354,...
[ 0.297607421875, 0.028411865234375, 0.112060546875, 0.1021728515625, 0.234619140625, 0.27978515625, 0.1435546875, 0.1614990234375, 0.2049560546875, 0.00982666015625, 0.05401611328125, 0.222412109375, 0.059295654296875, 0.2001953125, 0.06494140625, 0.2271728515625, 0.21826171875, 0.1...
embed
15439966_c0
15439966
haskell
0
Title: When/why use an MVar over a TVar Problem title: When/why use an MVar over a TVar Tags: stm, haskell, shared-memory Problem: When/why use an MVar over a TVar I find TVar's quite easy to work with even though MVar's appear a little simpler, while TVar's a little more featureful. So my question is pretty simple, wh...
When/why use an MVar over a TVar When/why use an MVar over a TVar stm haskell shared-memory When MVar TVar When/why use an MVar over a TVar I find TVar's quite easy to work with even though MVar's appear a little simpler, while TVar's a little more featureful. So my question is pretty simple, what condition do I want t...
[ -0.0028076171875, 0.0106201171875, 0.01470947265625, 0.01068115234375, 0.02734375, -0.01239013671875, -0.002532958984375, 0.0252685546875, 0.010009765625, -0.01300048828125, 0.02587890625, -0.018798828125, 0.020263671875, 0.0196533203125, 0.0035552978515625, 0.008056640625, 0.0179443...
[ 14847, 3038, 4527, 66160, 147, 645, 1910, 6138, 39, 1556, 142508, 99764, 109005, 23468, 4488, 678, 108975, 8781, 60213, 7844, 35431, 3444, 47, 43257, 3501, 3871, 124161, 28350, 142, 68073 ]
[ 0.0692138671875, 0.0972900390625, 0.1114501953125, 0.142822265625, 0.2156982421875, 0.13525390625, 0.1798095703125, 0.0667724609375, 0.0850830078125, 0.10284423828125, 0.1781005859375, 0.119140625, 0.130126953125, 0.0682373046875, 0.0443115234375, 0.038360595703125, 0.0482177734375, ...
embed
32318114_c0
32318114
haskell
0
Title: Every free monad over a ??? functor yields a comonad? Problem title: Every free monad over a ??? functor yields a comonad? Tags: free-monad, monads, comonad, haskell, category-theory Problem: Every free monad over a ??? functor yields a comonad? In this answer to "Can a monad be a comonad?" we see that Every Cof...
Every free monad over a ??? functor yields a comonad? Every free monad over a ??? functor yields a comonad? free-monad monads comonad haskell category-theory Every Every free monad over a ??? functor yields a comonad? In this answer to "Can a monad be a comonad?" we see that What would be the dual to this? Is there a c...
[ -0.0032958984375, 0.00125885009765625, -0.000690460205078125, 0.01544189453125, -0.0027923583984375, 0.0111083984375, -0.00116729736328125, -0.008544921875, 0.00665283203125, -0.0230712890625, -0.0169677734375, -0.0311279296875, 0.015380859375, 0.0196533203125, -0.005126953125, 0.00133...
[ 87769, 4092, 2667, 712, 645, 37336, 7477, 18770, 11180, 19388, 533, 9169, 10, 3796, 1556, 142508, 95487, 54694, 186, 87758, 18507, 191082 ]
[ 0.1082763671875, 0.164306640625, 0.12841796875, 0.2047119140625, 0.09967041015625, 0.1611328125, 0.123046875, 0.14794921875, 0.095458984375, 0.154296875, 0.176025390625, 0.228759765625, 0.04931640625, 0.1156005859375, 0.0254974365234375, 0.135498046875, 0.06903076171875, 0.07824707...
embed
57646599_c0
57646599
haskell
0
Title: How can I customize Yesod Login page? Problem title: How can I customize Yesod Login page? Tags: authentication, google-oauth, yesod, haskell Problem: How can I customize Yesod Login page? I implemented Google authentication in my Yesod application. When I open http://localhost:3000/auth/login I see a page gener...
How can I customize Yesod Login page? How can I customize Yesod Login page? authentication google-oauth yesod haskell How Yesod Login How can I customize Yesod Login page? I implemented Google authentication in my Yesod application. When I open http://localhost:3000/auth/login I see a page generated by Yesod. I tried t...
[ 0.00084686279296875, 0.041259765625, 0.0015869140625, -0.006195068359375, -0.00146484375, 0.02099609375, -0.00909423828125, -0.005096435546875, -0.01239013671875, -0.01165771484375, 0.017822265625, -0.05224609375, -0.016845703125, 0.00153350830078125, 0.01348876953125, -0.01171875, -...
[ 11249, 831, 178036, 13, 32635, 2199, 122986, 9191, 87, 195734, 2320, 26484, 31, 916, 927, 2422, 23722, 1556, 142508, 29479, 1815, 38415, 14847, 9803, 1621, 98908, 40294, 36605, 64, 4867, 73, 1957, 10, 139392, 37842, 15190, 73655, 5, 3915, ...
[ 0.08758544921875, 0.07611083984375, 0.233642578125, 0.1036376953125, 0.19970703125, 0.27783203125, 0.2244873046875, 0.1612548828125, 0.053009033203125, 0.1724853515625, 0.08349609375, 0.1177978515625, 0.05096435546875, 0.1385498046875, 0.1492919921875, 0.15283203125, 0.2288818359375,...
embed
10628237_c0
10628237
haskell
0
Title: How do type classes work in Haskell? Problem title: How do type classes work in Haskell? Tags: haskell, class, typeclass Problem: How do type classes work in Haskell? I am really confused about classes in haskell. If I had the code: class GetResult n where res :: n -> Int class (GetResult n) => Model n where sta...
How do type classes work in Haskell? How do type classes work in Haskell? haskell class typeclass How Haskell GetResult Model How do type classes work in Haskell? I am really confused about classes in haskell. If I had the code: What type is n? What type would starting output and test take as input?
[ -0.01043701171875, 0.0098876953125, 0.00372314453125, 0.010498046875, 0.01031494140625, 0.010009765625, -0.00799560546875, -0.017578125, 0.0146484375, -0.013671875, -0.003448486328125, -0.044677734375, -0.029052734375, 0.004180908203125, -0.01434326171875, -0.00738525390625, 0.009826...
[ 11249, 54, 10644, 61112, 4488, 23, 20625, 142508, 32, 1556, 18507, 67413, 20779, 4332, 7, 7136, 13293, 6183, 55681, 5281, 1672, 4263, 1902, 18151, 4865, 83, 653, 2806, 72134, 140992, 136, 3034, 5646, 237, 107730 ]
[ 0.09112548828125, 0.050994873046875, 0.25439453125, 0.25341796875, 0.117919921875, 0.08135986328125, 0.133544921875, 0.22265625, 0.003997802734375, 0.1201171875, 0.182861328125, 0.212890625, 0.11865234375, 0.065185546875, 0.09539794921875, 0.14501953125, 0.1844482421875, 0.04519653...
embed
19210660_c0
19210660
haskell
0
Title: It works when loaded from file, but not when typed into ghci. Why? Problem title: It works when loaded from file, but not when typed into ghci. Why? Tags: haskell, ghci Problem: It works when loaded from file, but not when typed into ghci. Why? If I put the following 2 lines into foobar.hs f 1 = 1 f x = f (x-1) ...
It works when loaded from file, but not when typed into ghci. Why? It works when loaded from file, but not when typed into ghci. Why? haskell ghci file Why x-1 foobar.hs CInterrupted It works when loaded from file, but not when typed into ghci. Why? If I put the following 2 lines into foobar.hs then but if I do then it...
[ 0.00640869140625, -0.00927734375, -0.00201416015625, 0.015869140625, -0.0146484375, 0.0019073486328125, 0.004150390625, 0.009033203125, 0.002227783203125, -0.0478515625, -0.004974365234375, -0.0040283203125, -0.00836181640625, 0.006195068359375, 0.0201416015625, -0.006011962890625, 0...
[ 1650, 43240, 3229, 72367, 297, 1295, 11435, 1284, 959, 10644, 3934, 31380, 318, 44084, 1556, 142508, 1022, 5759, 5775, 31, 1299, 127, 7, 313, 44851, 9167, 3674, 3884, 25632, 116, 124519, 442, 14602, 30646 ]
[ 0.09649658203125, 0.132568359375, 0.070556640625, 0.122802734375, 0.03656005859375, 0.1209716796875, 0.1162109375, 0.05633544921875, 0.08197021484375, 0.1439208984375, 0.0919189453125, 0.1368408203125, 0.182373046875, 0.05718994140625, 0.156982421875, 0.267333984375, 0.083740234375, ...
embed
7618092_c0
7618092
haskell
0
Title: How to evaluate IO Bools in Haskell Problem title: How to evaluate IO Bools in Haskell Tags: monads, haskell Problem: How to evaluate IO Bools in Haskell I'm trying to write a function that takes an IO Bool and does stuff based on what this is, but I can't figure out how to evaluate the IO Bool. I tried saying d...
How to evaluate IO Bools in Haskell How to evaluate IO Bools in Haskell monads haskell How Bools Haskell Couldn Bool How to evaluate IO Bools in Haskell I'm trying to write a function that takes an IO Bool and does stuff based on what this is, but I can't figure out how to evaluate the IO Bool. I tried saying do cond a...
[ -0.01202392578125, 0.01171875, 0.017333984375, 0.00079345703125, 0.010498046875, 0.01611328125, 0.01287841796875, -0.01434326171875, 0.00011348724365234375, 0.0191650390625, 0.00665283203125, -0.0250244140625, -0.0031890869140625, -0.01513671875, 0.0111083984375, 0.003662109375, -0.0...
[ 11249, 47, 151575, 13, 17780, 73783, 8080, 23, 20625, 142508, 2667, 712, 1556, 191147, 19, 2460, 929, 31577, 33022, 32354, 51776, 41884, 35509, 26366, 3642, 54, 158, 71, 136, 2271, 69112, 882, 18499, 18, 14858, 84751, 10644, 12647, 26548, ...
[ 0.087890625, 0.041778564453125, 0.1839599609375, 0.064208984375, 0.231689453125, 0.154541015625, 0.1903076171875, 0.0687255859375, 0.129638671875, 0.2459716796875, 0.039215087890625, 0.072509765625, 0.116455078125, 0.120849609375, 0.037750244140625, 0.122802734375, 0.20361328125, 0...
embed
42291558_c0
42291558
haskell
0
Title: Why are Float and Double different in the case of adding 0.1 and 0.2? Problem title: Why are Float and Double different in the case of adding 0.1 and 0.2? Tags: haskell Problem: Why are Float and Double different in the case of adding 0.1 and 0.2? Can someone explain why (0.1::Float) + (0.2::Float) == (0.3::Floa...
Why are Float and Double different in the case of adding 0.1 and 0.2? Why are Float and Double different in the case of adding 0.1 and 0.2? haskell Why Float Double Why are Float and Double different in the case of adding 0.1 and 0.2? Can someone explain why while To my knowledge Double is supposed to be more precise. ...
[ 0.01806640625, -0.00830078125, -0.00946044921875, -0.0022735595703125, -0.0023345947265625, 0.0091552734375, 0.00138092041015625, -0.006866455078125, 0.008056640625, 0.04638671875, 0.0125732421875, -0.01806640625, 0.0059814453125, 0.0218505859375, -0.00830078125, -0.006744384765625, ...
[ 44084, 621, 38699, 257, 136, 107172, 12921, 7225, 154107, 107754, 126175, 1556, 142508, 23, 111, 4171, 22008, 73342, 15400, 12960, 759, 51359, 83, 134598, 47, 186, 1286, 134995, 9844, 1672, 87, 5608, 3714 ]
[ 0.160400390625, 0.0953369140625, 0.24755859375, 0.2213134765625, 0.1181640625, 0.274169921875, 0.22412109375, 0.0797119140625, 0.1778564453125, 0.25048828125, 0.275390625, 0.1436767578125, 0.2220458984375, 0.010162353515625, 0.001922607421875, 0.035888671875, 0.0247344970703125, 0....
embed
37517622_c0
37517622
haskell
0
Title: What are some Abstract Data Types in Haskell and how do they differ from Algebraic Data Types? Problem title: What are some Abstract Data Types in Haskell and how do they differ from Algebraic Data Types? Tags: haskell Problem: What are some Abstract Data Types in Haskell and how do they differ from Algebraic Da...
What are some Abstract Data Types in Haskell and how do they differ from Algebraic Data Types? What are some Abstract Data Types in Haskell and how do they differ from Algebraic Data Types? haskell Algebraic What Abstract Data Types Haskell What are some Abstract Data Types in Haskell and how do they differ from Algebr...
[ 0.032470703125, -0.003692626953125, -0.00970458984375, 0.01904296875, 0.005950927734375, 0.00579833984375, -0.0052490234375, 0.0089111328125, -0.00823974609375, 0.031982421875, 0.01092529296875, -0.038330078125, 0.00093841552734375, 0.0255126953125, -0.00142669677734375, 0.004455566406...
[ 3060, 233973, 11809, 60457, 7, 23, 20625, 142508, 129927, 429, 2844, 1295, 1556, 884, 1771, 4865, 621, 27781, 99710 ]
[ 0.0704345703125, 0.25390625, 0.1531982421875, 0.226806640625, 0.06134033203125, 0.0625, 0.1624755859375, 0.265380859375, 0.121337890625, 0.09393310546875, 0.1533203125, 0.0263824462890625, 0.13525390625, 0.049774169921875, 0.07037353515625, 0.0499267578125, 0.0187835693359375, 0.07...
embed
5989457_c0
5989457
haskell
0
Title: Haskell FFI Support for Functions With Variadic Arguments Problem title: Haskell FFI Support for Functions With Variadic Arguments Tags: haskell, ffi, variadic-functions Problem: Haskell FFI Support for Functions With Variadic Arguments Can anyone show me an example of using a C function with variadic arguments ...
Haskell FFI Support for Functions With Variadic Arguments Haskell FFI Support for Functions With Variadic Arguments haskell ffi variadic-functions Haskell FFI Support Functions Variadic Arguments Haskell FFI Support for Functions With Variadic Arguments Can anyone show me an example of using a C function with variadic ...
[ 0.0191650390625, 0.005157470703125, -0.00244140625, 0.006500244140625, 0.0033111572265625, 0.01531982421875, 0.00469970703125, 0.007659912109375, -0.00836181640625, -0.0035858154296875, 0.0264892578125, -0.062255859375, -0.000476837158203125, 0.004638671875, 0.00823974609375, -0.013305...
[ 20625, 142508, 563, 22724, 58832, 100, 28670, 10763, 17106, 111477, 18403, 112140, 1556, 24500, 16757, 137175, 4171, 35672, 7639, 163, 27781, 17368, 313, 32354, 678, 10750, 28412, 420, 184293, 220237, 157318, 147822, 110, 6044 ]
[ 0.1363525390625, 0.2412109375, 0.09088134765625, 0.21630859375, 0.201416015625, 0.0300140380859375, 0.1414794921875, 0.0689697265625, 0.08184814453125, 0.20263671875, 0.1614990234375, 0.2059326171875, 0.114990234375, 0.154541015625, 0.2490234375, 0.1866455078125, 0.011077880859375, ...
embed
63267436_c1
63267436
haskell
1
1.5, bytestring-0.10.8.2, call-stack-0.1.0, case-insensitive-1.2.0.11, containers-0.6.0.1, data-hash-0.2.0.1, deepseq-1.4.4.0, directory-1.3.3.0, dlist-0.8.0.6, edit-distance-0.2.2.1, equivalence-0.3.4, erf-2.0.0.0, exceptions-0.10.2, fgl-5.7.0.1, filepath-1.4.2.1, fixed-0.2.1.1, geniplate-mirror-0.7.6, ghc-8.6.5, ghc-...
0 directory-1.3.3.0 dlist-0.8.0.6 edit-distance-0.2.2.1 equivalence-0.3.4 erf-2.0.0.0 exceptions-0.10.2 fgl-5.7.0.1 filepath-1.4.2.1 fixed-0.2.1.1 geniplate-mirror-0.7.6 ghc-8.6.5 ghc-boot-8.6.5 ghc-boot-th-8.6.5 ghc-compact-0.1.0.0 ghc-heap-8.6.5 ghc-prim-0.5.3 ghci-8.6.5 gitrev-1.3.1 half-0.3 hashable-1.2.7.0 hashtab...
[ 0.00927734375, -0.00701904296875, 0.015869140625, -0.001495361328125, 0.005767822265625, -0.005615234375, -0.00848388671875, -0.00909423828125, 0.01251220703125, 0.025634765625, 0.0012969970703125, -0.031982421875, -0.004974365234375, 0.002838134765625, -0.01409912109375, -0.0008392333...
[ 757, 14364, 53, 81046, 5, 132265, 104, 6562, 132208, 122887, 27211, 56883, 329, 133684, 68107, 224743, 3956, 172508, 86821, 9, 73011, 99929, 131527, 7, 10179, 11016, 160355, 102014, 11435, 128405, 91977, 188347, 83783, 38240, 92558, 4326, 31611...
[ 0.14208984375, 0.099365234375, 0.05291748046875, 0.124755859375, 0.00885009765625, 0.1688232421875, 0.04962158203125, 0.1890869140625, 0.0726318359375, 0.1156005859375, 0.103759765625, 0.117431640625, 0.0206146240234375, 0.0623779296875, 0.08056640625, 0.11279296875, 0.025146484375, ...
embed
1522573_c0
1522573
haskell
0
Title: How to get Haskell syntax highlighting on PHP blog Problem title: How to get Haskell syntax highlighting on PHP blog Tags: haskell, php, syntax-highlighting Problem: How to get Haskell syntax highlighting on PHP blog I'm making a blog in PHP and I'd really like to have syntax highlighting on Haskell code. Are th...
How to get Haskell syntax highlighting on PHP blog How to get Haskell syntax highlighting on PHP blog haskell php syntax-highlighting How Haskell PHP How to get Haskell syntax highlighting on PHP blog I'm making a blog in PHP and I'd really like to have syntax highlighting on Haskell code. Are there any tools for that ...
[ -0.00994873046875, 0.0142822265625, -0.00015354156494140625, -0.0024566650390625, 0.006103515625, 0.0206298828125, 0.00165557861328125, 0.0007476806640625, -0.01226806640625, -0.052978515625, -0.005889892578125, 0.01458740234375, -0.003875732421875, -0.0003566741943359375, 0.004425048828...
[ 11249, 2046, 20625, 142508, 6002, 86531, 127308, 214, 47302, 1415, 98, 1556, 3958, 84396, 177476, 6183, 1884, 765, 18151, 72977, 14037, 1096, 7, 22796, 474, 7722, 78779, 2041, 350, 36599, 60212 ]
[ 0.05877685546875, 0.06689453125, 0.1312255859375, 0.251708984375, 0.1558837890625, 0.2261962890625, 0.220458984375, 0.09930419921875, 0.2117919921875, 0.170654296875, 0.0062255859375, 0.10675048828125, 0.16943359375, 0.106689453125, 0.185791015625, 0.0390625, 0.0694580078125, 0.023...
embed
18125467_c1
18125467
haskell
1
the right tree) -- successor will be extracted from its original location. del' ( Branch y Empty Empty ) = Empty del' ( Branch y Empty r ) = r del' ( Branch y l Empty ) = l del' ( Branch y l r ) = Branch ySucc l rWithout_ySucc where ( rWithout_ySucc, ySucc ) = leftmost r where leftmost ( Branch y Empty Empty ) = ( Emp...
the right tree) -- successor will be extracted from its original location. del' ( Branch y Empty Empty ) = Empty del' ( Branch y Empty r ) = r del' ( Branch y l Empty ) = l del' ( Branch y l r ) = Branch ySucc l rWithout_ySucc where ( rWithout_ySucc, ySucc ) = leftmost r where leftmost ( Branch y Empty Empty ) = ( Emp...
[ 0.002960205078125, 0.00885009765625, 0.0002079010009765625, 0.00518798828125, 0.018798828125, 0.00860595703125, -0.0208740234375, -0.01483154296875, 0.01019287109375, 0.00946044921875, -0.002838134765625, -0.00933837890625, -0.0235595703125, -0.017578125, 0.00958251953125, 0.0206298828...
[ 70, 7108, 53201, 16, 4210, 39457, 42, 1221, 125663, 297, 1295, 6863, 7311, 31913, 146, 25, 21110, 206, 113, 31678, 939, 2203, 1690, 96, 14168, 10060, 194583, 6056, 53, 25737, 840, 15, 1181, 97, 6, 28864, 26073, 11809, 5, 154663, 101344,...
[ 0.06134033203125, 0.2093505859375, 0.2724609375, 0.013336181640625, 0.07080078125, 0.2305908203125, 0.146240234375, 0.0594482421875, 0.16796875, 0.06341552734375, 0.06097412109375, 0.202392578125, 0.1029052734375, 0.15087890625, 0.1826171875, 0.0855712890625, 0.1717529296875, 0.096...
embed
5264060_c0
5264060
haskell
0
Title: Does C# support function composition? Problem title: Does C# support function composition? Tags: haskell, composition, c%23, .net Problem: Does C# support function composition? In the latest version of C#, can I do something like Haskell's function composition? more... ? Function composition is the act of pipeli...
Does C# support function composition? Does C# support function composition? haskell composition c%23 .net Does Does C# support function composition? In the latest version of C#, can I do something like Haskell's function composition? more... ? I feel like linq is the closest but that's chaining, not function compositio...
[ -0.0172119140625, 0.009521484375, 0.0216064453125, 0.0196533203125, -0.01531982421875, 0.00543212890625, -0.00872802734375, -0.00408935546875, -0.00457763671875, -0.0223388671875, -0.017578125, -0.0050048828125, 0.013427734375, -0.00677490234375, -0.002655029296875, 0.00062942504882812...
[ 101790, 313, 4904, 8060, 32354, 166577, 1556, 142508, 501, 3949, 3742, 1179, 42850, 11389, 831, 54, 9844, 1884, 20625, 1286, 12319, 96, 44982, 20903, 271, 1608, 14653, 959 ]
[ 0.0784912109375, 0.09600830078125, 0.2432861328125, 0.1949462890625, 0.2169189453125, 0.2685546875, 0.1146240234375, 0.214599609375, 0.030303955078125, 0.01104736328125, 0.0765380859375, 0.11474609375, 0.0640869140625, 0.0810546875, 0.0662841796875, 0.048370361328125, 0.0097045898437...
embed
44824815_c0
44824815
haskell
0
Title: Haskell: What does &quot;uses&quot; do in control lens? Problem title: Haskell: What does &quot;uses&quot; do in control lens? Tags: haskell, haskell-lens Problem: Haskell: What does "uses" do in control lens? I'm new to Haskell. I was reading the code here and I'm not sure (though I can guess) what uses do: inR...
Haskell: What does &quot;uses&quot; do in control lens? Haskell: What does &quot;uses&quot; do in control lens? haskell haskell-lens Haskell What Haskell: What does "uses" do in control lens? I'm new to Haskell. I was reading the code here and I'm not sure (though I can guess) what uses do: Also, why's <- been used? I'...
[ -0.016845703125, 0.006072998046875, 0.0123291015625, 0.00958251953125, -0.0030517578125, 0.021240234375, -0.0020294189453125, 0.000110626220703125, 0.007080078125, -0.00836181640625, -0.0022430419921875, -0.0004673004150390625, 0.007415771484375, 0.000194549560546875, -0.0027923583984375...
[ 20625, 142508, 12, 4865, 14602, 41502, 29001, 1230, 54, 23, 6226, 3098, 7, 1556, 1977, 3525, 47, 16454, 18151, 9077, 57767, 2367, 4527, 15400, 4426, 9, 2809, 11814, 175904, 187136 ]
[ 0.1309814453125, 0.251220703125, 0.03424072265625, 0.107177734375, 0.06512451171875, 0.01922607421875, 0.2373046875, 0.006927490234375, 0.11669921875, 0.08270263671875, 0.2322998046875, 0.212158203125, 0.107177734375, 0.0919189453125, 0.1580810546875, 0.03753662109375, 0.001678466796...
embed
35892751_c2
35892751
haskell
2
(0 MB lost due to fragmentation) Tot time (elapsed) Avg pause Max pause Gen 0 2408 colls, 0 par 0.412s 0.427s 0.0002s 0.0075s Gen 1 7 colls, 0 par 0.440s 0.531s 0.0759s 0.1835s INIT time 0.000s ( Code signals: Data.Functor, Data.Array, qualified, Control.DeepSeq, Memoized, Collatz, LANGUAGE, BangPatterns, Array, Arr, ...
(0 MB lost due to fragmentation) Tot time (elapsed) Avg pause Max pause Gen 0 2408 colls, 0 par 0.412s 0.427s 0.0002s 0.0075s Gen 1 7 colls, 0 par 0.440s 0.531s 0.0759s 0.1835s INIT time 0.000s ( Code signals: Data.Functor, Data.Array, qualified, Control.DeepSeq, Memoized, Collatz, LANGUAGE, BangPatterns, Array, Arr, ...
[ 0.0201416015625, -0.00799560546875, 0.00162506103515625, 0.020263671875, 0.007080078125, -0.00665283203125, 0.0036468505859375, -0.005950927734375, 0.017822265625, -0.0118408203125, 0.0093994140625, -0.004486083984375, 0.01544189453125, 0.005035400390625, -0.0020751953125, -0.007354736...
[ 22085, 12918, 72856, 4743, 38551, 2320, 16, 13715, 1733, 127966, 71, 4908, 177, 76968, 9920, 15937, 757, 744, 8318, 122907, 7, 366, 6, 121254, 1530, 3768, 89678, 97259, 37509, 6873, 106, 361, 141929, 81730, 5016, 107754, 152177, 87, 157684,...
[ 0.1224365234375, 0.1683349609375, 0.14208984375, 0.0614013671875, 0.24609375, 0.08294677734375, 0.05682373046875, 0.2293701171875, 0.2193603515625, 0.1807861328125, 0.04669189453125, 0.1673583984375, 0.0721435546875, 0.296875, 0.19140625, 0.1949462890625, 0.1256103515625, 0.1021728...
embed
39812262_c1
39812262
haskell
1
* k) = 0 + (n * k) = (case 0 of {0->(n*k);Sy->...}) = n * k (equal to the left side) Case m = S(y) (Sy + n) * k =? Sy * k + n * k Left side: (case Sy of {0->...;Sy->S(y+n)}) * k = S(y+n) * k = case Sx of {0->...;Sx-> k + k * (y+n) Right side: Sy * k + n * k = (case Sy of {0->...;Sy->k + k*y}) + n * k = k + k*y + n * k...
* k) = 0 + (n * k) = (case 0 of {0->(n*k);Sy->...}) = n * k (equal to the left side) Case m = S(y) (Sy + n) * k =? Sy * k + n * k Left side: (case Sy of {0->...;Sy->S(y+n)}) * k = S(y+n) * k = case Sx of {0->...;Sx-> k + k * (y+n) Right side: Sy * k + n * k = (case Sy of {0->...;Sy->k + k*y}) + n * k = k + k*y + n * k...
[ 0.00015354156494140625, 0.0155029296875, 0.0067138671875, -0.012939453125, -0.006011962890625, -0.0274658203125, -0.0133056640625, 0.0029144287109375, 0.01611328125, -0.00009202957153320312, 0.005035400390625, -0.0059814453125, -0.01312255859375, -0.00168609619140625, -0.0020751953125, ...
[ 661, 472, 16, 2203, 757, 997, 19, 58437, 111, 2389, 1639, 92, 65183, 103607, 27, 653, 71723, 25737, 5609, 43731, 347, 159, 53, 4843, 636, 2480, 1328, 7225, 425, 90911, 147534, 99, 87, 4163, 179933, 15434, 32487, 193, 169429, 18151, 9655...
[ 0.1220703125, 0.19873046875, 0.0286407470703125, 0.12939453125, 0.1641845703125, 0.204833984375, 0.0987548828125, 0.1484375, 0.073974609375, 0.0982666015625, 0.03814697265625, 0.1070556640625, 0.17041015625, 0.000823974609375, 0.0191497802734375, 0.109619140625, 0.1383056640625, 0....
embed
53821074_c1
53821074
haskell
1
be created with 'SDL.Video.createRenderer'. newtype Renderer = Renderer Raw.Renderer deriving (Data, Eq, Generic, Ord, Show, Typeable) Code signals: list, qualified, of, Data.Data, Data.Typeable, GHC.Generics, What, SDL.Internal.Types.Window, SDL.Internal.Types, Window, Hico, Game.hs:273:5, Not, Perhaps, Game.hs:34:1-...
be created with 'SDL.Video.createRenderer'. newtype Renderer = Renderer Raw.Renderer deriving (Data, Eq, Generic, Ord, Show, Typeable) Code signals: list, qualified, of, Data.Data, Data.Typeable, GHC.Generics, What, SDL.Internal.Types.Window, SDL.Internal.Types, Window, Hico, Game.hs:273:5, Not, Perhaps, Game.hs:34:1-...
[ 0.000408172607421875, 0.00592041015625, 0.0118408203125, 0.01556396484375, 0.031982421875, -0.01513671875, -0.00897216796875, -0.0264892578125, -0.0194091796875, -0.004974365234375, -0.0294189453125, -0.039794921875, 0.0240478515625, -0.0274658203125, -0.032958984375, 0.00848388671875,...
[ 186, 75935, 678, 294, 27502, 25073, 7612, 2182, 1052, 23894, 56, 3525, 50986, 63137, 11783, 2203, 109997, 5, 16406, 6496, 137989, 864, 88342, 1771, 35379, 17367, 60457, 2886, 16, 28864, 26073, 7, 5303, 217225, 111, 11809, 196707, 527, 73265...
[ 0.10693359375, 0.185546875, 0.07073974609375, 0.0704345703125, 0.2005615234375, 0.2003173828125, 0.08447265625, 0.0270843505859375, 0.0894775390625, 0.209228515625, 0.1082763671875, 0.1695556640625, 0.312744140625, 0.202392578125, 0.20849609375, 0.07257080078125, 0.1956787109375, 0...
embed
9578416_c0
9578416
haskell
0
Title: Haskell parallel performance Problem title: Haskell parallel performance Tags: parallel-processing, functional-programming, haskell, performance Problem: Haskell parallel performance The task is to speed up a summation by using parMap or parListChunk or better. It actually runs slower with parallelism code. Edit...
Haskell parallel performance Haskell parallel performance parallel-processing functional-programming haskell performance Haskell RTS Haskell parallel performance The task is to speed up a summation by using parMap or parListChunk or better. It actually runs slower with parallelism code. Edit: Facepalm .. I overlooked h...
[ -0.01129150390625, 0.00946044921875, 0.00469970703125, -0.00469970703125, -0.019287109375, -0.00469970703125, -0.0025177001953125, -0.007659912109375, -0.01123046875, -0.03271484375, 0.00189208984375, 0.0028076171875, 0.00469970703125, 0.0302734375, 0.006317138671875, -0.01348876953125...
[ 20625, 142508, 95103, 23718, 63923, 123309, 28966, 1556, 27389, 294, 581, 66211, 83, 47, 38352, 1257, 29334, 1363, 390, 17368, 366, 166179, 707, 154663, 15982, 3678, 11522, 20653, 127877, 72803, 56, 678, 8780, 18151, 42079, 26219, 5007, 39, ...
[ 0.17333984375, 0.2479248046875, 0.26708984375, 0.220458984375, 0.08935546875, 0.1246337890625, 0.0465087890625, 0.1463623046875, 0.15283203125, 0.1104736328125, 0.04705810546875, 0.2359619140625, 0.10308837890625, 0.0928955078125, 0.2130126953125, 0.1361083984375, 0.216796875, 0.13...
embed
24251603_c0
24251603
haskell
0
Title: Haskell: Change a list of 100 numbers to 10 lists of 10 numbers? Problem title: Haskell: Change a list of 100 numbers to 10 lists of 10 numbers? Tags: purely-functional, list, haskell, functional-programming, function Problem: Haskell: Change a list of 100 numbers to 10 lists of 10 numbers? In Haskell, how does ...
Haskell: Change a list of 100 numbers to 10 lists of 10 numbers? Haskell: Change a list of 100 numbers to 10 lists of 10 numbers? purely-functional list haskell functional-programming function Haskell Change Haskell: Change a list of 100 numbers to 10 lists of 10 numbers? In Haskell, how does one change a list of x num...
[ -0.01507568359375, -0.01202392578125, 0.002166748046875, 0.00775146484375, 0.005645751953125, 0.0125732421875, -0.00885009765625, -0.0167236328125, 0.002105712890625, 0.0030670166015625, 0.0030517578125, 0.0016021728515625, 0.000217437744140625, 0.0291748046875, -0.019287109375, -0.008...
[ 20625, 142508, 12, 87377, 5303, 805, 101935, 47, 209, 111, 32, 34166, 538, 137175, 1556, 123309, 28966, 32354, 10, 360, 3642, 14602, 1632, 15549, 1022, 3934, 653, 5117, 1614, 6562, 2806, 765, 1492, 17932, 534, 927, 387, 759, 97249, 10763,...
[ 0.16162109375, 0.251708984375, 0.041229248046875, 0.2364501953125, 0.2030029296875, 0.2220458984375, 0.1907958984375, 0.1474609375, 0.2108154296875, 0.0638427734375, 0.00469970703125, 0.0740966796875, 0.017059326171875, 0.118896484375, 0.1214599609375, 0.13671875, 0.060577392578125, ...
embed
2486564_c0
2486564
haskell
0
Title: What does a fullstop or period or dot (.) mean in Haskell? Problem title: What does a fullstop or period or dot (.) mean in Haskell? Tags: syntax, operators, haskell, function-composition Problem: What does a fullstop or period or dot (.) mean in Haskell? I really wish that Google was better at searching for syn...
What does a fullstop or period or dot (.) mean in Haskell? What does a fullstop or period or dot (.) mean in Haskell? syntax operators haskell function-composition What Haskell RealFrac Array What does a fullstop or period or dot (.) mean in Haskell? I really wish that Google was better at searching for syntax:
[ -0.006500244140625, -0.0064697265625, 0.00640869140625, 0.010986328125, -0.004180908203125, -0.00119781494140625, -0.0147705078125, -0.01513671875, -0.00112152099609375, -0.0213623046875, 0.0024566650390625, -0.003570556640625, 0.0194091796875, -0.00567626953125, -0.00116729736328125, ...
[ 4865, 14602, 4393, 19111, 707, 14922, 20633, 5, 29459, 23, 20625, 142508, 10, 6002, 86531, 39933, 1556, 32354, 277, 40322, 5120, 919, 20251, 69253, 53, 6183, 32599, 1815, 11522, 99, 157318 ]
[ 0.033599853515625, 0.0517578125, 0.1767578125, 0.293212890625, 0.0660400390625, 0.2802734375, 0.265869140625, 0.1348876953125, 0.1475830078125, 0.07379150390625, 0.1585693359375, 0.27978515625, 0.050140380859375, 0.0775146484375, 0.1650390625, 0.1529541015625, 0.1162109375, 0.09606...
embed
64962302_c0
64962302
haskell
0
Title: How can I sum a list of tuples in Haskell? Problem title: How can I sum a list of tuples in Haskell? Tags: haskell Problem: How can I sum a list of tuples in Haskell? This is a super simple question, but I can't seem to find the answer. Say I have a list of tuples in Haskell, myList = [("foo", 2), ("bar", 4), ("...
How can I sum a list of tuples in Haskell? How can I sum a list of tuples in Haskell? haskell How Haskell How can I sum a list of tuples in Haskell? This is a super simple question, but I can't seem to find the answer. Say I have a list of tuples in Haskell, and I want to group them by their first elements and sum them...
[ 0.00262451171875, -0.00023746490478515625, 0.0040283203125, 0.024658203125, -0.0167236328125, 0.0036773681640625, -0.01373291015625, 0.0033721923828125, 0.0223388671875, -0.0037994384765625, 0.00141143798828125, -0.01190185546875, 0.017578125, 0.018310546875, -0.00946044921875, 0.00318...
[ 11249, 831, 87, 10554, 5303, 111, 370, 99726, 23, 20625, 142508, 1556, 10, 8781, 35166, 3444, 21115, 390, 5117, 80854, 17932, 3642, 27781, 140992, 3584, 31, 65034, 1299, 21162 ]
[ 0.076416015625, 0.0830078125, 0.05865478515625, 0.26025390625, 0.1947021484375, 0.0762939453125, 0.15185546875, 0.259033203125, 0.06329345703125, 0.127197265625, 0.24365234375, 0.10107421875, 0.00274658203125, 0.053680419921875, 0.027679443359375, 0.030120849609375, 0.135009765625, ...
embed
15329707_c0
15329707
haskell
0
Title: Haskell finding the correct number in list Problem title: Haskell finding the correct number in list Tags: list, compression, haskell Problem: Haskell finding the correct number in list So I want to put in two parameters into this function, a list and the position of the item that I want to print. listNumber [1,...
Haskell finding the correct number in list Haskell finding the correct number in list list compression haskell Haskell List Haskell finding the correct number in list So I want to put in two parameters into this function, a list and the position of the item that I want to print. I have tried this problem by doing this ...
[ -0.0196533203125, 0.00238037109375, 0.03662109375, 0.01416015625, 0.005615234375, 0.0255126953125, -0.00750732421875, 0.01031494140625, 0.0108642578125, 0.00787353515625, 0.0196533203125, -0.0286865234375, 0.00165557861328125, 0.03125, -0.02197265625, -0.0279541015625, 0.030151367187...
[ 20625, 142508, 90791, 70, 26785, 14012, 23, 5303, 375, 48448, 1556, 32036, 3444, 3884, 6626, 171859, 3934, 32354, 136, 19069, 35735, 28412, 37842, 2967, 3714, 121742 ]
[ 0.1353759765625, 0.19140625, 0.134033203125, 0.0242156982421875, 0.220947265625, 0.2176513671875, 0.1370849609375, 0.2247314453125, 0.110595703125, 0.16455078125, 0.126220703125, 0.16552734375, 0.0584716796875, 0.050506591796875, 0.116455078125, 0.15966796875, 0.02569580078125, 0.1...
embed
1802015_c0
1802015
haskell
0
Title: When should I use record syntax for data declarations in Haskell? Problem title: When should I use record syntax for data declarations in Haskell? Tags: types, haskell Problem: When should I use record syntax for data declarations in Haskell? Record syntax seems extremely convenient compared to having to write y...
When should I use record syntax for data declarations in Haskell? When should I use record syntax for data declarations in Haskell? types haskell When Haskell When should I use record syntax for data declarations in Haskell? Record syntax seems extremely convenient compared to having to write your own accessor function...
[ -0.00714111328125, 0.0031280517578125, 0.007232666015625, 0.0108642578125, 0.007568359375, 0.00347900390625, -0.01708984375, 0.005584716796875, -0.0079345703125, -0.01446533203125, 0.000016808509826660156, -0.0238037109375, 0.00592041015625, -0.00531005859375, -0.014404296875, -0.02319...
[ 14847, 5608, 4527, 17164, 6002, 86531, 2053, 21635, 20625, 142508, 52895, 1556, 100, 5256, 23, 54877, 111531, 142267, 154186, 33022, 10002, 97841, 42, 32354, 226829, 3229, 2965, 645, 3638, 26458 ]
[ 0.08392333984375, 0.0726318359375, 0.083984375, 0.229248046875, 0.144287109375, 0.20458984375, 0.127197265625, 0.182861328125, 0.113525390625, 0.21728515625, 0.1290283203125, 0.09710693359375, 0.006500244140625, 0.00384521484375, 0.009063720703125, 0.2093505859375, 0.03485107421875, ...
embed
23523000_c1
23523000
haskell
1
take t $ do d <- [ 0 .. ] ; list d series thanks, that helped a lot! what about this: symdiff :: N -> N -> N symdiff x y = case x of Z -> y S x' -> case y of Z -> x S y' -> ??? Are these lines correct (except the line with ???, I am thinking about it at already) This works for the last line: S y' -> symdiff x' y' Code...
take t $ do d <- [ 0 .. ] ; list d series thanks, that helped a lot! what about this: symdiff :: N -> N -> N symdiff x y = case x of Z -> y S x' -> case y of Z -> x S y' -> ??? Are these lines correct (except the line with ???, I am thinking about it at already) This works for the last line: S y' -> symdiff x' y' Code...
[ -0.017822265625, -0.00177764892578125, 0.006561279296875, -0.0157470703125, -0.021240234375, -0.0027618408203125, -0.017578125, 0.0230712890625, 0.01531982421875, 0.006744384765625, -0.0108642578125, 0.0157470703125, 0.0120849609375, 0.00872802734375, -0.00885009765625, 0.016357421875,...
[ 5646, 808, 3650, 54, 104, 757, 5303, 36549, 104902, 903, 954, 39, 152462, 541, 33079, 1022, 113, 2203, 7225, 111, 567, 159, 25, 124519, 26785, 70, 13315, 678, 37336, 47644, 21771, 43240, 4568, 28864, 26073, 8647, 69070, 202567, 138724, 48...
[ 0.1207275390625, 0.1192626953125, 0.1253662109375, 0.02984619140625, 0.0887451171875, 0.08587646484375, 0.1463623046875, 0.1669921875, 0.027618408203125, 0.00830078125, 0.1141357421875, 0.116455078125, 0.284912109375, 0.0916748046875, 0.0703125, 0.05291748046875, 0.1221923828125, 0...
embed
52268413_c0
52268413
haskell
0
Title: Transform getArgs from IO [String] to IO [Int] Problem title: Transform getArgs from IO [String] to IO [Int] Tags: haskell, monads Problem: Transform getArgs from IO [String] to IO [Int] I'd like to write a program like the following: add :: Int -> Int -> Int add a b = a + b main :: IO () main = do args <- getIn...
Transform getArgs from IO [String] to IO [Int] Transform getArgs from IO [String] to IO [Int] haskell monads IO Transform System.Environment Transform getArgs from IO [String] to IO [Int] I'd like to write a program like the following: Is there a way I can write the function getIntArgs in terms of getArgs (from System....
[ -0.0181884765625, 0.003753662109375, 0.0004405975341796875, 0.00787353515625, -0.000514984130859375, 0.03515625, -0.0086669921875, -0.0032958984375, 0.00244140625, -0.005096435546875, 0.019287109375, -0.027587890625, -0.0263671875, 0.025146484375, 0.00153350830078125, -0.00958251953125...
[ 11062, 5037, 2046, 7614, 9405, 1295, 17780, 71713, 214, 47, 4153, 18, 1556, 142508, 2667, 712, 7, 12353, 7768, 686, 1900, 1884, 33022, 1528, 25632, 3917, 831, 32354, 69407, 161063, 1388 ]
[ 0.1279296875, 0.22021484375, 0.158447265625, 0.2261962890625, 0.2197265625, 0.0838623046875, 0.2222900390625, 0.1329345703125, 0.0219879150390625, 0.07232666015625, 0.099853515625, 0.168701171875, 0.1109619140625, 0.228515625, 0.0860595703125, 0.1204833984375, 0.04290771484375, 0.1...
embed
26929409_c0
26929409
haskell
0
Title: Haskell - parse error in input Problem title: Haskell - parse error in input Tags: haskell Problem: Haskell - parse error in input I have the following code that returns all numbers in the input list within the range given by the first two arguments: inRange :: Int -> Int -> [Int] -> [Int] inRange a b xs = [if (...
Haskell - parse error in input Haskell - parse error in input haskell Haskell Haskell - parse error in input I have the following code that returns all numbers in the input list within the range given by the first two arguments: and it gives me the following error: Sorry if I'm asking a stupid question but I really don...
[ -0.01300048828125, 0.024169921875, 0.00225830078125, 0.0091552734375, 0.00970458984375, 0.039794921875, -0.01263427734375, -0.0038604736328125, 0.005157470703125, 0.009033203125, -0.00162506103515625, 0.00274658203125, 0.0169677734375, -0.005035400390625, -0.000568389892578125, 0.00592...
[ 20625, 142508, 366, 184, 18499, 23, 107730, 1556, 25632, 18151, 30646, 756, 101935, 5303, 28032, 37457, 34475, 5117, 6626, 10750, 76199, 163, 90502, 2174, 113292, 110833, 9655, 6183, 2301, 18, 3714, 39, 20594, 44691 ]
[ 0.1304931640625, 0.218505859375, 0.160400390625, 0.1453857421875, 0.2177734375, 0.1141357421875, 0.2100830078125, 0.12841796875, 0.06689453125, 0.1185302734375, 0.1171875, 0.086181640625, 0.131591796875, 0.1231689453125, 0.10205078125, 0.146484375, 0.03948974609375, 0.0409545898437...
embed
70513058_c0
70513058
haskell
0
Title: Patter for byte when I got pattern for numbers in lexer Problem title: Patter for byte when I got pattern for numbers in lexer Tags: haskell, alex, lexer Problem: Patter for byte when I got pattern for numbers in lexer I have pattern for numbers in lexer $digit=0-9 $digit+ { \s -> TNum (readRational s) } I want ...
Patter for byte when I got pattern for numbers in lexer Patter for byte when I got pattern for numbers in lexer haskell alex lexer Patter TNum Patter for byte when I got pattern for numbers in lexer I have pattern for numbers in lexer I want to add another pattern for bytes. Bytes contain 2 symbols from diaposon 0 - f....
[ -0.005401611328125, -0.004058837890625, 0.0042724609375, 0.01611328125, -0.01141357421875, 0.01104736328125, -0.00189971923828125, 0.01324462890625, 0.041015625, -0.016845703125, 0.021240234375, 0.0050048828125, -0.002044677734375, -0.0048828125, -0.00250244140625, 0.006134033203125, ...
[ 1342, 3055, 100, 390, 67, 3229, 87, 4163, 103510, 101935, 95, 34058, 1556, 142508, 662, 425, 316, 23, 765, 3444, 15190, 15700, 1636, 3311, 70541, 116, 26582, 7, 1295, 45, 17121, 191, 757, 20, 1238, 130078, 5608, 33022, 20255, 157167, 14...
[ 0.1468505859375, 0.1221923828125, 0.1190185546875, 0.10009765625, 0.1727294921875, 0.047210693359375, 0.0203399658203125, 0.06231689453125, 0.219970703125, 0.1597900390625, 0.1082763671875, 0.2230224609375, 0.0704345703125, 0.154052734375, 0.0275726318359375, 0.03759765625, 0.1503906...
embed
47812823_c0
47812823
haskell
0
Title: Overview of Edward Kmetts packages for Haskell Problem title: Overview of Edward Kmetts packages for Haskell Tags: category-theory, haskell Problem: Overview of Edward Kmetts packages for Haskell I remember at one point seeing an overview of Kmetts packages in some Haskell package, but I don't find it anymore. I...
Overview of Edward Kmetts packages for Haskell Overview of Edward Kmetts packages for Haskell category-theory haskell Overview Edward Kmetts Haskell Overview of Edward Kmetts packages for Haskell I remember at one point seeing an overview of Kmetts packages in some Haskell package, but I don't find it anymore. It showe...
[ 0.0294189453125, -0.00157928466796875, -0.00250244140625, -0.002593994140625, 0.0166015625, 0.01153564453125, -0.040283203125, -0.00982666015625, -0.0021209716796875, 0.005584716796875, 0.0067138671875, -0.04052734375, -0.006011962890625, 0.017822265625, 0.0103759765625, 0.006408691406...
[ 9578, 22751, 38157, 341, 1928, 933, 98169, 7, 100, 20625, 142508, 95487, 2347, 30675, 1556, 37629, 86681, 645, 18, 7413, 176683, 168360, 756, 111, 1614, 3509, 42548, 117538, 17721, 8951, 442 ]
[ 0.012298583984375, 0.15234375, 0.1368408203125, 0.08416748046875, 0.2059326171875, 0.2012939453125, 0.2113037109375, 0.008453369140625, 0.002044677734375, 0.0970458984375, 0.19775390625, 0.137451171875, 0.047698974609375, 0.011138916015625, 0.08782958984375, 0.048675537109375, 0.0445...
embed
65967059_c0
65967059
haskell
0
Title: How to verify if a list of strings contains only digit characters? Problem title: How to verify if a list of strings contains only digit characters? Tags: list, haskell, string Problem: How to verify if a list of strings contains only digit characters? I would like to have a function that return True if my list ...
How to verify if a list of strings contains only digit characters? How to verify if a list of strings contains only digit characters? list haskell string How How to verify if a list of strings contains only digit characters? I would like to have a function that return True if my list of strings contain only digit chara...
[ -0.02197265625, -0.0118408203125, -0.001129150390625, 0.00390625, -0.01123046875, 0.004425048828125, 0.00811767578125, 0.010009765625, 0.00506591796875, -0.0019073486328125, -0.00750732421875, -0.03271484375, 0.005279541015625, 0.003875732421875, -0.03515625, 0.00390625, 0.0284423828...
[ 11249, 47, 493, 40383, 2174, 5303, 111, 79315, 7, 70541, 4734, 153939, 124850, 1556, 142508, 10, 1884, 32354, 30646, 87599, 22225, 184, 120262, 18632, 418, 304, 363, 2357, 35046, 4263, 959, 11 ]
[ 0.07403564453125, 0.06646728515625, 0.177734375, 0.182861328125, 0.11865234375, 0.1783447265625, 0.06402587890625, 0.251220703125, 0.05413818359375, 0.1318359375, 0.1605224609375, 0.2264404296875, 0.1947021484375, 0.152587890625, 0.239501953125, 0.004791259765625, 0.031768798828125, ...
embed
6750609_c0
6750609
haskell
0
Title: List of options: equivalent of sequence in Scala? Problem title: List of options: equivalent of sequence in Scala? Tags: sequence, haskell, scala Problem: List of options: equivalent of sequence in Scala? What is the equivalent of Haskell's sequence in Scala? I want to turn list of options into an option of list...
List of options: equivalent of sequence in Scala? List of options: equivalent of sequence in Scala? sequence haskell scala List Scala None Some List of options: equivalent of sequence in Scala? What is the equivalent of Haskell's sequence in Scala? I want to turn list of options into an option of list. It should come o...
[ 0.01263427734375, 0.017333984375, 0.0004863739013671875, 0.0152587890625, 0.0096435546875, -0.01708984375, 0.01214599609375, -0.0084228515625, -0.00396728515625, 0.0033721923828125, -0.0267333984375, 0.0032958984375, 0.0036468505859375, 0.006591796875, 0.00119781494140625, 0.0064086914...
[ 32036, 111, 50717, 183234, 40, 944, 3956, 23, 152653, 11, 32, 1556, 142508, 146232, 438, 86, 31384, 20625, 3444, 15504, 5303, 3934, 35829 ]
[ 0.14013671875, 0.090576171875, 0.2203369140625, 0.1517333984375, 0.07916259765625, 0.1417236328125, 0.10546875, 0.0599365234375, 0.172119140625, 0.1285400390625, 0.0003662109375, 0.1087646484375, 0.2086181640625, 0.1732177734375, 0.07958984375, 0.129150390625, 0.013763427734375, 0....
embed
55770849_c0
55770849
haskell
0
Title: Why can&#x27;t haskell deduce this multi parameter type class? Problem title: Why can&#x27;t haskell deduce this multi parameter type class? Tags: haskell Problem: Why can't haskell deduce this multi parameter type class? I have two typeclasses class Concatable a where empty :: a (<+>) :: a -> a -> a Code signal...
Why can&#x27;t haskell deduce this multi parameter type class? Why can&#x27;t haskell deduce this multi parameter type class? haskell a the Why Concatable Output AnsiDark LANGUAGE TypeApplications AllowAmbiguousTypes MultiParamTypeClasses FlexibleContexts FlexibleInstances ANSITerm.hs:65:22 Could ANSITerm.hs:59:1-44 Wh...
[ -0.000682830810546875, -0.0029754638671875, -0.0028839111328125, 0.036865234375, -0.029296875, 0.0093994140625, -0.0177001953125, 0.0016937255859375, 0.01446533203125, -0.00096893310546875, -0.01513671875, -0.033447265625, 0.0181884765625, 0.0274658203125, -0.0223388671875, -0.02966308...
[ 44084, 831, 3768, 18, 1556, 142508, 8, 106357, 903, 6024, 171859, 10644, 18507, 1657, 408, 22819, 13538, 893, 172, 62051, 92, 98064, 60457, 182867, 41566, 150567, 12282, 196707, 19335, 55292, 140803, 180842, 2661, 22829, 116071, 14368, 56, 12...
[ 0.103759765625, 0.09466552734375, 0.053131103515625, 0.10260009765625, 0.1546630859375, 0.218994140625, 0.1531982421875, 0.190673828125, 0.0819091796875, 0.1915283203125, 0.188720703125, 0.17236328125, 0.1942138671875, 0.050689697265625, 0.1517333984375, 0.1619873046875, 0.0567932128...
embed
28610955_c1
28610955
haskell
1
x:xs)) = flattenN (n-1) x +++ flattenN n (L xs) where N x +++ N y = L [N x, N y] N x +++ L ys = L (N x:ys) L xs +++ N y = L (xs++[N y]) L xs +++ L ys = L (xs++ys) To me this looks a little bit ugly and it should be simpler than that. Do you have any ideas how to implement the partial flattening of a nested list functio...
x:xs)) = flattenN (n-1) x +++ flattenN n (L xs) where N x +++ N y = L [N x, N y] N x +++ L ys = L (N x:ys) L xs +++ N y = L (xs++[N y]) L xs +++ L ys = L (xs++ys) To me this looks a little bit ugly and it should be simpler than that. Do you have any ideas how to implement the partial flattening of a nested list functio...
[ -0.0260009765625, 0.0206298828125, 0.01422119140625, -0.00872802734375, 0.0093994140625, 0.0179443359375, 0.01458740234375, -0.0186767578125, 0.0262451171875, 0.0137939453125, 0.00396728515625, -0.0191650390625, 0.01434326171875, 0.00921630859375, -0.0029144287109375, -0.00222778320312...
[ 1022, 12, 425, 7, 16, 2203, 49878, 510, 839, 19, 110218, 86409, 653, 866, 7440, 541, 113, 339, 4778, 37223, 903, 33342, 10176, 4785, 75, 110608, 8781, 42, 25647, 3642, 29479, 2878, 289, 67, 592, 8512, 71, 5303, 32354, 12921, 3917, 952...
[ 0.158203125, 0.14697265625, 0.166015625, 0.154052734375, 0.1041259765625, 0.0775146484375, 0.2305908203125, 0.23876953125, 0.10711669921875, 0.0618896484375, 0.167236328125, 0.2060546875, 0.0989990234375, 0.084228515625, 0.011138916015625, 0.07861328125, 0.1014404296875, 0.09606933...
embed
49603140_c1
49603140
haskell
1
405 Method Not Allowed when trying to post. I know this is connected to the https because when I perform a request straight to the IP:PORT of the api it works. What could be the issue here? Code signals: /etc/letsencrypt/options-ssl-nginx.conf, Running, Haskell, Development, Production, fullchain1.pem, privkey1.pem, a...
405 Method Not Allowed when trying to post. I know this is connected to the https because when I perform a request straight to the IP:PORT of the api it works. What could be the issue here? Code signals: /etc/letsencrypt/options-ssl-nginx.conf, Running, Haskell, Development, Production, fullchain1.pem, privkey1.pem, a...
[ -0.0179443359375, 0.01953125, 0.00885009765625, -0.00933837890625, -0.021240234375, 0.0020751953125, 0.01055908203125, 0.005889892578125, -0.006439208984375, -0.029296875, -0.019775390625, 0.01446533203125, -0.0032501220703125, 0.0101318359375, -0.03662109375, -0.0062255859375, -0.00...
[ 1112, 758, 74644, 11205, 62, 41566, 297, 3229, 31577, 1305, 3714, 162711, 3975, 51339, 50336, 80560, 47, 8021, 91599, 31470, 43240, 5809, 31089, 28864, 26073, 111879, 1974, 1015, 136791, 109585, 24861, 449, 73, 425, 5, 70547, 20625, 142508, ...
[ 0.2081298828125, 0.2198486328125, 0.2452392578125, 0.1112060546875, 0.013885498046875, 0.190673828125, 0.0196685791015625, 0.0360107421875, 0.15283203125, 0.1630859375, 0.0235595703125, 0.1357421875, 0.2401123046875, 0.0936279296875, 0.14990234375, 0.056671142578125, 0.01481628417968...
embed
77592808_c0
77592808
haskell
0
Title: Functions that can be deduced by their type signature Problem title: Functions that can be deduced by their type signature Tags: functional-programming, haskell Problem: Functions that can be deduced by their type signature I was introduced to this idea informally by this c++ talk Ben Deane “Using Types Effectiv...
Functions that can be deduced by their type signature Functions that can be deduced by their type signature functional-programming haskell Functions Functions that can be deduced by their type signature I was introduced to this idea informally by this c++ talk Ben Deane “Using Types Effectively" For example: can be ded...
[ 0.01806640625, -0.000766754150390625, -0.00113677978515625, 0.003570556640625, -0.018798828125, -0.01251220703125, -0.01019287109375, 0.0166015625, 0.00787353515625, -0.0191650390625, -0.01025390625, -0.033447265625, -0.006256103515625, 0.01190185546875, 0.004150390625, 0.0057983398437...
[ 28670, 10763, 450, 831, 8, 106357, 71, 390, 2363, 10644, 138256, 123309, 28966, 1556, 142508, 65508, 6528, 152701, 501, 37223, 22120, 3419, 262, 6130, 1062, 60457, 216741, 186, 47, 5117, 27798, 18614, 25443, 903, 65514, 30698 ]
[ 0.1470947265625, 0.11865234375, 0.011505126953125, 0.12939453125, 0.193359375, 0.2308349609375, 0.0882568359375, 0.04638671875, 0.0158843994140625, 0.2366943359375, 0.21630859375, 0.1290283203125, 0.09088134765625, 0.108154296875, 0.211181640625, 0.057830810546875, 0.06622314453125, ...
embed
8736774_c0
8736774
haskell
0
Title: Mapping with pairs Problem title: Mapping with pairs Tags: haskell Problem: Mapping with pairs I'm really new to Haskell and I'm stuck on trying to map the first item of each pair in a list. Obviously this works: map :: (a -> b) -> [a] -> [b] map f xs = [f x | x <- xs] But how do I get it to work for map :: (a -...
Mapping with pairs Mapping with pairs haskell Mapping Mapping with pairs I'm really new to Haskell and I'm stuck on trying to map the first item of each pair in a list. Obviously this works: But how do I get it to work for I just want it to ignore the Int values for now and apply f to a like it does in the first exampl...
[ -0.0108642578125, 0.00122833251953125, 0.006317138671875, -0.0014495849609375, -0.015625, 0.01171875, -0.0150146484375, 0.006805419921875, 0.0157470703125, -0.0208740234375, 0.0032196044921875, -0.00543212890625, 0.00125885009765625, 0.028076171875, -0.00732421875, -0.00848388671875, ...
[ 911, 26783, 678, 80836, 1556, 142508, 7, 6183, 3525, 47, 20625, 179933, 31577, 22288, 5117, 35735, 12638, 5303, 903, 43240, 2046, 4488, 3444, 124962, 360, 18, 142424, 100, 5036, 59911, 1238, 10, 1884, 442, 27781, 4188, 4358 ]
[ 0.180908203125, 0.101806640625, 0.16650390625, 0.25341796875, 0.1480712890625, 0.2197265625, 0.072509765625, 0.025726318359375, 0.0723876953125, 0.078125, 0.1346435546875, 0.0855712890625, 0.06353759765625, 0.204345703125, 0.1048583984375, 0.1209716796875, 0.047882080078125, 0.1534...
embed
31231839_c0
31231839
haskell
0
Title: Installing haskell-mode into Emacs on Ubuntu 12 Problem title: Installing haskell-mode into Emacs on Ubuntu 12 Tags: haskell, haskell-mode, emacs Problem: Installing haskell-mode into Emacs on Ubuntu 12 I'm following these instructions to install haskell-mode on Ubuntu 12. However when I get to the point of typi...
Installing haskell-mode into Emacs on Ubuntu 12 Installing haskell-mode into Emacs on Ubuntu 12 haskell haskell-mode emacs Installing Emacs Ubuntu M-x RET Installing haskell-mode into Emacs on Ubuntu 12 I'm following these instructions to install haskell-mode on Ubuntu 12. However when I get to the point of typing M-x ...
[ 0.00139617919921875, -0.00118255615234375, 0.022216796875, -0.00007772445678710938, 0.005828857421875, 0.0218505859375, -0.0023651123046875, -0.019775390625, 0.00628662109375, 0.00653076171875, 0.00982666015625, -0.044189453125, 0.01202392578125, -0.020751953125, -0.015625, -0.00445556...
[ 107951, 1556, 142508, 61170, 3934, 85269, 4439, 116890, 427, 352, 2263, 276, 9, 425, 41116, 25632, 167934, 20600, 5035, 11417, 178036, 13, 109585, 38595, 110, 14858, 38, 3164, 2886, 77336, 127887, 49726, 35064, 44691 ]
[ 0.1044921875, 0.171630859375, 0.2470703125, 0.161865234375, 0.07415771484375, 0.187255859375, 0.211669921875, 0.1573486328125, 0.19091796875, 0.12890625, 0.108154296875, 0.09423828125, 0.0670166015625, 0.135986328125, 0.2259521484375, 0.036468505859375, 0.05810546875, 0.10150146484...
embed
15882170_c0
15882170
haskell
0
Title: Handling joint key presses with Haskell Problem title: Handling joint key presses with Haskell Tags: keyboard-events, haskell Problem: Handling joint key presses with Haskell Writing a program in Haskell, I am struggling to handle key presses of the form ctrl-s and ctrl-l I am using the following code: main :: I...
Handling joint key presses with Haskell Handling joint key presses with Haskell keyboard-events haskell Handling Haskell NoBuffering You Handling joint key presses with Haskell Writing a program in Haskell, I am struggling to handle key presses of the form ctrl-s and ctrl-l I am using the following code: How can I make...
[ -0.0089111328125, 0.0079345703125, 0.0004119873046875, -0.0164794921875, -0.005584716796875, 0.0125732421875, 0.00787353515625, -0.01416015625, -0.025146484375, -0.01177978515625, -0.006439208984375, -0.0111083984375, -0.0224609375, 0.00750732421875, -0.0390625, 0.0074462890625, -0.0...
[ 193237, 124416, 22799, 30501, 7, 678, 20625, 142508, 149186, 90141, 1556, 438, 7235, 18234, 2583, 1528, 237875, 34831, 3173, 108963, 54123, 9, 136, 141, 17368, 25632, 18151, 75530, 184, 68847, 77679, 8035 ]
[ 0.179443359375, 0.2138671875, 0.179931640625, 0.2183837890625, 0.061553955078125, 0.0694580078125, 0.12890625, 0.2313232421875, 0.139404296875, 0.148193359375, 0.1099853515625, 0.061981201171875, 0.0411376953125, 0.1448974609375, 0.043670654296875, 0.1015625, 0.1102294921875, 0.155...
embed
25098983_c0
25098983
haskell
0
Title: Haskell - Printing elements of a tuple Problem title: Haskell - Printing elements of a tuple Tags: printing, haskell, dictionary Problem: Haskell - Printing elements of a tuple I know that I can print line-by-line the tuples in a list of tuples like this: Prelude> mapM_ print [(1, 1), (2, 4), (3, 9)] (1,1) (2,4)...
Haskell - Printing elements of a tuple Haskell - Printing elements of a tuple printing haskell dictionary Haskell Printing Prelude mapM_ Haskell - Printing elements of a tuple I know that I can print line-by-line the tuples in a list of tuples like this: But suppose that I want to output this to a CSV file and I want t...
[ 0.00958251953125, -0.00396728515625, 0.0126953125, 0.0167236328125, -0.004913330078125, 0.0101318359375, -0.003021240234375, -0.0022125244140625, 0.000446319580078125, 0.00121307373046875, -0.01507568359375, -0.019775390625, 0.0174560546875, 0.019287109375, -0.00799560546875, 0.0059204...
[ 20625, 142508, 39754, 80854, 370, 8705, 214, 2448, 1916, 1556, 10763, 1914, 822, 22288, 594, 111, 3714, 831, 28412, 13315, 1272, 2256, 70, 99726, 23, 5303, 1884, 903, 139124, 3444, 140992, 47, 10, 313, 43486, 11435, 54 ]
[ 0.1246337890625, 0.2398681640625, 0.177001953125, 0.130859375, 0.15185546875, 0.1903076171875, 0.009063720703125, 0.139404296875, 0.02301025390625, 0.1129150390625, 0.03973388671875, 0.0284881591796875, 0.1260986328125, 0.1107177734375, 0.0224761962890625, 0.00506591796875, 0.0390625...
embed
5692138_c0
5692138
haskell
0
Title: Checking if a string holds an Integer Problem title: Checking if a string holds an Integer Tags: parsing, haskell Problem: Checking if a string holds an Integer Why this code doesn't work: import IO import Char isInteger "" = False isInteger (a:b) = if length b == 0 && isDigit(a) == True then True else if isDigi...
Checking if a string holds an Integer Checking if a string holds an Integer parsing haskell IO Char Checking Integer a:b Checking if a string holds an Integer Why this code doesn't work:
[ -0.03662109375, -0.0140380859375, -0.00433349609375, 0.033447265625, -0.005126953125, 0.029296875, 0.0203857421875, -0.0439453125, -0.00017261505126953125, -0.00106048583984375, 0.006866455078125, -0.0184326171875, -0.0087890625, -0.00384521484375, -0.012451171875, -0.00098419189453125...
[ 38679, 214, 2174, 79315, 16401, 7, 142, 44401, 366, 6953, 1556, 142508, 17780, 21656, 10, 12, 275, 903, 18151, 22027, 18, 4488 ]
[ 0.205322265625, 0.08538818359375, 0.1239013671875, 0.2496337890625, 0.1934814453125, 0.0853271484375, 0.009674072265625, 0.261474609375, 0.0767822265625, 0.0416259765625, 0.1439208984375, 0.2086181640625, 0.1722412109375, 0.140380859375, 0.0477294921875, 0.04541015625, 0.115966796875...
embed
74361808_c0
74361808
haskell
0
Title: Couldn&#x27;t match type &#x27;b&#x27; with Int Problem title: Couldn&#x27;t match type &#x27;b&#x27; with Int Tags: haskell Problem: Couldn't match type 'b' with Int Task: Transform a list of numbers using map so every even number gets divided by 2 and every odd number gets multiplied by 2 prel2 :: (Fractional ...
Couldn&#x27;t match type &#x27;b&#x27; with Int Couldn&#x27;t match type &#x27;b&#x27; with Int haskell Couldn prel2 Fractional Couldn't match type 'b' with Int Task: Transform a list of numbers using map so every even number gets divided by 2 and every odd number gets multiplied by 2 I know this is some basic stuff, b...
[ -0.024169921875, 0.01116943359375, 0.017822265625, -0.013916015625, -0.00019931793212890625, 0.019287109375, -0.024169921875, -0.0004482269287109375, 0.0113525390625, 0.016845703125, 0.0098876953125, -0.0179443359375, 0.0279541015625, -0.0078125, 0.00994873046875, 0.0002117156982421875...
[ 191147, 19, 3768, 18, 14858, 10644, 275, 678, 360, 1556, 142508, 479, 141, 304, 7868, 10763, 289, 9598, 92, 11062, 5037, 5303, 101935, 17368, 22288, 11907, 3853, 14012, 101637, 390, 116, 70270, 118126, 297, 62822, 41884, 26366, 15400, 18499...
[ 0.10400390625, 0.03094482421875, 0.16455078125, 0.169677734375, 0.205078125, 0.2152099609375, 0.16552734375, 0.125732421875, 0.1590576171875, 0.1263427734375, 0.219970703125, 0.07305908203125, 0.0157012939453125, 0.1131591796875, 0.134765625, 0.038116455078125, 0.0204620361328125, ...
embed
8308015_c0
8308015
haskell
0
Title: Can you overload + in haskell? Problem title: Can you overload + in haskell? Tags: haskell Problem: Can you overload + in haskell? While I've seen all kinds of weird things in Haskell sample code - I've never seen an operator plus being overloaded. Is there something special about it? Let's say I have a type lik...
Can you overload + in haskell? Can you overload + in haskell? haskell Can Pair Can you overload + in haskell? While I've seen all kinds of weird things in Haskell sample code - I've never seen an operator plus being overloaded. Is there something special about it? Let's say I have a type like Pair , and I want to have ...
[ -0.01092529296875, 0.013916015625, 0.009033203125, 0.016845703125, -0.000690460205078125, 0.01483154296875, -0.0311279296875, -0.00537109375, 0.004058837890625, -0.025146484375, -0.008056640625, -0.042236328125, 0.0159912109375, -0.00897216796875, -0.00823974609375, -0.0184326171875, ...
[ 4171, 398, 645, 63033, 997, 23, 1556, 142508, 1342, 481, 51592, 8562, 179459, 8966, 20625, 121413, 18151, 8306, 39933, 1001, 8035, 297, 5361, 10644, 1884, 3444, 765, 1632, 54, 442, 193844, 7722, 152653, 11, 27650 ]
[ 0.102783203125, 0.041046142578125, 0.1585693359375, 0.257080078125, 0.2359619140625, 0.1009521484375, 0.156005859375, 0.251220703125, 0.1778564453125, 0.1756591796875, 0.052276611328125, 0.035888671875, 0.0985107421875, 0.0340576171875, 0.11767578125, 0.1181640625, 0.126220703125, ...
embed
10338131_c1
10338131
haskell
1
String | Element String [Attrib a] | forall b. Binding (Lenses a b) (Html b) To which the Binding element can be pattern matched against directly. But that seems almost defeating the point, because the model is then joined at the hip to the view. I wonder has anyone (smarter than I) out there put thought into how this...
String | Element String [Attrib a] | forall b. Binding (Lenses a b) (Html b) To which the Binding element can be pattern matched against directly. But that seems almost defeating the point, because the model is then joined at the hip to the view. I wonder has anyone (smarter than I) out there put thought into how this...
[ -0.0205078125, 0.005340576171875, -0.02978515625, -0.016357421875, 0.006744384765625, 0.021240234375, -0.013427734375, -0.01513671875, 0.0380859375, -0.0419921875, -0.000797271728515625, -0.0220947265625, -0.001617431640625, -0.00372314453125, 0.0145263671875, 0.004791259765625, -0.0...
[ 23351, 214, 48325, 28848, 18, 11049, 10, 100, 5584, 876, 1843, 33770, 866, 47754, 7237, 717, 3129, 12830, 831, 186, 103510, 14858, 26548, 105237, 4966, 37202, 39555, 8, 88981, 70, 6275, 3299, 7068, 33284, 297, 99, 26177, 47, 21455, 32195,...
[ 0.1953125, 0.08599853515625, 0.21533203125, 0.022796630859375, 0.09661865234375, 0.222412109375, 0.05072021484375, 0.08612060546875, 0.1866455078125, 0.041290283203125, 0.15478515625, 0.217041015625, 0.13916015625, 0.17041015625, 0.198486328125, 0.047332763671875, 0.00738525390625, ...
embed
4053638_c0
4053638
haskell
0
Title: parse error in else Problem title: parse error in else Tags: haskell, syntax Problem: parse error in else maxZyklus :: UntereGrenze -> ObereGrenze -> (UntereGrenze,ObereGrenze,MaxZyklaenge) maxZyklus m n = if m > n then (m,n,0) else if m == n then (m,n,length(func m) else (m,n,length(func m) type UntereGrenze = ...
parse error in else parse error in else haskell syntax UntereGrenze ObereGrenze MaxZyklaenge Integer parse error in else i get a parse error on input else that second one Where could the problem be ?
[ -0.004302978515625, 0.0103759765625, -0.01123046875, 0.030029296875, 0.01171875, 0.015380859375, -0.01409912109375, -0.01263427734375, 0.002471923828125, 0.00848388671875, 0.006744384765625, -0.03076171875, 0.017333984375, -0.0052490234375, 0.00762939453125, 0.0186767578125, -0.02758...
[ 366, 184, 18499, 23, 37076, 1556, 142508, 6002, 86531, 21912, 91127, 25609, 32629, 9920, 53, 4704, 35065, 44401, 17, 2046, 10, 98, 107730, 450, 17932, 1632, 78662, 5809, 2967 ]
[ 0.1427001953125, 0.1385498046875, 0.184326171875, 0.06683349609375, 0.2374267578125, 0.10614013671875, 0.181884765625, 0.043670654296875, 0.057342529296875, 0.1053466796875, 0.11077880859375, 0.058441162109375, 0.08013916015625, 0.0826416015625, 0.0087127685546875, 0.055084228515625, ...
embed
5189978_c1
5189978
haskell
1
OPTIONS\r\n" write h "Call-ID: abcdefgh\r\n" write h "Content-Length: 0\r\n" write h "\r\n" listen h write :: Handle -> String -> IO () write h s = do hPrintf h "%s" s printf "> %s" s listen :: Handle -> IO () listen h = forever $ do t <- hGetLine h let s = init t putStrLn s where forever a = do a; forever a Code sign...
OPTIONS\r\n" write h "Call-ID: abcdefgh\r\n" write h "Content-Length: 0\r\n" write h "\r\n" listen h write :: Handle -> String -> IO () write h s = do hPrintf h "%s" s printf "> %s" s listen :: Handle -> IO () listen h = forever $ do t <- hGetLine h let s = init t putStrLn s where forever a = do a; forever a Code sign...
[ -0.003021240234375, 0.04248046875, -0.0189208984375, 0.035888671875, -0.0068359375, -0.01019287109375, -0.01123046875, -0.00714111328125, -0.0042724609375, -0.000728607177734375, 0.01165771484375, -0.0167236328125, 0.000339508056640625, 0.0186767578125, -0.00592041015625, -0.0065917968...
[ 28023, 165117, 41872, 33022, 1096, 441, 5584, 7146, 12, 1563, 71574, 4240, 9486, 58, 11935, 25352, 5267, 449, 927, 757, 44632, 1984, 10639, 133, 33079, 23351, 214, 17780, 91, 54, 112079, 18, 420, 3949, 28412, 136993, 3650, 808, 126, 93232...
[ 0.28857421875, 0.247314453125, 0.042510986328125, 0.197998046875, 0.1546630859375, 0.102783203125, 0.1845703125, 0.17919921875, 0.0174560546875, 0.08013916015625, 0.029937744140625, 0.0948486328125, 0.1405029296875, 0.005218505859375, 0.063232421875, 0.2000732421875, 0.01441955566406...
embed
6479127_c0
6479127
haskell
0
Title: Evaluating undefined elements in Haskell data types Problem title: Evaluating undefined elements in Haskell data types Tags: lazy-evaluation, hugs, haskell Problem: Evaluating undefined elements in Haskell data types if I try > fst(a, b) where a , b are undefined, I get the error that b is undefined. Even on try...
Evaluating undefined elements in Haskell data types Evaluating undefined elements in Haskell data types lazy-evaluation hugs haskell Evaluating Haskell Evaluating undefined elements in Haskell data types if I try > fst(a, b) where a , b are undefined, I get the error that b is undefined. Even on trying snd(a, b) it is ...
[ 0.005523681640625, 0.01373291015625, 0.00604248046875, 0.01165771484375, 0.003662109375, 0.017578125, 0.00762939453125, -0.0081787109375, 0.000774383544921875, -0.014892578125, 0.002838134765625, -0.01116943359375, 0.0198974609375, 0.00689697265625, -0.00506591796875, 0.00653076171875,...
[ 151228, 9232, 5983, 80854, 20625, 142508, 2053, 52895, 21, 3285, 159258, 35875, 7, 1556, 9790, 977, 1238, 271, 11, 876, 18499, 83, 31577, 2208, 113660, 5117, 76615, 222530, 56037, 708, 7432, 28219 ]
[ 0.1741943359375, 0.1612548828125, 0.20556640625, 0.154296875, 0.1441650390625, 0.2227783203125, 0.064208984375, 0.1890869140625, 0.09759521484375, 0.176025390625, 0.1776123046875, 0.149169921875, 0.0288543701171875, 0.12841796875, 0.1270751953125, 0.02294921875, 0.03558349609375, 0...
embed
34575816_c0
34575816
haskell
0
Title: haskell prelude : definition of seq Problem title: haskell prelude : definition of seq Tags: haskell Problem: haskell prelude : definition of seq In the definition of the haskell prelude we see that ... is reserved for expressions that cannot be implemented in Haskell. Now the IO monad for example can't be imple...
haskell prelude : definition of seq haskell prelude : definition of seq haskell Primitive haskell prelude : definition of seq In the definition of the haskell prelude we see that ... is reserved for expressions that cannot be implemented in Haskell. Now the IO monad for example can't be implemented in haskell. What sur...
[ 0.01104736328125, 0.00909423828125, 0.01348876953125, 0.029541015625, 0.0291748046875, 0.0218505859375, -0.006927490234375, -0.000217437744140625, -0.00396728515625, -0.0172119140625, 0.0004749298095703125, -0.01434326171875, -0.01171875, 0.0101318359375, -0.000904083251953125, 0.00653...
[ 1556, 142508, 479, 822, 112, 80934, 111, 40, 864, 44506, 14, 4935, 153, 83, 70488, 125195, 450, 53418, 29479, 20625, 17780, 2667, 712, 27781, 831, 18, 23, 144285, 61924, 71, 28960, 25632, 132283 ]
[ 0.1468505859375, 0.2142333984375, 0.1104736328125, 0.18798828125, 0.124755859375, 0.1812744140625, 0.045013427734375, 0.1722412109375, 0.25634765625, 0.07147216796875, 0.002685546875, 0.0367431640625, 0.0247344970703125, 0.0160369873046875, 0.154541015625, 0.1910400390625, 0.00888061...
embed
51120910_c0
51120910
haskell
0
Title: Haskell: Purpose of the flip function? Problem title: Haskell: Purpose of the flip function? Tags: arguments, flip, haskell Problem: Haskell: Purpose of the flip function? I am a bit surprised that this was not asked before. Maybe it is a stupid question. I know that flip is changing the order of two arguments. ...
Haskell: Purpose of the flip function? Haskell: Purpose of the flip function? arguments flip haskell Haskell Purpose Haskell: Purpose of the flip function? I am a bit surprised that this was not asked before. Maybe it is a stupid question. I know that flip is changing the order of two arguments. Example: But why would ...
[ 0.01361083984375, 0.021240234375, 0.00909423828125, 0.013671875, -0.00592041015625, 0.0274658203125, -0.001434326171875, -0.00634765625, -0.0111083984375, 0.020751953125, -0.00341796875, -0.007080078125, -0.0184326171875, 0.0146484375, 0.007476806640625, -0.016845703125, 0.0229492187...
[ 20625, 142508, 16915, 78381, 111, 70, 147505, 32354, 10750, 1556, 12, 144285, 37170, 110833, 3714, 83, 151134, 12989, 6626, 89536, 15400, 2806, 3871, 6044, 10, 15549, 107730, 23009, 33022 ]
[ 0.12744140625, 0.26611328125, 0.1842041015625, 0.1983642578125, 0.111328125, 0.05841064453125, 0.2646484375, 0.220947265625, 0.21826171875, 0.1177978515625, 0.010955810546875, 0.016082763671875, 0.03924560546875, 0.06817626953125, 0.05169677734375, 0.06329345703125, 0.1533203125, 0...
embed
53816503_c1
53816503
haskell
1
:s, "Haskell Rocks", MB_OK )} |] main = showMsg "Hello Haskell" Code signals: Data.String, qualified, System.Win32.Types, Haskell, Win32, LPCTSTR, IsString, Typeclass, LPTSTR, Ptr, TCHAR, CWchar, wchar_t, Constructors, Int32, LANGUAGE, OverloadedStrings, QuasiQuotes, TemplateHaskell, StandaloneDeriving, TypeSynonymInst...
:s, "Haskell Rocks", MB_OK )} |] main = showMsg "Hello Haskell" Code signals: Data.String, qualified, System.Win32.Types, Haskell, Win32, LPCTSTR, IsString, Typeclass, LPTSTR, Ptr, TCHAR, CWchar, wchar_t, Constructors, Int32, LANGUAGE, OverloadedStrings, QuasiQuotes, TemplateHaskell, StandaloneDeriving, TypeSynonymInst...
[ 0.0262451171875, 0.018310546875, 0.00083160400390625, 0.0277099609375, 0.006103515625, 0.01116943359375, 0.0191650390625, 0.00628662109375, 0.0089111328125, -0.0263671875, -0.0028839111328125, -0.03271484375, 0.0086669921875, 0.00537109375, 0.00098419189453125, 0.0081787109375, -0.00...
[ 6495, 7, 142508, 14434, 12918, 9092, 5201, 2203, 7639, 594, 177, 841, 13817, 20625, 28864, 26073, 12, 11809, 5, 71713, 214, 217225, 12353, 92049, 6460, 196707, 17686, 82080, 43379, 94539, 2071, 60457, 67413, 22693, 4448, 61869, 129781, 9254, ...
[ 0.161376953125, 0.1510009765625, 0.326171875, 0.252197265625, 0.10284423828125, 0.158935546875, 0.143310546875, 0.054779052734375, 0.1309814453125, 0.035125732421875, 0.119873046875, 0.125, 0.1944580078125, 0.218505859375, 0.26220703125, 0.284423828125, 0.04693603515625, 0.13208007...
embed
20675038_c0
20675038
haskell
0
Title: In the Yesod ecosystem, what is the best way to urlencode some Text? Problem title: In the Yesod ecosystem, what is the best way to urlencode some Text? Tags: yesod, urlencode, haskell Problem: In the Yesod ecosystem, what is the best way to urlencode some Text? I'd like to url-encode some Text (e.g., replace ea...
In the Yesod ecosystem, what is the best way to urlencode some Text? In the Yesod ecosystem, what is the best way to urlencode some Text? yesod urlencode haskell Yesod Text In the Yesod ecosystem, what is the best way to urlencode some Text? I'd like to url-encode some Text (e.g., replace each space with a %20, etc.). ...
[ 0.01470947265625, -0.00384521484375, 0.01904296875, 0.00482177734375, -0.00141143798828125, 0.004547119140625, 0.00909423828125, 0.00286865234375, -0.02685546875, -0.01373291015625, -0.0062255859375, -0.02392578125, 0.004302978515625, -0.0034027099609375, -0.004608154296875, -0.0000093...
[ 360, 32635, 2199, 49347, 16751, 2367, 2965, 3917, 47, 2780, 1977, 40899, 24129, 83, 3060, 2422, 23722, 1556, 142508, 70, 1884, 25002, 9, 33, 91995, 12638, 32628, 678, 10, 117654, 14037, 18544, 23658, 28997, 5, 63473, 7768, 5809, 4527, 450...
[ 0.033203125, 0.1802978515625, 0.2437744140625, 0.1158447265625, 0.1689453125, 0.0323486328125, 0.1546630859375, 0.10302734375, 0.08599853515625, 0.147705078125, 0.217529296875, 0.25927734375, 0.2498779296875, 0.00872802734375, 0.0299530029296875, 0.1451416015625, 0.2059326171875, 0...
embed
8450448_c1
8450448
haskell
1
(reducer (-<)) reducel (>-) zero Empty = zero reducel (>-) zero (Single x) = zero >- x reducel (>-) zero (Deep left mid right) = ((zero >-' left) >-'' mid) >-' right where (>-') = reducel (>-) (>-'') = reducel (reducel (>-)) listing 3: data types data Node s = Node2 s s | Node3 s s s data FingerTree a = Empty | Single...
(reducer (-<)) reducel (>-) zero Empty = zero reducel (>-) zero (Single x) = zero >- x reducel (>-) zero (Deep left mid right) = ((zero >-' left) >-'' mid) >-' right where (>-') = reducel (>-) (>-'') = reducel (reducel (>-)) listing 3: data types data Node s = Node2 s s | Node3 s s s data FingerTree a = Empty | Single...
[ -0.00274658203125, -0.015869140625, -0.00994873046875, 0.002197265625, -0.009033203125, -0.017822265625, -0.0311279296875, -0.017822265625, -0.007537841796875, 0.015380859375, -0.00179290771484375, -0.0302734375, 0.0037384033203125, -0.00179290771484375, -0.002838134765625, -0.02551269...
[ 15, 107, 39367, 56, 9, 16093, 34390, 141, 2740, 45234, 31678, 939, 2203, 213039, 1022, 4657, 4517, 25737, 4122, 7108, 80510, 693, 8969, 5303, 214, 22408, 2053, 52895, 438, 112, 91, 304, 363, 96019, 62731, 10, 43609, 62723, 15769, 21228, ...
[ 0.00872802734375, 0.1673583984375, 0.2445068359375, 0.1748046875, 0.056671142578125, 0.0919189453125, 0.256103515625, 0.161865234375, 0.042266845703125, 0.162353515625, 0.1558837890625, 0.1678466796875, 0.07293701171875, 0.12939453125, 0.1064453125, 0.104736328125, 0.1409912109375, ...
embed
35059031_c0
35059031
haskell
0
Title: How to get/set session data in Yesod handler tests? Problem title: How to get/set session data in Yesod handler tests? Tags: haskell, yesod Problem: How to get/set session data in Yesod handler tests? Is it possible to get session data from within a Yesod Handler test? For example I'd like to get the current use...
How to get/set session data in Yesod handler tests? How to get/set session data in Yesod handler tests? haskell yesod How Yesod How to get/set session data in Yesod handler tests? Is it possible to get session data from within a Yesod Handler test? For example I'd like to get the current userId. Later on, I'd also like...
[ 0.00909423828125, 0.03369140625, 0.00099945068359375, -0.0242919921875, -0.006866455078125, 0.00665283203125, -0.006439208984375, -0.0103759765625, -0.007171630859375, -0.01806640625, -0.006195068359375, 0.01031494140625, -0.0218505859375, -0.011962890625, -0.0038299560546875, 0.009521...
[ 11249, 47, 2046, 64, 3509, 56002, 2053, 23, 32635, 2199, 35863, 109921, 1556, 142508, 2422, 23722, 442, 7722, 1295, 28032, 10639, 603, 3034, 1884, 43581, 38937, 568, 71, 6626, 134477, 31842, 104227, 78974, 4027, 15504, 75616, 146318, 7, 306...
[ 0.091064453125, 0.0313720703125, 0.117919921875, 0.030609130859375, 0.1632080078125, 0.1990966796875, 0.1605224609375, 0.0291900634765625, 0.1591796875, 0.2354736328125, 0.1907958984375, 0.183349609375, 0.08203125, 0.178955078125, 0.113037109375, 0.189208984375, 0.000152587890625, ...
embed
23220389_c0
23220389
haskell
0
Title: Haskell loop until a key is pressed Problem title: Haskell loop until a key is pressed Tags: haskell Problem: Haskell loop until a key is pressed I would like to run a program every n second and refresh the screen(certain lines) until i press the q key. How to achieve this? I have checked the ansi-terminal packa...
Haskell loop until a key is pressed Haskell loop until a key is pressed haskell Haskell Haskell loop until a key is pressed I would like to run a program every n second and refresh the screen(certain lines) until i press the q key. How to achieve this? I have checked the ansi-terminal package for refreshing certain par...
[ 0.00225830078125, -0.00069427490234375, -0.0002593994140625, -0.008544921875, -0.00063323974609375, -0.012451171875, 0.027099609375, 0.0006866455078125, -0.0014190673828125, -0.031982421875, 0.016845703125, -0.02685546875, 0.006988525390625, 0.0026092529296875, -0.01226806640625, 0.000...
[ 20625, 142508, 40956, 24189, 10, 22799, 83, 30501, 71, 1556, 2806, 1884, 11675, 1528, 11907, 653, 17932, 210651, 49119, 106290, 124519, 17, 24234, 70, 8096, 11249, 69307, 12765, 142, 172, 30524, 289, 98169, 214, 24233, 2831, 57767, 4527, 25...
[ 0.135986328125, 0.2340087890625, 0.2220458984375, 0.1737060546875, 0.037506103515625, 0.217529296875, 0.05267333984375, 0.188232421875, 0.07525634765625, 0.1207275390625, 0.0281219482421875, 0.0955810546875, 0.1488037109375, 0.15087890625, 0.125244140625, 0.076416015625, 0.1979980468...
embed
42364529_c0
42364529
haskell
0
Title: Why the type is Char -&gt; Char -&gt; Char Problem title: Why the type is Char -&gt; Char -&gt; Char Tags: haskell Problem: Why the type is Char -> Char -> Char I have following type signature: *Main Lib> let f :: a -> a -> a -> a; f = undefined *Main Lib> let x :: Char; x = undefined so to find out, which resul...
Why the type is Char -&gt; Char -&gt; Char Why the type is Char -&gt; Char -&gt; Char haskell Why Char Main Lib Why the type is Char -> Char -> Char I have following type signature: so to find out, which result type would I get, I did: Why not Because of the first parameter is already with x substituted?
[ 0.010986328125, -0.01318359375, 0.0140380859375, 0.0235595703125, -0.00177764892578125, 0.0029144287109375, 0.0015869140625, 0.00010633468627929688, 0.0064697265625, 0.01953125, -0.007110595703125, -0.039306640625, -0.0030517578125, 0.0216064453125, -0.0189208984375, -0.016357421875, ...
[ 44084, 10644, 83, 21656, 1230, 5386, 70, 1556, 142508, 12321, 43278, 33079, 25632, 138256, 7413, 1810, 3129, 16750, 2806, 2046, 959, 88949, 111, 5117, 171859, 21771, 678, 1022, 161740, 297 ]
[ 0.15673828125, 0.2413330078125, 0.09515380859375, 0.220947265625, 0.001708984375, 0.129638671875, 0.0311126708984375, 0.10498046875, 0.1968994140625, 0.1265869140625, 0.143310546875, 0.035736083984375, 0.04132080078125, 0.1744384765625, 0.04229736328125, 0.03216552734375, 0.004852294...
embed
13134825_c0
13134825
haskell
0
Title: How do functors work in haskell? Problem title: How do functors work in haskell? Tags: functional-programming, functor, haskell Problem: How do functors work in haskell? I'm trying to learn Haskell and I'm through all the basics. But now I'm stuck, trying to get my head around functors. I've read that "A functor...
How do functors work in haskell? How do functors work in haskell? functional-programming functor haskell How How do functors work in haskell? I'm trying to learn Haskell and I'm through all the basics. But now I'm stuck, trying to get my head around functors. I've read that "A functor transforms one category into anoth...
[ 0.01141357421875, 0.007049560546875, 0.011962890625, -0.00112152099609375, 0.010498046875, 0.01361083984375, -0.0191650390625, -0.0164794921875, -0.0034332275390625, -0.03369140625, -0.002777099609375, -0.042724609375, -0.0203857421875, 0.01239013671875, -0.031005859375, -0.01165771484...
[ 11249, 54, 7477, 18770, 7, 4488, 23, 1556, 142508, 123309, 28966, 31577, 30698, 20625, 62822, 179933, 10336, 10932, 12301, 284, 27198, 1632, 95487, 3934, 15700, 4865, 14602, 903, 29459, 5915, 111719, 175457, 187136, 111, 4527, 7225 ]
[ 0.1048583984375, 0.060302734375, 0.2125244140625, 0.25390625, 0.123779296875, 0.153564453125, 0.0924072265625, 0.1431884765625, 0.22216796875, 0.12841796875, 0.0545654296875, 0.00360107421875, 0.0293731689453125, 0.095458984375, 0.024993896484375, 0.07891845703125, 0.012481689453125,...
embed
46106404_c0
46106404
haskell
0
Title: Type Signature error Haskell Problem title: Type Signature error Haskell Tags: haskell Problem: Type Signature error Haskell This is probably a dumb question but I would like to understand type signatures better and why I am getting the following error when I run my code. Code is below. area :: Double d => d -> ...
Type Signature error Haskell Type Signature error Haskell haskell Type Signature Haskell Double Type Signature error Haskell This is probably a dumb question but I would like to understand type signatures better and why I am getting the following error when I run my code. Code is below. The error I am getting is below.
[ 0.0245361328125, 0.006256103515625, -0.0027618408203125, 0.00714111328125, 0.003997802734375, 0.0152587890625, -0.0302734375, 0.0113525390625, 0.000728607177734375, 0.0009918212890625, -0.0130615234375, -0.0284423828125, -0.0135498046875, -0.0186767578125, 0.00091552734375, 0.007354736...
[ 60457, 26729, 141762, 18499, 20625, 142508, 1556, 107172, 31895, 6492, 9655, 1884, 28219, 10644, 138256, 7, 11522, 15400, 20949, 25632, 11675, 18151, 28864, 83, 35064, 444 ]
[ 0.259521484375, 0.15966796875, 0.154052734375, 0.192138671875, 0.1329345703125, 0.198486328125, 0.11273193359375, 0.1663818359375, 0.0347900390625, 0.061187744140625, 0.006328582763671875, 0.00856781005859375, 0.039886474609375, 0.209228515625, 0.19677734375, 0.00039315223693847656, ...
embed
49110197_c0
49110197
haskell
0
Title: Haskell take 3 form a and b, return True if match, False if no match, haskell Problem title: Haskell take 3 form a and b, return True if match, False if no match, haskell Tags: haskell Problem: Haskell take 3 form a and b, return True if match, False if no match, haskell Here is where I've got up to, I can't fig...
Haskell take 3 form a and b, return True if match, False if no match, haskell Haskell take 3 form a and b, return True if match, False if no match, haskell haskell Haskell Bool Haskell take 3 form a and b, return True if match, False if no match, haskell Here is where I've got up to, I can't figure out how to use take ...
[ 0.0152587890625, -0.00628662109375, -0.0006561279296875, 0.0283203125, -0.01080322265625, 0.010986328125, 0.0054931640625, -0.0003509521484375, 0.0048828125, 0.029052734375, 0.0286865234375, -0.005706787109375, 0.0078125, 0.01123046875, -0.01324462890625, -0.012451171875, 0.020629882...
[ 20625, 142508, 5646, 138, 3173, 10, 136, 876, 30646, 87599, 2174, 14858, 22225, 110, 1556, 184, 2460, 929, 1257, 26366, 3642, 4527, 5117, 124850, 8108, 37397 ]
[ 0.114501953125, 0.1885986328125, 0.20751953125, 0.272216796875, 0.131103515625, 0.042388916015625, 0.08447265625, 0.1158447265625, 0.1173095703125, 0.1229248046875, 0.04498291015625, 0.1732177734375, 0.0882568359375, 0.10650634765625, 0.1265869140625, 0.0277252197265625, 0.0489807128...
embed
78350049_c0
78350049
haskell
0
Title: Conflicting definitions in pattern synonyms using a parameter more than once Problem title: Conflicting definitions in pattern synonyms using a parameter more than once Tags: pattern-synonyms, haskell Problem: Conflicting definitions in pattern synonyms using a parameter more than once Why can't I define this pa...
Conflicting definitions in pattern synonyms using a parameter more than once Conflicting definitions in pattern synonyms using a parameter more than once pattern-synonyms haskell a Conflicting Double Bound Conflicting definitions in pattern synonyms using a parameter more than once Why can't I define this pattern synon...
[ -0.01043701171875, -0.0012664794921875, -0.01348876953125, 0.0286865234375, -0.0035552978515625, -0.0035858154296875, -0.01092529296875, -0.01251220703125, 0.00811767578125, -0.0166015625, 0.00139617919921875, -0.01611328125, 0.0086669921875, 0.01275634765625, 0.01708984375, 0.01831054...
[ 1657, 134225, 214, 80934, 7, 103510, 164661, 17368, 171859, 1286, 3501, 24145, 12654, 45757, 1556, 142508, 107172, 2460, 7030, 831, 18, 61924, 903 ]
[ 0.101318359375, 0.2384033203125, 0.10809326171875, 0.201416015625, 0.03515625, 0.23486328125, 0.21533203125, 0.05804443359375, 0.18408203125, 0.1092529296875, 0.0985107421875, 0.1656494140625, 0.089111328125, 0.1815185546875, 0.11566162109375, 0.2313232421875, 0.129150390625, 0.074...
embed
29604461_c0
29604461
haskell
0
Title: Creating generators from user defined data types in haskell Problem title: Creating generators from user defined data types in haskell Tags: haskell, generator, functional-programming, quickcheck Problem: Creating generators from user defined data types in haskell I need some suggestions on how I can go about cr...
Creating generators from user defined data types in haskell Creating generators from user defined data types in haskell haskell generator functional-programming quickcheck user Creating Boo Float Foo Creating generators from user defined data types in haskell I need some suggestions on how I can go about creating a ran...
[ 0.0137939453125, -0.018310546875, 0.001861572265625, -0.033447265625, -0.0022125244140625, 0.01141357421875, 0.01531982421875, -0.038330078125, 0.009765625, -0.0263671875, -0.023193359375, -0.01434326171875, 0.0015411376953125, 0.0128173828125, -0.0137939453125, -0.01708984375, -0.01...
[ 56781, 1916, 145823, 7, 1295, 38937, 61924, 2053, 52895, 1556, 142508, 123309, 28966, 63773, 78292, 73783, 38699, 257, 9572, 31, 3871, 157666, 1672, 105233, 96759, 100, 10644, 6044, 5303, 83, 8306, 201505 ]
[ 0.120849609375, 0.009429931640625, 0.263916015625, 0.050567626953125, 0.0677490234375, 0.128662109375, 0.1336669921875, 0.129150390625, 0.1805419921875, 0.14599609375, 0.220947265625, 0.1009521484375, 0.062744140625, 0.08349609375, 0.17626953125, 0.2186279296875, 0.16455078125, 0.0...
embed
62526476_c0
62526476
haskell
0
Title: How do I get all classes a type belongs to in Haskell? Problem title: How do I get all classes a type belongs to in Haskell? Tags: haskell Problem: How do I get all classes a type belongs to in Haskell? In my beginner's book to Haskell I'm going through classes and can see that some types seem to belong to multi...
How do I get all classes a type belongs to in Haskell? How do I get all classes a type belongs to in Haskell? haskell How Haskell How do I get all classes a type belongs to in Haskell? In my beginner's book to Haskell I'm going through classes and can see that some types seem to belong to multiple classes. For instance...
[ 0.006622314453125, 0.005157470703125, 0.005706787109375, 0.0086669921875, -0.00063323974609375, 0.00173187255859375, -0.0001163482666015625, -0.00457763671875, 0.00101470947265625, -0.021728515625, -0.00191497802734375, -0.036865234375, 0.005340576171875, 0.010498046875, -0.0189208984375...
[ 11249, 2046, 756, 61112, 10644, 186, 10617, 7, 47, 20625, 142508, 54, 10, 23, 1556, 87, 9842, 1679, 12877, 8305, 1957, 52895, 48903, 48716, 2460, 929, 32786, 864, 136, 17367, 18, 22225, 184, 831, 21455 ]
[ 0.06939697265625, 0.1109619140625, 0.1488037109375, 0.264404296875, 0.2474365234375, 0.07147216796875, 0.1717529296875, 0.074951171875, 0.1298828125, 0.142578125, 0.2451171875, 0.0047607421875, 0.03582763671875, 0.050079345703125, 0.1170654296875, 0.01171875, 0.003936767578125, 0.0...
embed
16464787_c1
16464787
haskell
1
Lib1-0.1 (user goal) next goal: Lib2 (dependency of Lib1-0.1) rejecting: Lib2-0.1/installed-aa4... (package is broken) Is there any way to handle two such libraries that depend on each other so that I don't get dependency errors or is cabal simply not able to handle such a case properly? Code signals: Lib1, Simple, Ma...
Lib1-0.1 (user goal) next goal: Lib2 (dependency of Lib1-0.1) rejecting: Lib2-0.1/installed-aa4... (package is broken) Is there any way to handle two such libraries that depend on each other so that I don't get dependency errors or is cabal simply not able to handle such a case properly? Code signals: Lib1, Simple, Ma...
[ -0.000858306884765625, 0.00518798828125, -0.00787353515625, 0.01544189453125, -0.0118408203125, -0.006622314453125, -0.01519775390625, -0.00311279296875, 0.011962890625, 0.027099609375, 0.01373291015625, -0.00341796875, 0.004180908203125, 0.00616455078125, 0.0050048828125, -0.009826660...
[ 43278, 20268, 102014, 65918, 69236, 11737, 304, 105254, 33, 180033, 5, 17727, 456, 75161, 203808, 50412, 80383, 297, 11, 617, 29102, 4588, 148431, 3917, 34831, 6626, 6044, 35773, 10484, 56566, 98, 12638, 3789, 42548, 27771, 18499, 109524, 190...
[ 0.2294921875, 0.089599609375, 0.2315673828125, 0.1575927734375, 0.255615234375, 0.05401611328125, 0.1629638671875, 0.157470703125, 0.09515380859375, 0.1312255859375, 0.006927490234375, 0.0762939453125, 0.06256103515625, 0.1585693359375, 0.11767578125, 0.053619384765625, 0.115234375, ...
embed
25503143_c0
25503143
haskell
0
Title: How to implement ++ in Haskell? Problem title: How to implement ++ in Haskell? Tags: haskell Problem: How to implement ++ in Haskell? Hi I'm new in Haskell programming. I'm trying to implement operator "++" by myself. Here's a small program I wrote but it won't work: append (es:e) xs = if (null es) then e:xs els...
How to implement ++ in Haskell? How to implement ++ in Haskell? haskell How Haskell es:e e:xs How to implement ++ in Haskell? Hi I'm new in Haskell programming. I'm trying to implement operator "++" by myself. Here's a small program I wrote but it won't work: I received lots of type error with [a],[[a]] and [[[a]]]. St...
[ 0.00604248046875, 0.0001277923583984375, 0.034423828125, 0.01123046875, 0.00579833984375, 0.018310546875, -0.01708984375, 0.00982666015625, 0.01708984375, -0.01495361328125, 0.026611328125, -0.03271484375, 0.0177001953125, 0.010986328125, 0.0003147125244140625, -0.014404296875, 0.000...
[ 11249, 47, 29479, 37223, 23, 20625, 142508, 32, 1556, 198, 12, 13, 28, 425, 7, 6, 2673, 3525, 56037, 449, 31577, 39933, 390, 35978, 11853, 19336, 1528, 54397, 1284, 23742, 18, 4488, 75204, 71358, 10644, 18499, 678, 1065, 110558, 11, 506...
[ 0.104736328125, 0.056365966796875, 0.249755859375, 0.314697265625, 0.0966796875, 0.1768798828125, 0.2496337890625, 0.025482177734375, 0.142333984375, 0.13623046875, 0.0687255859375, 0.114990234375, 0.1182861328125, 0.0906982421875, 0.00762939453125, 0.003814697265625, 0.025634765625,...
embed
50984485_c0
50984485
haskell
0
Title: Length with foldl and foldr Problem title: Length with foldl and foldr Tags: fold, haskell Problem: Length with foldl and foldr I have two functions computing the length of a list of integers lengthFoldl :: [Int] -> Int lengthFoldl xs = (foldl (\_ y -> y+1) 0 xs) and lengthFold :: [a] -> Int lengthFold xs = fold...
Length with foldl and foldr Length with foldl and foldr fold haskell Length Length with foldl and foldr I have two functions computing the length of a list of integers and they are the same except one uses foldr and one foldl. But when trying to compute the length of any list [1 .. n] I get a wrong result (one too big)...
[ -0.00958251953125, 0.0184326171875, 0.0032196044921875, -0.00555419921875, -0.0084228515625, -0.0015411376953125, -0.000026106834411621094, 0.014404296875, 0.01043701171875, -0.03759765625, -0.005279541015625, -0.0179443359375, 0.02880859375, 0.04638671875, 0.01904296875, -0.0231933593...
[ 77554, 927, 678, 18344, 20469, 136, 7569, 42822, 1556, 142508, 87, 765, 6626, 32354, 242122, 140909, 5303, 892, 26255, 5701, 40494, 4527, 1632, 4966, 31577, 9969, 6743, 2499, 68252, 1468, 653, 44691, 16750, 3630, 5792, 6957, 1295, 919, 1834...
[ 0.1768798828125, 0.09893798828125, 0.1494140625, 0.15185546875, 0.203369140625, 0.10693359375, 0.2181396484375, 0.1810302734375, 0.1129150390625, 0.2176513671875, 0.005645751953125, 0.001861572265625, 0.087890625, 0.156494140625, 0.1412353515625, 0.196533203125, 0.1494140625, 0.114...
embed
45319850_c0
45319850
haskell
0
Title: confused about composite function with map in haskell Problem title: confused about composite function with map in haskell Tags: haskell Problem: confused about composite function with map in haskell let f = map tail.lines f "fsdaf\nfdsf\n" why it work? let f = map tail.tail.lines f "fasdf\nfasdfdsfd\n" I get re...
confused about composite function with map in haskell confused about composite function with map in haskell haskell tail.lines tail.tail.lines tail.tail confused about composite function with map in haskell why it work? I get result: I get result: I want to know haskell how to parse the code above.
[ 0.01324462890625, -0.02294921875, 0.0079345703125, 0.034912109375, -0.00045013427734375, 0.0177001953125, 0.0169677734375, 0.006072998046875, 0.0107421875, -0.001678466796875, -0.0172119140625, 0.001800537109375, 0.0224609375, 0.0179443359375, 0.01348876953125, -0.0013427734375, 0.00...
[ 55681, 5281, 1672, 375, 77087, 32354, 678, 22288, 23, 1556, 142508, 13, 46741, 59801, 15400, 442, 4488, 2046, 16750, 3444, 3714, 3642, 47, 366, 184, 18151, 36917 ]
[ 0.1407470703125, 0.0958251953125, 0.02447509765625, 0.0972900390625, 0.2293701171875, 0.159912109375, 0.109619140625, 0.215087890625, 0.042449951171875, 0.1517333984375, 0.2259521484375, 0.028594970703125, 0.2091064453125, 0.15673828125, 0.09283447265625, 0.039703369140625, 0.1314697...
embed
6687810_c0
6687810
haskell
0
Title: Haskell typeclasses with algebraic data types Problem title: Haskell typeclasses with algebraic data types Tags: algebraic-data-types, haskell, typeclass Problem: Haskell typeclasses with algebraic data types I have some algebraic data types A, B, and C each implements the class: class Dog a where dog :: a -> Bo...
Haskell typeclasses with algebraic data types Haskell typeclasses with algebraic data types algebraic-data-types haskell typeclass Haskell Dog Bool Haskell typeclasses with algebraic data types I have some algebraic data types A, B, and C each implements the class: If I create a new algebraic data type: Is there an eas...
[ 0.00531005859375, 0.00921630859375, 0.00579833984375, 0.0294189453125, -0.01373291015625, 0.02880859375, -0.0133056640625, -0.00933837890625, -0.01708984375, -0.01904296875, -0.0220947265625, -0.022705078125, 0.0037994384765625, 0.012939453125, -0.01397705078125, 0.00518798828125, -0...
[ 20625, 142508, 10644, 67413, 678, 144, 429, 2844, 1771, 2053, 52895, 10135, 50986, 1556, 41129, 2460, 929, 765, 3060, 62, 335, 313, 12638, 29479, 18507, 28282, 3525, 23468, 3917, 391, 15490, 15265, 64552, 110527, 136, 13438 ]
[ 0.13525390625, 0.232177734375, 0.1815185546875, 0.194091796875, 0.060577392578125, 0.04669189453125, 0.10101318359375, 0.13232421875, 0.040924072265625, 0.1065673828125, 0.19873046875, 0.092041015625, 0.1949462890625, 0.12890625, 0.19873046875, 0.084716796875, 0.1524658203125, 0.02...
embed
11904280_c0
11904280
haskell
0
Title: Could not find module `Date.Time.Calendar&#x27; Problem title: Could not find module `Date.Time.Calendar&#x27; Tags: cabal, haskell Problem: Could not find module `Date.Time.Calendar' My ghci can't find the Calendar module even though the time package is installed. $ ghc-pkg list | grep time old-time-1.0.0.6 tim...
Could not find module `Date.Time.Calendar&#x27; Could not find module `Date.Time.Calendar&#x27; cabal haskell Could Date.Time.Calendar old-time-1.0.0.6 time-1.2.0.3 time-1.4.0.1 Could not find module `Date.Time.Calendar' My ghci can't find the Calendar module even though the time package is installed. I tried to remove...
[ 0.00136566162109375, 0.0091552734375, 0.010009765625, 0.0012359619140625, 0.00311279296875, -0.0091552734375, 0.0023040771484375, 0.01361083984375, 0.00225830078125, -0.032958984375, 0.003875732421875, -0.017333984375, 0.028564453125, -0.00628662109375, -0.01312255859375, 0.00970458984...
[ 191147, 959, 7413, 88996, 86291, 70059, 94553, 33, 1506, 3768, 109524, 1556, 142508, 25512, 10332, 6032, 102107, 122887, 1733, 48400, 170179, 91977, 102014, 31380, 318, 831, 18, 105115, 98169, 20600, 87388, 7155, 5915, 103608, 2967 ]
[ 0.10040283203125, 0.0950927734375, 0.1466064453125, 0.2296142578125, 0.144775390625, 0.2216796875, 0.1549072265625, 0.1998291015625, 0.2208251953125, 0.0362548828125, 0.2042236328125, 0.126708984375, 0.2154541015625, 0.109130859375, 0.10162353515625, 0.1773681640625, 0.05181884765625...
embed
37958031_c0
37958031
haskell
0
Title: Understanding &#x27;sprint&#x27; after evaluating a polymorphic expression Problem title: Understanding &#x27;sprint&#x27; after evaluating a polymorphic expression Tags: ghci, thunk, haskell, polymorphism Problem: Understanding 'sprint' after evaluating a polymorphic expression Given: λ: let x = 1 + 2 I run spr...
Understanding &#x27;sprint&#x27; after evaluating a polymorphic expression Understanding &#x27;sprint&#x27; after evaluating a polymorphic expression ghci thunk haskell polymorphism Understanding Understanding 'sprint' after evaluating a polymorphic expression Given: I run sprint to print its value: As expected, it's u...
[ -0.007659912109375, 0.01165771484375, 0.004730224609375, 0.0198974609375, -0.005340576171875, 0.00592041015625, 0.02587890625, -0.006988525390625, 0.029296875, 0.004852294921875, 0.0174560546875, -0.023193359375, -0.00506591796875, -0.006744384765625, 0.00054931640625, -0.0032043457031...
[ 9626, 144057, 3768, 35662, 7103, 151575, 214, 35874, 178851, 125195, 31380, 318, 3678, 1556, 142508, 7, 11675, 145320, 47, 28412, 34292, 84751, 159258, 3674, 4966, 1022, 7464, 140992, 101, 44084, 450 ]
[ 0.1014404296875, 0.11865234375, 0.03204345703125, 0.2303466796875, 0.121337890625, 0.160400390625, 0.039276123046875, 0.1558837890625, 0.1796875, 0.1976318359375, 0.03271484375, 0.044677734375, 0.1292724609375, 0.07037353515625, 0.18896484375, 0.053680419921875, 0.1343994140625, 0....
embed
38024458_c1
38024458
haskell
1
Nothing . So, for example, CombBox S $$ CombBox K ==> Just (CombBox (S :$ K)) CombBox W $$ CombBox I ==> Nothing The latter should fail because W expects a 2-ary function where I takes one argument. But I would like to relegate this check to the runtime, and I'm not sure if such a thing is possible in the Haskell (+ G...
Nothing . So, for example, CombBox S $$ CombBox K ==> Just (CombBox (S :$ K)) CombBox W $$ CombBox I ==> Nothing The latter should fail because W expects a 2-ary function where I takes one argument. But I would like to relegate this check to the runtime, and I'm not sure if such a thing is possible in the Haskell (+ G...
[ -0.0020904541015625, 0.013427734375, -0.002593994140625, 0.005523681640625, -0.0040283203125, 0.0159912109375, -0.0177001953125, -0.005767822265625, -0.002105712890625, 0.00836181640625, 0.0057373046875, -0.0177001953125, 0.0186767578125, 0.005828857421875, -0.006927490234375, -0.00634...
[ 182747, 3288, 275, 72295, 159, 341, 9563, 10770, 294, 601, 87, 35782, 41206, 4720, 6635, 32354, 51776, 1632, 10750, 47130, 12765, 11675, 6032, 7722, 20625, 142508, 22183, 527, 73265, 111938, 10644, 5426, 28864, 26073, 27131, 11048, 11809, 466...
[ 0.2041015625, 0.162841796875, 0.12353515625, 0.2266845703125, 0.06781005859375, 0.064208984375, 0.1221923828125, 0.117431640625, 0.0350341796875, 0.11865234375, 0.038787841796875, 0.1456298828125, 0.1107177734375, 0.099853515625, 0.1392822265625, 0.107666015625, 0.053955078125, 0.0...
embed
32800884_c0
32800884
haskell
0
Title: How can I insert a backtick in GHCi? Problem title: How can I insert a backtick in GHCi? Tags: ghci, winghci, haskell Problem: How can I insert a backtick in GHCi? I'm trying out Haskell in GHCi on Windows. In the tutorial I'm following, a function name is enclosed in backticks: x `mod` 7 . However, I can't ente...
How can I insert a backtick in GHCi? How can I insert a backtick in GHCi? ghci winghci haskell How GHCi How can I insert a backtick in GHCi? I'm trying out Haskell in GHCi on Windows. In the tutorial I'm following, a function name is enclosed in backticks: x `mod` 7 . However, I can't enter the character in GHCi. The b...
[ 0.002655029296875, 0.01019287109375, 0.0255126953125, 0.0015716552734375, -0.0002498626708984375, 0.009765625, -0.00183868408203125, -0.0235595703125, -0.0001544952392578125, -0.0196533203125, 0.01373291015625, -0.027587890625, 0.01055908203125, -0.006317138671875, -0.01318359375, 0.00...
[ 11249, 831, 183540, 10, 4420, 118, 2594, 23, 527, 73265, 14, 87, 31380, 318, 14775, 127, 1556, 142508, 31577, 1810, 20625, 3773, 57143, 25632, 32354, 9351, 155648, 22824, 1022, 13415, 361, 18, 30957, 62816, 125429, 10001, 34292, 3894, 910, ...
[ 0.0906982421875, 0.098388671875, 0.241943359375, 0.0653076171875, 0.1937255859375, 0.204345703125, 0.2119140625, 0.120849609375, 0.08465576171875, 0.139404296875, 0.2293701171875, 0.0267791748046875, 0.0771484375, 0.1458740234375, 0.06982421875, 0.06890869140625, 0.1041259765625, 0...
embed