|
Is learning Haskell intended to be an order of magnitude more difficult than other programming languages?
|
# ¿ Jun 19, 2015 03:50 |
|
|
# ¿ May 1, 2024 19:53 |
|
I might try again with another resources. I used LYAH, and it felt more like documentation of every part of the standard library than a tutorial. Something that teaches how to build simple, useful programs using basic features would have been more helpful.
|
# ¿ Jun 19, 2015 04:01 |
|
Hey dudes, Haskell's complaining that none of my variables are in scope. What's up? It does the same when using where in place of let, or 'a' syntax in the type sig.code:
Dominoes fucked around with this message at 07:11 on Jun 21, 2015 |
# ¿ Jun 21, 2015 06:53 |
|
Thank you for the detailed explanation. It makes sense, and solves the issue I posted. I'm running into a second issue with the code I posted above, after fixing the variable names:quote:No instance for (Integral Float) arising from a use of `^' The nature of the error changes a bit if I change the type signature, but I can't sort it out. It's specifically pointing to my variable e. Note that this is a variable defined within the let, while the type signature should, AFAIK, just deal with input and output variables, which are both floats. Dominoes fucked around with this message at 08:27 on Jun 21, 2015 |
# ¿ Jun 21, 2015 08:17 |
|
Thank you. That explanation makes sense, and my code works now.
|
# ¿ Jun 21, 2015 08:29 |
|
|
# ¿ May 1, 2024 19:53 |
|
lol
|
# ¿ Jun 21, 2015 18:21 |