-
Notifications
You must be signed in to change notification settings - Fork 8
/
Master.hs
44 lines (35 loc) · 1.32 KB
/
Master.hs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
module Config.Master (
module Config.Master,
module Config.App,
Turbinado.Server.Handlers.SessionHandlers.Simple.getSessionHandler
) where
import Turbinado.Server.Handlers.SessionHandlers.Simple
import Config.App
----------------------------------------------------------------
-- Arguments to the make system used in the Dynamic Loader
----------------------------------------------------------------
compileArgs =
[ "-fglasgow-exts"
, "-fallow-overlapping-instances"
, "-fallow-undecidable-instances"
, "-F", "-pgmFtrhsx"
, "-fno-warn-overlapping-patterns"
, "-odir " ++ compiledDir
, "-hidir " ++ compiledDir
, "-package HDBC"
] ++ (map ("-i"++) searchDirs)
mUserPkgConf = [""]
----------------------------------------------------------------
-- Paths
----------------------------------------------------------------
viewDir = "App/Views"
viewStub = "Turbinado/Stubs/View.hs"
layoutDir = "App/Layouts"
layoutStub = "Turbinado/Stubs/Layout.hs"
controllerDir = "App/Controllers"
controllerStub = "Turbinado/Stubs/Controller.hs"
configDir = "Config"
searchDirs = [viewDir, layoutDir, controllerDir, rootDir, configDir, compiledDir]
staticDirs = ["static", "tmp/cache"]
compiledDir = "tmp/compiled"
rootDir = "./"