I'm fairly new to haskell especially when it comes to packaging libraries.
I was having a hard time finding how to include github repositories in the
[name of your project].cabal file of my project. I've been to cabal user guide and didn't find it there, at least not at first. Good thing @samderbyshire saw my tweet and answered my question.
First thing to do is to create a
cabal.project file because this file doesn't get generated when you do
cabal init, then include the following
source-repository-package type: git location: git://github.com/[repo owner]/[the repo i want to include as dependency].git packages: ./[name of your project].cabal
Then in the your [name of your project].cabal file include the repository under the
build-depends: base ^>= 18.104.22.168 , the-repo-you-want-to-include