No video

Haskell - Tutorial 1 - GHC and Cabal

  Рет қаралды 9,226

James Hobson

James Hobson

Күн бұрын

First video of a new tutorial series! This time it's programming in haskell!
Hopefully I'll finish this tutorial series... The plan is to release a new video every two days
In this video we cover using cabal and ghc to manage project creation

Пікірлер: 30
@eugeniogonzato
@eugeniogonzato 3 жыл бұрын
Please zoom your screen its impossibile to read
@ivelten
@ivelten 2 жыл бұрын
I've been looking for a guide like this for Haskell in a long time. Thank you very much for it.
@xyzrealestate5217
@xyzrealestate5217 3 жыл бұрын
Thank you a lot for the tutorials! I totally mean it. You helped me a lot and you also explain great. keep going
@bernardo5733
@bernardo5733 3 жыл бұрын
Great tutorial, you really wiped out my doubts. Keep going Bro, you have all thumbs up from now on
@bernardo5733
@bernardo5733 3 жыл бұрын
+ 1 subscriber
@jameshobson6965
@jameshobson6965 3 жыл бұрын
What were you doubting?
@mimosveta
@mimosveta 3 жыл бұрын
ugh, the a, the terminal, it's too small, i have a huge screen and am blind as a bat, so I'm just guessing what you're typing there :S
@jameshobson6965
@jameshobson6965 3 жыл бұрын
Apologies. There is slow increase in text size as the tutorials progress
@slentzen
@slentzen 3 жыл бұрын
I completely agree to what you're saying, there's a gap in Haskell tutorials that takes you from zero to type level programming
@jameshobson6965
@jameshobson6965 3 жыл бұрын
I hope I fill the gap with my tutorials. But if mine are a bit too rubbish, I hope at least someone learns that there is a need for the gap to be filled and makes some better ones 😂
@org.photonsphere
@org.photonsphere 2 жыл бұрын
I've recently found this cabal command: list-bin list path to a single executable
@jameshobson6965
@jameshobson6965 2 жыл бұрын
I did not know that! That is so unbelievably useful!
@lool7922
@lool7922 3 жыл бұрын
nice explanation, could you please explain the meaning of this function, would be great if you put some examples? numberWang : : (Num n, Show n, Ord n) => n -> String
@jameshobson6965
@jameshobson6965 3 жыл бұрын
Wow. I mean we weren't going to cover numberwang until tutorial 42! But I'll give you a little spoiler: numberWang -3.443 = "Thats Numberwang!"
@lool7922
@lool7922 3 жыл бұрын
@@jameshobson6965 is it possible to help me with my projects? I am happy to keep watching your videos but my projects have different deadlines.
@jameshobson6965
@jameshobson6965 3 жыл бұрын
Well my policy is, you can ask any question in the KZfaq comments. If you just dump an entire question from your assignment, it's unlikely that you will get anything useful from me. That forces you to do the thinking! Learning is hard!
@lool7922
@lool7922 3 жыл бұрын
@@jameshobson6965you are completely right, “learning is hard” but I’m taking this course as an elective course. I actually don’t need to learn Haskell, however Haskell is a great programming language. Unfortunately, it’s is not going to help me after graduation as I’m majoring in business management. I hope you got what I mean. Will you consider helping me for -> $$. Business is business
@sebastianaguerre9064
@sebastianaguerre9064 Жыл бұрын
what interpreter ar you using ? were you have ur code
@jameshobson6965
@jameshobson6965 Жыл бұрын
- GHCi as interpreter - spaceVIM with neovim as editor - iTerm2 as terminal emulator
@estebanmanaricua9753
@estebanmanaricua9753 3 жыл бұрын
thank you for this
@JohnWick-mk4ve
@JohnWick-mk4ve 2 жыл бұрын
Hi.. Thanks for this. Can u also show how u have configured ur ide or post a link to it.. Larger font sizd would also help
@jameshobson6965
@jameshobson6965 2 жыл бұрын
I use SpaceVim with neovim. I have customised it a little, but not in any way that is obvious from the tutorials
@rubenkaller4788
@rubenkaller4788 3 жыл бұрын
Hi I'm on arch and ghc is dynamic here. How do I link dynamic with cabal?
@jameshobson6965
@jameshobson6965 3 жыл бұрын
--enable-executable-dynamic I think?
@jameshobson6965
@jameshobson6965 3 жыл бұрын
But I wouldn't do that! Good Packaging practice is, get the source to build in the most easy way. Don't bother pacman just yet! Then, when you are done, you can use whatever packaging tools are used on arch to get it linking to the packages
@jameshobson6965
@jameshobson6965 3 жыл бұрын
Also, I understand your question now! if you use pacman to install a ghc library, cabal should just use that one. It's a really good way of breaking everything though so that's a warning! I can go into packaging practice if that's an aim of yours. If not, just use cabal's offering
@rubenkaller4788
@rubenkaller4788 3 жыл бұрын
@@jameshobson6965 Thanks for your quick reply. What I meant was that I can run the cabal project with >>>ghc -dynamic src-exe/Main.hs but with >>>cabal run i get the error Could not find module ‘Prelude’ There are files missing in the ‘base-4.14.1.0’ package after some googling I found out that the standard haskell libs on arch are dynamic libs. I am brand new to this stuff. So I dont know how to explain properly. Any help is appreciated. I was looking for a -dynamic flag inside the cabal config file
@rubenkaller4788
@rubenkaller4788 3 жыл бұрын
@@jameshobson6965 Also thanks for the solid tutorials looks better then most :)
Haskell - Tutorial 2 - Functions and Lists
24:43
James Hobson
Рет қаралды 5 М.
Haskell for Imperative Programmers #43 - Cabal
36:52
Philipp Hagenlocher
Рет қаралды 10 М.
WILL IT BURST?
00:31
Natan por Aí
Рет қаралды 26 МЛН
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 11 МЛН
Чёрная ДЫРА 🕳️ | WICSUR #shorts
00:49
Бискас
Рет қаралды 6 МЛН
Learning Haskell Week01 - Getting Started With Haskell Using VS Code
16:19
Making Music with Haskell From Scratch
49:02
Tsoding
Рет қаралды 98 М.
Getting Started With Haskell
56:29
DistroTube
Рет қаралды 62 М.
Most Common Mistakes in Haskell - Constantine Ter-Matevosian
10:42
Haskell 101
1:54:06
Google TechTalks
Рет қаралды 41 М.
Haskell - Tutorial 6 - Functors, Applicative, Monads and Monoids
39:29
Running a startup on Haskell
50:23
jasonofthel33t
Рет қаралды 111 М.
JSON Parser 100% From Scratch in Haskell (only 111 lines)
1:50:07
Learning Awk Is Essential For Linux Users
20:02
DistroTube
Рет қаралды 295 М.
WILL IT BURST?
00:31
Natan por Aí
Рет қаралды 26 МЛН