These are chat archives for evhub/coconut

Apr 2018
Michael Lindon
Apr 06 2018 03:51

Hi, im wondering if someone would please explain what is going wrong with my code:

def gogo(acc,[x]::xs) = gogo(acc+1,xs)
def gogo(acc,[]) = acc
Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: pattern_adder() takes 1 positional argument but 2 were given

Michael Lindon
Apr 06 2018 04:02
i think i see it - @addpattern(gogo)
Evan Hubinger
Apr 06 2018 17:35
Yep, I think you got it!
Elliott Indiran
Apr 06 2018 19:42
@evhub why is there both a Travis build and an Appveyor build? From a cursory glance it looks like Travis is building on Linux and Appveyor is building on Windows, but does Travis not support Windows?
It looks like Travis can't support Windows currently, but AppVeyor handles it quite well:
Evan Hubinger
Apr 06 2018 20:15
@eindiran Yeah, it's exactly that. Travis is the main testing system, but then we also have AppVeyor for catching Windows-specific bugs.