Search Haskell Channel Logs

Saturday, February 11, 2017

#haskell channel featuring dramforever, tsahyt, mangobot, mniip, winny, piyush-kurur,

tsahyt 2017-02-10 22:46:43
is there even any way to have a behavior represent the current value rather than one frame back?
tsahyt 2017-02-10 22:47:00
it seems like this is due to enabling recursion, but what if you don't need recursion in a situation
tsahyt 2017-02-10 22:58:27
alright I figured it out. at least one solution, using the changes function to trigger an event on changes of the behavior
winny 2017-02-10 23:35:31
my type signature isn't correct, what should it be instead? https://gist.github.com/8612a7597673473cf62643c95ca8052e
tsahyt 2017-02-10 23:37:20
winny: median :: Num a => a is what you wanted to write
tsahyt 2017-02-10 23:37:35
but that's not gonna be enough, because (/) is not part of the Num typeclass
mniip 2017-02-10 23:37:51
winny, that function seems broken
tsahyt 2017-02-10 23:38:07
the last pattern match is incorrect
winny 2017-02-10 23:38:45
yeah probably pretty broken, i'm pretty novice with haskell
dramforever 2017-02-10 23:39:06
It's unclear what you want to do
dramforever 2017-02-10 23:39:27
Your function is nothing like the 'median' I learned in school :P
winny 2017-02-10 23:39:39
:)
winny 2017-02-10 23:39:45
how did you learn in school?
dramforever 2017-02-10 23:39:51
What
dramforever 2017-02-10 23:40:01
median is a statistics thing right?
piyush-kurur 2017-02-10 23:40:17
I just wanted to ask how you perform releases. Immediately after a release do you update the version number or do you keep it till you are in the stage where you plan to make the next release
piyush-kurur 2017-02-10 23:40:29
?
mniip 2017-02-10 23:41:04
piyush-kurur, well you have to push something to hackage
piyush-kurur 2017-02-10 23:42:11
mniip: after you upload the hackage I mean. Do you continue to keep the version number in the cabal file (in the git repository) till you are ready for the next release
tsahyt 2017-02-10 23:42:27
I do it that way, yes. although I also have no packages on hackage atm
mniip 2017-02-10 23:42:51
I don't have many packages personally, but that seems to be common
piyush-kurur 2017-02-10 23:43:14
mniip: to clarify, immediate bump of version
tsahyt 2017-02-10 23:43:18
that way I can have a commit like "bump version to A.B.C.D" with just the version change, and use that as the tag in git.
tsahyt 2017-02-10 23:43:53
if it's the last thing in the commit history that has changed up to the release, the git tag certainly matches, and any users that might want to check out the code can find it quickly
mangobot 2017-02-10 23:44:09
can anyone help, why am i getting the following error here: http://lpaste.net/352362 , heres the error: http://lpaste.net/352363
winny 2017-02-10 23:44:19
So tsahyt i want Fractional?
tsahyt 2017-02-10 23:44:34
winny: if you want (/) then yes
mangobot 2017-02-10 23:44:36
i understand thats its due to the arguments, but dont get why
tsahyt 2017-02-10 23:44:55
winny: that will automatically imply Num, because of how Fractional is defined
mniip 2017-02-10 23:44:58
mangobot, show returns a string
winny 2017-02-10 23:45:07
so i want something like Fractional a => [a] -> a ?