Domain Modelling with Haskell: Generalizing with Foldable and Traversable

Поделиться
HTML-код
  • Опубликовано: 18 янв 2025
  • НаукаНаука

Комментарии • 13

  • @FatihAltnok
    @FatihAltnok 7 лет назад +1

    I'm coming from Haskell Weekly and so far I find these very useful, will be watching for more!

  • @LightProgramming
    @LightProgramming 6 лет назад +1

    These videos are the type of videos people tumb up before watching.

  • @haskelltype4627
    @haskelltype4627 7 лет назад +4

    Man this is a great tutorial! You are talented! Thank you

  • @ChristopherOkhravi
    @ChristopherOkhravi 6 лет назад +2

    Wow just found your channel! This is awesome! Great work! :) Subscribed.

  • @bai7859
    @bai7859 7 лет назад

    Awesome, more haskell power pls.

  • @kevinkamau
    @kevinkamau 6 лет назад

    Thank you for the videos

  • @elfenlaid
    @elfenlaid 7 лет назад

    nice and smooth

  • @daryoushmehrtash7601
    @daryoushmehrtash7601 6 лет назад

    Nice. LIke your way of thinking about making data type polymorphic.

  • @michaelslindon
    @michaelslindon 7 лет назад

    What editor do you use?

    • @HaskellatWork
      @HaskellatWork  7 лет назад +1

      You'll find the answer in the FAQ: haskell-at-work.com/about.html#faq :)

  • @turbotim74
    @turbotim74 7 лет назад +4

    The choice to make Project polymorphic seems a bit odd to me. I don't feel that Project is inherently polymorphic and making it so simply to get auto-derived instances for Functor, Foldable and Traversable doesn't seem quite right. I feel like this blurs the meaning of Project. What is a `Project Report`? It seems to be neither a Project nor a Report. The type says it's a Project but without an ID, I'd argue that it's no longer a Project.
    If the desire was to be able to maintain the structure of a ProjectGroup, I might have simply transformed a ProjectGroup to a Rose Tree where the polymorphic value was a tuple of Project and Report. Or, since the client only wanted to see reporting on a per-Project basis, you could fold over Project to create a Map of Project to Report thereby discarding the tree structure of a ProjectGroup.

    • @mehdisaffar
      @mehdisaffar 5 лет назад

      Would it better if it was called ProjectStructure/ProjectTree/something-like-that instead? Just curious