Fork me on GitHub

Problem is more on the puzzle pipeline... soon to be running out if no incentive is given to produce


git clone [email protected]:matijapretnar/eff.git
Cloning into 'eff'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
what is going on? I can't even git clone a public repo ?

New To Clojure20:12:14

@qqq Could use HTTPS url. But this error is strange indeed.


@qqq Do you have ssh private key set up and public key added to GitHub?


@juhoteperi: no, on this particular machine, ~/.ssh only has authorized_keys and known_hosts


that’s probably your problem, use the https url if you cant add keys there


ah, so the theory is : ssh git@.... wants SOME ssh key that is attached to SOME github account, even if it doesn't have commit access to the project


otherwise, it dies at the ssh verification step, and there is no git clone


Yeah, I would expect you have to provide a user/key to get a secure session

3Jane21:12:50 says > if you don’t specify the optional username, Git assumes the user you’re currently logged in as. (..) > The negative aspect of SSH is that it doesn’t support anonymous access to your Git repository.

New To Clojure21:12:45

That's sad that git doesn't allow password auth with empty passwords to get public repos


there are other protocols besides git+ssh


for example, github offers https


as well as zips of specific checkouts


it's not a problem, I can add a ssh key; I just wasn't aware of this issue until now


Unrelated, but maybe someone knows Haskell?


using https doesn’t require auth if you need that in the future


if I have two modules, one with data Whatever = X | Y | … and the other one with data Another = X | A | B ..., how can I import both so that I can refer to the right X unambiguously? (I know about import qualified, but can’t figure out how to get it working. Modulename.X doesn’t work)


import qualified IIRC


so with one you import .... and the other import qualified Another as A


something like that


oh you already mentioned qualified, never mind


…I think I need to import both as qualified, testing now


It looks like that worked. Thanks 🙂 And now I have FirstModule.X, SecondModule.X

New To Clojure21:12:49

Btw there's for JVM 🙂

main :: IO ()
main = print $ quicksort [1, 123, 42, 90, 24, 12, 3]

quicksort [] = []
quicksort (x:xs) = quicksort left ++ [x] ++ quicksort right
    where left  = [ y | y <- xs, y < x ]
          right = [ y | y <- xs, y >= x ]
(isn't my code)


how's eta's compile time, does it have a repl, and how does it differ from frege ?


frege has bad interop with java and other java langs


iirc eta is much newer but if implemented as expected will have much better interop (but this neccessarily also means less haskell compatibility, that’s the tradeoff)


for example last I checked you could not define an interface that other code could use via frege, and you could not define code that uses an external interface from frege, those were deal breakers that meant I couldn’t integrate it nicely into my mixed lang codebase


@noisesmith: you are everywhere answering all the questions; I'm starting to suspect you're a chat bot from a tech research lab masquerading as human


I'm just a compulsive question answerer


people come and go from the channels, but noisesmith is always present and useful


Use the Hanselman strategy - write a blog or a book about things you answer, and then you can point people that way to start : )


Especially because search here is basically nullified by our message history


I was a big fan of Frege for a while and fairly active with that (small) community but it sure seems like Eta has a lot more people involved and has advanced a lot faster than Frege because of that.