diff --git a/package.nix b/package.nix index fccd835..1f667e6 100644 --- a/package.nix +++ b/package.nix @@ -4,7 +4,7 @@ stdenv, ... }: let - ghcExeOptions = "-O -Wall -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N"; + ghcExeOptions = "-O -Wall -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N -main-is Examples.main"; ghcPackages = p: [ p.relude p.pretty-simple @@ -22,7 +22,7 @@ in configurePhase = '' ''; buildPhase = '' - ghc ${ghcExeOptions} ./Main.hs -o ./Main + ghc ${ghcExeOptions} ./Examples.hs -o ./Main ''; installPhase = '' mkdir -p $out/bin diff --git a/src/Main.hs b/src/Examples.hs similarity index 97% rename from src/Main.hs rename to src/Examples.hs index cb01c34..4f1748c 100644 --- a/src/Main.hs +++ b/src/Examples.hs @@ -1,7 +1,7 @@ {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} -module Main (main) where +module Examples (main) where -- IMPORTS --