aboutsummaryrefslogtreecommitdiff
path: root/CabalHelper/Types.hs
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2015-08-21 06:34:09 +0200
committerDaniel Gröber <dxld@darkboxed.org>2015-08-21 09:26:08 +0200
commitc7aba0dbaaf7889e2cc653bf203e4b046b9a5029 (patch)
tree9049c995cd4e512ead627b3df45201669d1f6ecd /CabalHelper/Types.hs
parentaf90d1aed4227033bfc657278067a5cbcff8226c (diff)
Factor helper compilation into seperate module for testing
Diffstat (limited to 'CabalHelper/Types.hs')
-rw-r--r--CabalHelper/Types.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/CabalHelper/Types.hs b/CabalHelper/Types.hs
index 771a83f..284f7e6 100644
--- a/CabalHelper/Types.hs
+++ b/CabalHelper/Types.hs
@@ -55,3 +55,13 @@ data ChPkgDb = ChPkgGlobal
| ChPkgUser
| ChPkgSpecific FilePath
deriving (Eq, Ord, Read, Show, Generic)
+
+data Options = Options {
+ verbose :: Bool
+ , ghcProgram :: FilePath
+ , ghcPkgProgram :: FilePath
+ , cabalProgram :: FilePath
+}
+
+defaultOptions :: Options
+defaultOptions = Options False "ghc" "ghc-pkg" "cabal"