-
🙇♂️I'm new to Haskell and cabal.And these are my questions when using with cabal.I do hope these noob questions won't burden you and I would be gratefully appreciate for your answers. My question is: What For the package manager,I'm familiar with I notice
Is that a useless design?Or has some reasons for it?🙇♂️I'm really curious about it. And for just enter Is there any wrong about my cognition?🙇♂️And it would be delightful for someone could answer me the details of how this command actually work. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
For now! Once you switch to a more modern |
Beta Was this translation helpful? Give feedback.
-
Reading this again, it seems to be that your congnition is spot on (but wait for more experienced people)! I would notice that |
Beta Was this translation helpful? Give feedback.
-
Yes, the
|
Beta Was this translation helpful? Give feedback.
Yes, the
install
command ofcabal
is very different from thenpm
one. To do the equivalent ofnpm install
you don't have to runcabal install
at all. Instead, you add the package you want to use to thebuild-depends
section of the.cabal
file of your package. Cabal will take care of fetching and building the dependency as needed when you runcabal build
,cabal run
, or other similar commands.cabal install
instead is more likenpm install --global
. …