Skip to content

Commit

Permalink
add -fhide-source-paths flag (nicer build logs)
Browse files Browse the repository at this point in the history
  • Loading branch information
raehik committed Oct 5, 2024
1 parent bb93228 commit 565588d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions binrep.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ library
TypeFamilies
DataKinds
MagicHash
ghc-options: -Wall -Wno-unticked-promoted-constructors
ghc-options: -Wall -fhide-source-paths -Wno-unticked-promoted-constructors
build-depends:
base >=4.18 && <5
, bytestring >=0.11 && <0.13
Expand Down Expand Up @@ -131,7 +131,7 @@ test-suite spec
TypeFamilies
DataKinds
MagicHash
ghc-options: -Wall -Wno-unticked-promoted-constructors
ghc-options: -Wall -fhide-source-paths -Wno-unticked-promoted-constructors
build-tool-depends:
hspec-discover:hspec-discover >=2.7 && <2.12
build-depends:
Expand Down Expand Up @@ -181,7 +181,7 @@ benchmark bench
TypeFamilies
DataKinds
MagicHash
ghc-options: -Wall -Wno-unticked-promoted-constructors
ghc-options: -Wall -fhide-source-paths -Wno-unticked-promoted-constructors
build-depends:
base >=4.18 && <5
, binrep
Expand Down
3 changes: 3 additions & 0 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ default-extensions:
ghc-options:
- -Wall

# hides module filepaths when compiling (bit neater)
- -fhide-source-paths

# omitting ticks is good; see https://gitlab.haskell.org/ghc/ghc/-/issues/20531
# (off by default since GHC 9.4)
- -Wno-unticked-promoted-constructors
Expand Down

0 comments on commit 565588d

Please sign in to comment.