diff --git a/baz.cabal b/baz.cabal new file mode 100644 index 0000000..5d8eff6 --- /dev/null +++ b/baz.cabal @@ -0,0 +1,23 @@ +cabal-version: 3.0 +name: baz +version: 0.1.0.0 +license: MIT +license-file: LICENSE +author: Sridhar Ratnakumar +maintainer: srid@srid.ca +category: Other +build-type: Simple +extra-doc-files: CHANGELOG.md + +common warnings + ghc-options: -Wall + +executable bar + import: warnings + main-is: Main.hs + build-depends: + base + , foo + , text + hs-source-dirs: src + default-language: Haskell2010 diff --git a/cabal.project b/cabal.project index c19a784..f47c082 100644 --- a/cabal.project +++ b/cabal.project @@ -1,6 +1,7 @@ packages: ./foo ./bar + ./ source-repository-package type: git diff --git a/flake.nix b/flake.nix index 37a34e6..510ead4 100644 --- a/flake.nix +++ b/flake.nix @@ -18,14 +18,21 @@ ]; perSystem = { self', inputs', pkgs, system, ... }: { haskellProjects.default = { - autoWire = [ "packages" "apps" "checks" ]; + # autoWire = [ "packages" "apps" "checks" ]; # Want to override dependencies? # See https://haskell.flake.page/dependency + devShell = { + tools = hp: { + inherit (pkgs) cabal2nix; + + }; + }; + }; # packages = { # halogen-chess.source = inputs.halogen-chess; # }; - packages.default = self'.packages.bar; + # packages.default = self'.packages.baz; }; }; } diff --git a/src/Main.hs b/src/Main.hs new file mode 100644 index 0000000..a0ea1f2 --- /dev/null +++ b/src/Main.hs @@ -0,0 +1,10 @@ +module Main where + +import Foo (fooFunc) + +import Data.Text + +main :: IO () +main = do + putStrLn "Hello, Haskell!" + fooFunc