on master help sign in
Restructure .cabal to avoid redundant compilation
commitfec3eb0f15a10109336705157760f1280fb363a5 authorChristopher League <league@contrapunctus.net> dateMon 19 Jun 2017, 05:51 (9 years ago) parent520f93a
2 files changed+13−39
src/Hakyll/Init.hs → Init.hs hakyll.cabal+13−39
src/Hakyll/Init.hs → Init.hsrenamed

The content is the same.

hakyll.cabal+13−39
@@ -102,16 +102,24 @@ Library
102102 Hakyll
103103 Hakyll.Commands
104104 Hakyll.Core.Compiler
105+ Hakyll.Core.Compiler.Internal
105106 Hakyll.Core.Configuration
106107 Hakyll.Core.Dependencies
107108 Hakyll.Core.File
108109 Hakyll.Core.Identifier
109110 Hakyll.Core.Identifier.Pattern
110111 Hakyll.Core.Item
112+ Hakyll.Core.Logger
111113 Hakyll.Core.Metadata
114+ Hakyll.Core.Provider
115+ Hakyll.Core.Provider.Metadata
112116 Hakyll.Core.Routes
113117 Hakyll.Core.Rules
118+ Hakyll.Core.Rules.Internal
119+ Hakyll.Core.Runtime
120+ Hakyll.Core.Store
114121 Hakyll.Core.UnixFilter
122+ Hakyll.Core.Util.File
115123 Hakyll.Core.Util.String
116124 Hakyll.Core.Writable
117125 Hakyll.Main
@@ -119,12 +127,12 @@ Library
119127 Hakyll.Web.Feed
120128 Hakyll.Web.Html
121129 Hakyll.Web.Html.RelativizeUrls
130+ Hakyll.Web.Paginate
122131 Hakyll.Web.Pandoc
123132 Hakyll.Web.Pandoc.Biblio
124133 Hakyll.Web.Pandoc.FileType
125134 Hakyll.Web.Redirect
126135 Hakyll.Web.Tags
127− Hakyll.Web.Paginate
128136 Hakyll.Web.Template
129137 Hakyll.Web.Template.Context
130138 Hakyll.Web.Template.Internal
@@ -136,18 +144,10 @@ Library
136144 Data.List.Extended
137145 Data.Yaml.Extended
138146 Hakyll.Check
139− Hakyll.Core.Compiler.Internal
140147 Hakyll.Core.Compiler.Require
141148 Hakyll.Core.Item.SomeItem
142− Hakyll.Core.Logger
143− Hakyll.Core.Provider
144149 Hakyll.Core.Provider.Internal
145− Hakyll.Core.Provider.Metadata
146150 Hakyll.Core.Provider.MetadataCache
147− Hakyll.Core.Rules.Internal
148− Hakyll.Core.Runtime
149− Hakyll.Core.Store
150− Hakyll.Core.Util.File
151151 Hakyll.Core.Util.Parser
152152 Hakyll.Web.Pandoc.Binary
153153 Paths_hakyll
@@ -218,29 +218,12 @@ Library
218218
219219Test-suite hakyll-tests
220220 Type: exitcode-stdio-1.0
221− Hs-source-dirs: src tests
221+ Hs-source-dirs: tests
222222 Main-is: TestSuite.hs
223223 Ghc-options: -Wall
224− Other-modules:
225− Hakyll.Core.Dependencies.Tests
226− Hakyll.Core.Identifier.Tests
227− Hakyll.Core.Provider.Metadata.Tests
228− Hakyll.Core.Provider.Tests
229− Hakyll.Core.Routes.Tests
230− Hakyll.Core.Rules.Tests
231− Hakyll.Core.Runtime.Tests
232− Hakyll.Core.Store.Tests
233− Hakyll.Core.UnixFilter.Tests
234− Hakyll.Core.Util.String.Tests
235− Hakyll.Web.CompressCss.Tests
236− Hakyll.Web.Html.RelativizeUrls.Tests
237− Hakyll.Web.Html.Tests
238− Hakyll.Web.Pandoc.FileType.Tests
239− Hakyll.Web.Template.Context.Tests
240− Hakyll.Web.Template.Tests
241− TestSuite.Util
242224
243225 Build-Depends:
226+ hakyll,
244227 QuickCheck >= 2.8 && < 2.10,
245228 tasty >= 0.11 && < 0.12,
246229 tasty-hunit >= 0.9 && < 0.10,
@@ -289,9 +272,6 @@ Test-suite hakyll-tests
289272 system-filepath >= 0.4.6 && <= 0.5
290273 Cpp-options:
291274 -DPREVIEW_SERVER
292− Other-modules:
293− Hakyll.Preview.Poll
294− Hakyll.Preview.Server
295275
296276 If flag(watchServer)
297277 Build-depends:
@@ -299,8 +279,6 @@ Test-suite hakyll-tests
299279 system-filepath >= 0.4.6 && <= 0.5
300280 Cpp-options:
301281 -DWATCH_SERVER
302− Other-modules:
303− Hakyll.Preview.Poll
304282
305283 If flag(checkExternal)
306284 Build-depends:
@@ -311,14 +289,10 @@ Test-suite hakyll-tests
311289
312290Executable hakyll-init
313291 Ghc-options: -Wall
314− Hs-source-dirs: src
315− Main-is: Hakyll/Init.hs
292+ Main-is: Init.hs
316293
317294 Build-depends:
295+ hakyll,
318296 base >= 4 && < 5,
319297 directory >= 1.0 && < 1.4,
320298 filepath >= 1.0 && < 1.5
321−
322− Other-modules:
323− Hakyll.Core.Util.File
324− Paths_hakyll