web: follow yesod file naming more closely
This commit is contained in:
		
							parent
							
								
									4c52dd5b76
								
							
						
					
					
						commit
						4ca655b6a0
					
				| @ -3,31 +3,31 @@ Re-export the modules of the hledger-web program. | ||||
| -} | ||||
| 
 | ||||
| module Hledger.Web ( | ||||
|                      module Hledger.Web.App, | ||||
|                      module Hledger.Web.AppRun, | ||||
|                      module Hledger.Web.Foundation, | ||||
|                      module Hledger.Web.Application, | ||||
|                      module Hledger.Web.Handlers, | ||||
|                      module Hledger.Web.Options, | ||||
|                      module Hledger.Web.Settings, | ||||
|                      module Hledger.Web.StaticFiles, | ||||
|                      module Hledger.Web.Settings.StaticFiles, | ||||
|                      tests_Hledger_Web | ||||
|               ) | ||||
| where | ||||
| import Test.HUnit | ||||
| 
 | ||||
| import Hledger.Web.App | ||||
| import Hledger.Web.AppRun | ||||
| import Hledger.Web.Foundation | ||||
| import Hledger.Web.Application | ||||
| import Hledger.Web.Handlers | ||||
| import Hledger.Web.Options | ||||
| import Hledger.Web.Settings | ||||
| import Hledger.Web.StaticFiles | ||||
| import Hledger.Web.Settings.StaticFiles | ||||
| 
 | ||||
| tests_Hledger_Web :: Test | ||||
| tests_Hledger_Web = TestList | ||||
|  [ | ||||
|  --  tests_Hledger_Web_App | ||||
|  -- ,tests_Hledger_Web_AppRun | ||||
|  --  tests_Hledger_Web_Foundation | ||||
|  -- ,tests_Hledger_Web_Application | ||||
|  -- ,tests_Hledger_Web_EmbeddedFiles | ||||
|  -- ,tests_Hledger_Web_Handlers | ||||
|  -- ,tests_Hledger_Web_Settings | ||||
|  -- ,tests_Hledger_Web_StaticFiles | ||||
|  -- ,tests_Hledger_Web_Settings_StaticFiles | ||||
|  ] | ||||
|  | ||||
| @ -3,7 +3,7 @@ | ||||
| {-# LANGUAGE MultiParamTypeClasses #-} | ||||
| {-# LANGUAGE OverloadedStrings #-} | ||||
| {-# OPTIONS_GHC -fno-warn-orphans #-} | ||||
| module Hledger.Web.AppRun ( | ||||
| module Hledger.Web.Application ( | ||||
|                withApp | ||||
|               ,withDevelAppPort | ||||
|               ) | ||||
| @ -16,7 +16,7 @@ import Yesod.Logger (makeLogger, flushLogger, Logger, logLazyText, logString) | ||||
| import Yesod.Static | ||||
| 
 | ||||
| import Hledger | ||||
| import Hledger.Web.App | ||||
| import Hledger.Web.Foundation | ||||
| import Hledger.Web.Handlers | ||||
| import Hledger.Web.Options | ||||
| import Hledger.Web.Settings | ||||
| @ -1,6 +1,6 @@ | ||||
| {-# LANGUAGE QuasiQuotes, TemplateHaskell, TypeFamilies #-} | ||||
| {-# LANGUAGE OverloadedStrings #-} | ||||
| module Hledger.Web.App | ||||
| module Hledger.Web.Foundation | ||||
|     ( App (..) | ||||
|     , AppRoute (..) | ||||
|     , resourcesApp | ||||
| @ -28,7 +28,7 @@ import qualified Data.Text as T | ||||
| import Hledger.Data | ||||
| import Hledger.Web.Options | ||||
| import Hledger.Web.Settings | ||||
| import Hledger.Web.StaticFiles | ||||
| import Hledger.Web.Settings.StaticFiles | ||||
| 
 | ||||
| 
 | ||||
| -- | The site argument for your application. This can be a good place to | ||||
| @ -27,7 +27,7 @@ import Yesod.Json | ||||
| 
 | ||||
| import Hledger hiding (today) | ||||
| import Hledger.Cli | ||||
| import Hledger.Web.App | ||||
| import Hledger.Web.Foundation | ||||
| import Hledger.Web.Options | ||||
| import Hledger.Web.Settings | ||||
| 
 | ||||
|  | ||||
| @ -9,7 +9,7 @@ way; use their FilePath or URL to access them. | ||||
| This is a separate module to satisfy template haskell requirements. | ||||
| 
 | ||||
| -} | ||||
| module Hledger.Web.StaticFiles where | ||||
| module Hledger.Web.Settings.StaticFiles where | ||||
| 
 | ||||
| import Yesod.Static | ||||
| 
 | ||||
| @ -48,11 +48,11 @@ executable hledger-web | ||||
|       ghc-options:   -W -threaded | ||||
|   other-modules: | ||||
|                      Hledger.Web | ||||
|                      Hledger.Web.App | ||||
|                      Hledger.Web.AppRun | ||||
|                      Hledger.Web.Foundation | ||||
|                      Hledger.Web.Application | ||||
|                      Hledger.Web.Options | ||||
|                      Hledger.Web.Settings | ||||
|                      Hledger.Web.StaticFiles | ||||
|                      Hledger.Web.Settings.StaticFiles | ||||
|                      Hledger.Web.Handlers | ||||
|   build-depends: | ||||
|                   hledger == 0.16 | ||||
| @ -99,11 +99,11 @@ library | ||||
|     else | ||||
|         Buildable: False | ||||
|     exposed-modules:  | ||||
|                      Hledger.Web.AppRun | ||||
|                      Hledger.Web.Application | ||||
|     other-modules: | ||||
|                      Hledger.Web | ||||
|                      Hledger.Web.App | ||||
|                      Hledger.Web.Foundation | ||||
|                      Hledger.Web.Options | ||||
|                      Hledger.Web.Settings | ||||
|                      Hledger.Web.StaticFiles | ||||
|                      Hledger.Web.Settings.StaticFiles | ||||
|                      Hledger.Web.Handlers | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user