Haskell for Imperative Programmers #43 - Cabal

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.ค. 2024
  • This video is supported by translatebox.io
    Cabal: www.haskell.org/cabal/
    Install instructions (Windows): hub.zhox.com/posts/introducin...
    Editor shown in this video: vscodium.com
    Further reading:
    dev.stephendiehl.com/hask/#cabal
    cabal.readthedocs.io/
    Timestamps:
    00:00 - Intro
    00:50 - Installation & First Steps
    02:07 - Project Setup
    07:05 - Adding Library Modules
    10:40 - Building a Library
    13:21 - Commons
    16:28 - Checking .cabal
    17:50 - Multiple Executables
    21:41 - Resolving Dependencies
    24:35 - Test Suites with QuickCheck
    33:34 - Some Considerations
    35:22 - Cabal Hell
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 30

  • @samuraijosh1595
    @samuraijosh1595 5 หลายเดือนก่อน +1

    Woah this is AMAZING. Haskell's build tooling has always been a headache for me since i started learning it 1 year ago. Your video is a game changer. I hope this blows up on the algorithm some day.

  • @32gigs96
    @32gigs96 3 ปีที่แล้ว +8

    This series is gold! Never stop!

    • @gunnardavid8427
      @gunnardavid8427 3 ปีที่แล้ว

      Pro trick : you can watch movies on Kaldrostream. Me and my gf have been using it for watching lots of of movies these days.

    • @orionodin368
      @orionodin368 3 ปีที่แล้ว

      @Gunnar David definitely, been watching on KaldroStream for since december myself :)

    • @bowiesamir2516
      @bowiesamir2516 3 ปีที่แล้ว

      @Gunnar David Definitely, been watching on Kaldrostream for years myself :D

  • @MrArntie
    @MrArntie 3 ปีที่แล้ว +6

    Hi Phillip, what a great Tutorial! I,m just looking forward for the next Tutorial about stack. :)

    • @paulzupan3732
      @paulzupan3732 ปีที่แล้ว +1

      That didn't age quite so well...

  • @kozer1986
    @kozer1986 10 หลายเดือนก่อน

    Thanks for putting all these together!! I'd love to see those series to get continue, and cover other things like stack, ghcup, hie etc.

  • @gasacchi6734
    @gasacchi6734 3 ปีที่แล้ว +5

    finally for haskell build tools and deps management, really exiting for Stack, and hope for near future you will explain ghc extensions because when i try to learn some haskell repo there must be some extensions that make syntax look weird for beginners, btw awesome video as always

    • @philipphagenlocher
      @philipphagenlocher  3 ปีที่แล้ว +4

      At some point I will probably talk about the most used / useful extensions. I agree that they sometimes lead to confusing syntax for beginners!

  • @eliot013
    @eliot013 3 ปีที่แล้ว +6

    Thanks! These tutorials are very useful. Could you make a video about Stack and the differences between Cabal and Stack, please?

  • @MarkusBurrer
    @MarkusBurrer 3 ปีที่แล้ว +1

    Thanks for this amazing series. I hope I will be able to write more than "Hello, world!" in Haskell one day

  • @FoxInFlame
    @FoxInFlame 3 ปีที่แล้ว +1

    I love your series! I've binge watched every single one of them, and I'm excited for all future ones! All the topic suggestions by others are brilliant, and I want to add my own too:
    It could be months, years, later, but would you create a video on Kinds? They are a part of core haskell that is often a barrier to new programmers including me.

  • @nokomprendo3734
    @nokomprendo3734 3 ปีที่แล้ว +2

    Thank you for this great video.
    It seems that your Lib module is compiled many times. I think that the options for the executable targets should be something like:
    build-depends: mydemo
    other-modules:
    hs-source-dirs: app

  • @zuggrr
    @zuggrr 2 ปีที่แล้ว +1

    Fantastic ! Thank you

  • @c-syrup
    @c-syrup 2 ปีที่แล้ว +1

    Thank you for the whole series of tutorials, it goes way deeper than I thought.
    Something I want to learn more but can't find a good source, like and (heard it's some sort of idiom)and the declaration of classes (derive? where?)
    Last but not least, I want the video about stack...

    • @c-syrup
      @c-syrup 2 ปีที่แล้ว +1

      p.s. Is there a list of Haskell operators? I just found

  • @Karlthegreat100
    @Karlthegreat100 3 ปีที่แล้ว

    Hey Philipp, really loving your channel. Do you have any plans to make a video about memoization in Haskell? Cheers!

  • @VuVietran
    @VuVietran 3 ปีที่แล้ว +1

    Many thanks for your videos. Could you do a video on Haskell Generics, Template Haskell, Aeson and/or maybe type level programming please?

  • @lukekim825
    @lukekim825 2 ปีที่แล้ว +1

    Please come back 😥

  • @mayabartolabac
    @mayabartolabac 3 ปีที่แล้ว +1

    Hey philip when will you talk about lenses?
    you might also want to talk about other functors like covariants and profunctors

  • @alqaeda308
    @alqaeda308 2 ปีที่แล้ว

    Thank Philip guru

  • @dibyojyotibhattacherjee4279
    @dibyojyotibhattacherjee4279 2 ปีที่แล้ว

    why don't u do a video on the cabal environment variables.

  • @Raleighthrbub123
    @Raleighthrbub123 3 ปีที่แล้ว +2

    Cabal doesn't work on arch unfortunately. I don't know what the deal is, but supposedly the Arch linux devs and the Haskell devs don't like each other.
    I made a docker image with the official haskell docker and that's how I compile things now lol.

  • @mosaicubos3533
    @mosaicubos3533 2 ปีที่แล้ว

    Can you explain me why foldr (\a b-> if even a then a+2 else b-1) 2 [5,9,10,3] has a solution of 10? Ive seen all your videos and i cant understand why

  • @user-fp6dt1os1l
    @user-fp6dt1os1l 3 ปีที่แล้ว +1

    Great video! BTW "Suite" is pronounced like "Sweet"

    • @philipphagenlocher
      @philipphagenlocher  3 ปีที่แล้ว +3

      Well... Leave it up to me to mess something up atleast ONCE per video. ;) Thanks for pointing that out!

    • @udoma8
      @udoma8 ปีที่แล้ว +1

      hehehehe, allow him, but thanks

  • @lucasmsoares96
    @lucasmsoares96 2 ปีที่แล้ว

    Stack please!

  • @zyxyuv1650
    @zyxyuv1650 ปีที่แล้ว

    Is this channel dead?