Learning Haskell Week02 - Intro To Functions

preview_player
Показать описание
Learning Haskell for absolute beginners! This week we will be tackling how to create and use functions.

As always, accompanying slides will be hosted at
Рекомендации по теме
Комментарии
Автор

Well, the Haskelly extension button "Load GHCi" fails for me due to the "--ghci-options" command line option with the command: "stack ghci --ghci-options Lib.hs". I get the following error message:
<no location info>: error: can't find file: Lib.hs
Failed, no modules loaded.

The problem seems to be that even though "Load GHCi" tells powershell to change the directory to the "src" directory in the powershell (cd "j:\bobhaskell\bobtest\src), the "current working directory in Ghci shows it to be one level up in the project directory (J:\bobhaskell\bobtest ) when using "--ghci-options."

Any ideas on why Load GHCi is failing?

limboski
Автор

Hey Curtis, when I type double x = x + x I don’t get the purple line above it I have all the extensions I don’t know why this is happening any help would be nice:)

JetsFan-ye
Автор

That where feature is so nice and clean

jesusmtz
Автор

i followed you step by step but my vs code says Project requires GHC but it isn't installed. i installed it but it has this issue. also when i in new terminal tries stack it gives some error

HamzaKhan-hojw
Автор

<interactive>:8:2: warning: [-Wtype-defaults]
* Defaulting the following constraints to type `Integer'
(Show a0) arising from a use of `print' at <interactive>:8:2-14
(Num a0) arising from a use of `it' at <interactive>:8:2-14
(Enum a0) arising from a use of `it' at <interactive>:8:2-14
* In a stmt of an interactive GHCi command: print it
6
*Lib> factorial 3

why this error is showing? Can anyone help me, please??

nitusah
Автор

How can I add load GHCi to the status bar ?

jannik
Автор

Does this tutorial need to be watched before the second live tutorial or first live tutorial on week 3

my_parents_mistake
Автор

Hey how do I open visual studios and get a completely new template. Every time I open it I am still in src/Lib.hs from the last video. Even when I hit new template it still has me in that file and everything? Probably a dumb question but this is my first programming ever. Also I'm really excited to go on this journey with you and cannot thank you enough for your time and efforts!

andrewganssle
Автор

Might seem like a silly comment but is there any way I can learn the different instructions for every function, because sometimes you start keying in something and I am so lost basically cause I have no previous knowledge on haskell language.

davidbanigo
Автор

Hi, where are the exercises you mentioned in the end of the video?

viktorturchenko
Автор

Did you just recommend spaces over tabs???
Why would you say something so controversial yet so brave?

amrthabi
join shbcf.ru