make LTS branch pre-releases
[cabal.git] / Cabal-syntax / src / Distribution / PackageDescription / Utils.hs
blob27b993c9b615ea4870155edf0051635519ed5c1f
1 -----------------------------------------------------------------------------
3 -- |
4 -- Module : Distribution.PackageDescription.Utils
5 --
6 -- Maintainer : cabal-devel@haskell.org
7 -- Portability : portable
8 --
9 -- Common utils used by modules under Distribution.PackageDescription.*.
10 module Distribution.PackageDescription.Utils
11 ( cabalBug
12 , userBug
13 ) where
15 -- ----------------------------------------------------------------------------
16 -- Exception and logging utils
18 userBug :: String -> a
19 userBug msg = error $ msg ++ ". This is a bug in your .cabal file."
21 cabalBug :: String -> a
22 cabalBug msg =
23 error $
24 msg
25 ++ ". This is possibly a bug in Cabal.\n"
26 ++ "Please report it to the developers: "
27 ++ "https://github.com/haskell/cabal/issues/new"