Scaffolding update: minimal uses yesod-core
This commit is contained in:
parent
5c47486c86
commit
d1cfe481fd
@ -1,3 +1,7 @@
|
||||
## 1.4.3.9
|
||||
|
||||
* Scaffold update: minimal scaffold uses yesod-core instead of yesod [yesodweb/yesod-scaffold#65](https://github.com/yesodweb/yesod-scaffold/issues/65)
|
||||
|
||||
## 1.4.3.8
|
||||
|
||||
* Scaffold update: fix 404 for missing sourcemap
|
||||
|
||||
@ -31,7 +31,7 @@ cabal.sandbox.config
|
||||
module Add where
|
||||
|
||||
import Foundation
|
||||
import Yesod
|
||||
import Yesod.Core
|
||||
|
||||
getAddR :: Int -> Int -> Handler TypedContent
|
||||
getAddR x y = selectRep $ do
|
||||
@ -49,7 +49,7 @@ getAddR x y = selectRep $ do
|
||||
module Application where
|
||||
|
||||
import Foundation
|
||||
import Yesod
|
||||
import Yesod.Core
|
||||
|
||||
import Add
|
||||
import Home
|
||||
@ -63,7 +63,7 @@ mkYesodDispatch "App" resourcesApp
|
||||
{-# LANGUAGE ViewPatterns #-}
|
||||
module Foundation where
|
||||
|
||||
import Yesod
|
||||
import Yesod.Core
|
||||
|
||||
data App = App
|
||||
|
||||
@ -77,7 +77,7 @@ instance Yesod App
|
||||
module Home where
|
||||
|
||||
import Foundation
|
||||
import Yesod
|
||||
import Yesod.Core
|
||||
|
||||
getHomeR :: Handler Html
|
||||
getHomeR = defaultLayout $ do
|
||||
@ -92,7 +92,7 @@ getHomeR = defaultLayout $ do
|
||||
{-# START_FILE Main.hs #-}
|
||||
import Application () -- for YesodDispatch instance
|
||||
import Foundation
|
||||
import Yesod
|
||||
import Yesod.Core
|
||||
|
||||
main :: IO ()
|
||||
main = warp 3000 App
|
||||
@ -115,7 +115,7 @@ executable PROJECTNAME
|
||||
ghc-options: -Wall -fwarn-tabs -O2
|
||||
|
||||
build-depends: base
|
||||
, yesod
|
||||
, yesod-core
|
||||
|
||||
ghc-options: -threaded -O2 -rtsopts -with-rtsopts=-N
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
name: yesod-bin
|
||||
version: 1.4.3.7
|
||||
version: 1.4.3.9
|
||||
license: MIT
|
||||
license-file: LICENSE
|
||||
author: Michael Snoyman <michael@snoyman.com>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user